How dilipkumar56/local-ai-rag works
The repository contains two separate document-grounded Azure assistants: a local CLI over user-supplied text/PDF files, and a Streamlit AZ-104 tutor over curated Microsoft Learn pages. Both ingest and retrieve document chunks from Chroma, then produce answers with source citations; the hosted tutor additionally supports index refresh and chat history. The graph shows the main documented workflows and the sampled call relationships. The README documents model providers and Learn content scope; unsampled modules and optional tools are not expanded.
Main entry points: hosted_rag.py Study answer/index · rag.py Grounded answers · streamlit_app.py Streamlit chat UI · data Local Chroma index
Components 16
Local CLI Assistant
- CLI chat loop
app/main.py - Grounded answers
app/rag.py - Local ingestion
app/vector_db.py
Hosted AZ-104 Tutor
- Streamlit chat UI
app/streamlit_app.py - Study answer/index
app/hosted_rag.py - Learn fetch and chunk
app/az104_sources.py - AZ-104 Chroma index
data
Document Retrieval
- Text/PDF loading
app/documents.py - Local Chroma index
data - Local search
app/rag.py - Source citations
app/rag.py
Other components
- CLI user
- Ollama models
- Study assistant user
- Microsoft Learn
- Gemini API
Connections 17
- CLI user → CLI chat loop: asks
Readme.md - CLI chat loop → Grounded answers: calls
app/main.py - Grounded answers → Local search: retrieves
app/rag.py - Local search → Local Chroma index: searches
app/rag.py - Grounded answers → Ollama models: embeds and answers
Readme.md - Grounded answers → Source citations: formats
app/rag.py - Local ingestion → Text/PDF loading: loads and splits
app/vector_db.py - Local ingestion → Local Chroma index: writes chunks
app/vector_db.py - Text/PDF loading → Local Chroma index: supplies chunks
- Study assistant user → Streamlit chat UI: asks
Readme.md - Streamlit chat UI → Study answer/index: calls
app/streamlit_app.py - Study answer/index → Learn fetch and chunk: loads and splits
app/hosted_rag.py - Learn fetch and chunk → Microsoft Learn: fetches pages
app/az104_sources.py - Study answer/index → AZ-104 Chroma index: indexes and searches
app/hosted_rag.py - Study answer/index → Gemini API: embeds and generates
app/hosted_rag.py - Study answer/index → Streamlit chat UI: returns answer and sources
app/streamlit_app.py - Streamlit chat UI → Study assistant user: shows citations
app/streamlit_app.py