How yousef-koura/personal-rag-assistant works
YK Assistant is a personal portfolio chatbot: a visitor asks a question in the chat UI, the API retrieves relevant PDF knowledge, and a Groq language model produces a grounded answer for display. The backend builds the retrieval-and-generation chain at startup. README documentation supports the overall UI/API workflow and RAG capabilities; the sampled backend shows the chain construction and endpoint behavior. The UI implementation itself was not sampled, so its link is based on README documentation.
Main entry points: app.py Chat API · index.html Chat UI · Yousef_Koura_RAG_Knowledge_Base_v2.pdf Knowledge PDF
Components 12
Knowledge retrieval
- Knowledge PDF
Data/Yousef_Koura_RAG_Knowledge_Base_v2.pdf - PDF loader
api/app.py - Text splitter
api/app.py - Embeddings
api/app.py - Chroma store
api/app.py - Retriever
api/app.py
Answer generation
- Context prompt
api/app.py - Groq LLM
- Output parser
api/app.py
Other components
- Visitor
Connections 13
- Visitor → Chat UI: asks
README.md - Chat UI → Chat API: sends question
README.md - Knowledge PDF → PDF loader: loaded from
api/app.py - PDF loader → Text splitter: splits documents
api/app.py - Text splitter → Embeddings: embedded by
api/app.py - Embeddings → Chroma store: indexes chunks
api/app.py - Chroma store → Retriever: retrieves top six
api/app.py - Chat API → Retriever: supplies context
api/app.py - Chat API → Context prompt: supplies question
api/app.py - Context prompt → Groq LLM: formats request
api/app.py - Groq LLM → Output parser: generates text
api/app.py - Output parser → Chat API: returns answer
api/app.py - Chat API → Chat UI: returns answer
README.md