Spaces:
Sleeping
Sleeping
initial commit
Browse files
README.md
CHANGED
|
@@ -1,42 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: apache-2.0
|
| 9 |
---
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
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.
|
| 14 |
-
|
| 15 |
-
## Features
|
| 16 |
-
|
| 17 |
-
- Upload PDF or TXT documents
|
| 18 |
-
- Ask questions about the document content
|
| 19 |
-
- View the context used to generate answers
|
| 20 |
-
- Modern, responsive user interface
|
| 21 |
-
|
| 22 |
-
## How to Use
|
| 23 |
-
|
| 24 |
-
1. Upload a document (PDF or TXT) using the file upload interface
|
| 25 |
-
2. Wait for the document to be processed
|
| 26 |
-
3. Ask questions about the document content in the chat interface
|
| 27 |
-
4. View the answers and the context used to generate them
|
| 28 |
-
|
| 29 |
-
## Technical Details
|
| 30 |
-
|
| 31 |
-
The application consists of two main components:
|
| 32 |
-
|
| 33 |
-
1. **FastAPI Backend**: Handles file uploads, document processing, and question answering
|
| 34 |
-
2. **React Frontend**: Provides a user-friendly interface for uploading documents and asking questions
|
| 35 |
-
|
| 36 |
-
## Environment Variables
|
| 37 |
-
|
| 38 |
-
- `OPENAI_API_KEY`: Your OpenAI API key (required)
|
| 39 |
-
|
| 40 |
-
## License
|
| 41 |
-
|
| 42 |
-
This project is licensed under the Apache 2.0 License.
|
|
|
|
| 1 |
---
|
| 2 |
+
title: Pythonic Rag
|
| 3 |
+
emoji: 🏢
|
| 4 |
+
colorFrom: red
|
| 5 |
+
colorTo: indigo
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
license: apache-2.0
|
| 9 |
---
|
| 10 |
|
| 11 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|