Lock in $30 Savings on PRO—Offer Ends Soon! ⏳
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Exploring Conversational AI: Crafting AI-Powere...
Search
Hassan Bahati
October 12, 2024
1
44
Exploring Conversational AI: Crafting AI-Powered Django Apps with Gemini
Hassan Bahati
October 12, 2024
Tweet
Share
More Decks by Hassan Bahati
See All by Hassan Bahati
Building Agentic Apps with Flutter and Firebase Genkit
hassanbahati
0
5
Mastering Asynchronous Data Flows with TanStack Query Firebase
hassanbahati
1
4
Mastering TanStack Query Firebase – Build a Realtime Task Manager
hassanbahati
1
41
Building Intelligent Search Apps with Firestore Vector Search and App Hosting
hassanbahati
1
21
Featured
See All Featured
GraphQLとの向き合い方2022年版
quramy
50
14k
Unsuck your backbone
ammeep
671
58k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
1
580
The Invisible Side of Design
smashingmag
302
51k
Git: the NoSQL Database
bkeepers
PRO
432
66k
The Limits of Empathy - UXLibs8
cassininazir
1
190
Faster Mobile Websites
deanohume
310
31k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
26
3.3k
What the history of the web can teach us about the future of AI
inesmontani
PRO
0
370
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
46
2.6k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
120
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
80
Transcript
Exploring Conversational AI: Crafting AI-Powered Django Apps with Gemini Hassan
Bahati @HassanBahatiM blog.hassanbahati.com
Conversational AI 🤔 • Software that can interact with users
through text or speech using Natural Language Processing (NLP) to understand, process, and respond to human language.
Django ?? • Robust Framework - “batteries-included” • Security •
Scalability • and so many more amazing features…
Gemini ?? • Accurate Intent Recognition • Contextual Dialogue Management
• Customizable Models • backed by Google
Django + Gemini for Conversational AI • Django: Handles the
web interface and routes. • Gemini: Powers the conversational logic and generates responses
None
None
Picking the Right Model • Use Case • Performance vs.
Efficiency • Latency • Data Sensitivity
None
What influences a great architecture for conversational applications ??
What enables someone to answer a question well?
What enables someone to answer a question well? • Knowledge
of the topic being asked • Context of the conversation
What makes up a person’s response to a question ?
What makes up a person’s response to a question ?
• Understanding of the question • Interpretation of the question • Tone in which the question is asked
How best can we architecture Conversational AI Applications for efficiency
?
None
Considerations to make… • User Interface • Knowledge Search Approach
• Prompt engineering • Safety and privacy
Prompt🤔🤔🤔Engineering • Assigning a temperature value • Knowledge • Chat
Context • Setting guidelines for user’s prompts responses.
Diving into the development
Prerequisites • Basic understanding of Python • Understanding of web
development with Django • Development environment(Python, pip,IDE)
Step 1: Install Django & Google Generativeai
Step 2: Create a Django Project
Step 2: Create a Django Project
Step 3: Create a Django App
None
Step 4: Add your app to the project’s settings
Step 5: Define Models
Step 6: Migrate the Database
Step 7: Create Views
Step 8: Wrapping it up by creating templates🚀 🚀 🚀
Thank you!! Happy Coding Hassan Bahati @HassanBahatiM blog.hassanbahati.com
References https://www.djangoproject.com/ https:/ /deepmind.google/technologies/gemini/ https://docs.djangoproject.com/en/5.1/