This project is a document-based AI chatbot built using Flask, LangChain, FAISS, and open-source LLMs via Ollama.
It follows the Retrieval-Augmented Generation (RAG) architecture to answer queries from PDF documents.
- Python
- Flask
- LangChain
- FAISS
- HuggingFace Embeddings
- Ollama (Mistral / Phi)
- PDFs are loaded and split into chunks
- Embeddings are generated using sentence-transformers
- Vectors are stored in FAISS
- User queries retrieve relevant chunks
- LLM generates grounded responses
python ingest.py
python app.py