Skip to content

Repository files navigation

Ask Python Docs – AI-Powered Python Documentation Assistant

An AI-powered assistant that answers your questions about Python documentation in plain English using Retrieval-Augmented Generation (RAG).

Screenshot

Screenshot


Features

  • 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

Technologies

  • Frontend: Streamlit
  • Backend: LangChain, Python
  • Models: Ollama (LLaMA 3, Mistral, Phi3)
  • Database: SQLite
  • Voice: SpeechRecognition + pyttsx3
  • PDF Export: fpdf

Installation

  1. Clone the repository:
    git clone https://github.com/your-username/RAG-Python-Docs.git
    cd RAG-Python-Docs
  2. Create a virtual environment:
    python -m venv rag_env
    source rag_env/bin/activate  # on Windows: rag_env\Scripts\activate
  3. Install requirements:
    pip install -r requirements.txt
  4. Run the app:
    streamlit run app.py

Prerequisites

  • 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

About

AI-powered assistant that answers Python documentation questions using RAG, LangChain, and Ollama. Built with Streamlit.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages