Production deployment of the Knowledge Seeker RAG chatbot.
Upload documents. Ask questions. Get answers from your own content.
Knowledge Seeker is a RAG-based conversational AI that lets you query your own documents through natural language. Upload PDFs, text files, Word docs, or Markdown — and ask anything.
The system retrieves relevant chunks from your documents using vector similarity search, passes them as context to an LLM, and returns grounded, accurate answers.
User Upload (PDF / TXT / DOCX / MD)
↓
Parsing & Chunking
(LlamaIndex — indexing.py)
↓
HuggingFace Embeddings
(embed.py)
↓
Qdrant Cloud Vector Storage
(qdb.py)
↓
Query → Hybrid Retrieval
(search.py + rag_eng.py)
↓
Gemini LLM Generation
(llm.py)
↓
Streamlit Chat Interface
(app.py)
| File | Responsibility |
|---|---|
app.py |
Main Streamlit app — UI and session management |
embed.py |
HuggingFace embedding model integration |
indexing.py |
Document parsing and LlamaIndex indexing |
llm.py |
Gemini LLM integration + auto model switching |
qdb.py |
Qdrant Cloud connection and collection management |
rag_eng.py |
Core RAG retrieval and generation engine |
search.py |
Search and retrieval logic |
summary_eng.py |
Document summarization engine |
logger.py |
Logging utilities |
config.py |
Centralised configuration |
| Layer | Technology |
|---|---|
| Language | Python |
| RAG Framework | LlamaIndex |
| Vector DB | Qdrant Cloud |
| Embeddings | HuggingFace (sentence-transformers) |
| LLM | Gemini 2.5 Flash / Flash-Lite |
| Frontend | Streamlit |
| Deployment | Streamlit Cloud |
- Multi-turn conversational memory — ask follow-up questions naturally
- Auto model switching — falls back automatically when rate limit is hit
- User-selectable LLM model
- File hashing — prevents redundant re-indexing of the same document
- Auto-scroll to latest message
- Supports PDF, TXT, DOCX, and Markdown files
# Clone the repo
git clone https://github.com/Aaryam-7d6/knowledge-seeker-chatbot-streamlit-live.git
cd knowledge-seeker-chatbot-streamlit-live
# Install dependencies
pip install -r requirements.txtCreate a .env or set the following environment variables:
GEMINI_API_KEY=your_key_here
QDRANT_URL=your_qdrant_cloud_url
QDRANT_API_KEY=your_qdrant_api_key
# Run the app
streamlit run app.pyIf you want a codebase-level knowledge graph for AI exploration and navigation:
# Generates graphify-out/graph.json and the report locally
/graphify .If you do not have a Gemini key configured, use the code-only mode:
/graphify . --code-only #or graphify . --code-onlyThis is the production version. For the full milestone-by-milestone development journey and internship artifacts:
MIT — see LICENSE
Built by Aarya R. Thakar