Skip to content
anilkr09Public

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Personal Document QA Bot

A chatbot that can answer questions about your personal documents using LangChain, ChromaDB, Cohere, and Streamlit.

Features

  • Upload and process multiple document types (PDF, DOCX, TXT)
  • Interactive chat interface
  • Semantic search using ChromaDB
  • Powered by Cohere for accurate responses
  • Clean and intuitive Streamlit UI

Demo

image image

-Uploaded document

image

Setup

  1. Clone the repository
  2. Create and activate a virtual environment:
    python3 -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Copy .env.example to .env and add your Cohere API key:
    cp .env.example .env
  5. Run the application:
    streamlit run app.py

Usage

  1. Upload your documents using the sidebar
  2. Click "Process Documents" to index them
  3. Ask questions about your documents in the chat interface
  4. Get AI-powered responses based on your document content

Technical Stack

  • LangChain (>=0.1.0): For document processing and QA chain
  • LangChain-Cohere (>=0.0.1): For Cohere integration
  • ChromaDB (>=0.3.0): Vector store for document embeddings
  • Cohere (>=4.37): For embeddings and chat completions
  • Streamlit (>=1.22.0): Web interface
  • Supporting libraries:
    • pdfplumber (>=0.9.0): PDF processing
    • python-docx (>=0.8.11): DOCX processing
    • python-dotenv (>=1.0.0): Environment management

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages