This app is a chatbot for uploaded documents with Retrieval-Augmented Generation (RAG). It works with different LLMs, e.g., OpenAI, Google Generative AI, and models hosted by HuggingFace and Ollama.
- Python 3.9 or higher+
- OpenAI API Key
- HuggingFace API token
- Ollama installed and the models in the code pulled
- Setting up the Environment Variables
OPENAI_API_KEY
: OpenAI API KeyOPENAI_BASE_URL
: OpenAI Base URL. OptionalHUGGINGFACEHUB_API_TOKEN
: HuggingFace API tokenGOOGLE_API_KEY
: Google Generative AI API Key`
- Clone this repo
- Install Python
- Run the following command in the terminal
pip install -r requirements.txt
- Start the app by running the following command
streamlit run app.py
- Upload your documents, which can be in PDF, DOCX, TXT, or format.
- Ask questions about your document.
- Supporting more LLMs
- Supporting more embedding models
- Supporting more vector stores
- Supporting more document formats
- Fixing bugs
- Refactoring the code