Spaces:
Sleeping
Sleeping
initial commit
Browse files123452345678910111213141516171819202122232425262728293031323334353637383940414211---title: RAG Question Answering Systememoji: 🤖colorFrom: bluecolorTo: purpletitle: Pythonic Ragemoji: 🏢colorFrom: redcolorTo: indigosdk: dockerpinned: falselicense: apache-2.0---
# RAG Question Answering System
This application allows users to upload documents (PDF or TXT) and ask questions about their content. It uses a Retrieval-Augmented Generation (RAG) approach to provide accurate answers based on the document content.
## Features
- Upload PDF or TXT documents- Ask questions about the document content- View the context used to generate answers- Modern, responsive user interface
## How to Use
1. Upload a document (PDF or TXT) using the file upload interface2. Wait for the document to be processed3. Ask questions about the document content in the chat interface4. View the answers and the context used to generate them
## Technical Details
The application consists of two main components:
1. **FastAPI Backend**: Handles file uploads, document processing, and question answering2. **React Frontend**: Provides a user-friendly interface for uploading documents and asking questions
## Environment Variables
- `OPENAI_API_KEY`: Your OpenAI API key (required)
## License
This project is licensed under the Apache 2.0 License.Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-referenceREADME.md+5-36