An AI-powered document chatbot that lets you chat with your own PDF documents, featuring a modern React.js frontend and a robust FastAPI backend.
This project provides a local solution for interacting with PDF documents using natural language. It combines a React.js frontend for a user-friendly experience with a FastAPI backend for efficient document processing and question answering using Retrieval-Augmented Generation (RAG).
App Showcase:
See the application in action!
- Modern React.js Frontend: A clean and responsive user interface.
- FastAPI Backend: Handles document processing and question answering efficiently.
- Retrieval-Augmented Generation (RAG): Provides accurate and context-aware answers by grounding the responses in your uploaded document.
- Local Document Q&A: Ask questions and get answers based on your PDF documents, all running locally.
- Persistent Vector Store: Uses FAISS (via Langchain) for efficient storage and retrieval of document embeddings.
- Optional Together AI Integration: Can leverage the Together AI API (Llama 3) for enhanced language generation. The core application can function, but the chatbot will not respond without a valid API key.
- Frontend:
- Backend:
- FastAPI
- Together AI API (Optional)
- Hugging Face Sentence Transformers
- FAISS (via Langchain)
- Langchain
- Python 3.10+
- Node.js and npm (Node Package Manager)
- Python 3.10 or higher
- (Optional) A Together AI API key (required for the chatbot to respond)
1. Clone the repository:
git clone https://github.com/devcom33/Chat-with-Your-Documents.git
cd Chat-with-Your-Documents