File size: 1,212 Bytes
3ef2771
6efa217
 
 
 
3ef2771
 
 
 
 
6efa217
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: RAG Question Answering System
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: 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 interface
2. Wait for the document to be processed
3. Ask questions about the document content in the chat interface
4. 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 answering
2. **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.