An AI-powered assistant that answers your questions about Python documentation in plain English using Retrieval-Augmented Generation (RAG).
- Ask natural language questions about Python
- Searches official Python docs using RAG
- Powered by LangChain and Ollama models (LLaMA 3, Mistral, Phi3)
- Voice input using microphone
- Read answers aloud (text-to-speech)
- Download Q&A as PDF
- Full search history with date filtering
- Built-in SQLite database for storing searches
- Frontend: Streamlit
- Backend: LangChain, Python
- Models: Ollama (LLaMA 3, Mistral, Phi3)
- Database: SQLite
- Voice: SpeechRecognition + pyttsx3
- PDF Export: fpdf
- Clone the repository:
git clone https://github.com/your-username/RAG-Python-Docs.git cd RAG-Python-Docs - Create a virtual environment:
python -m venv rag_env source rag_env/bin/activate # on Windows: rag_env\Scripts\activate
- Install requirements:
pip install -r requirements.txt
- Run the app:
streamlit run app.py
-
Ollama must be installed and running locally on your machine.
-
You can download and install Ollama from: https://ollama.com
-
Make sure the Ollama daemon is running before starting the app:
ollama serve

