Spaces:
Sleeping
Sleeping
Commit
·
19d85f2
1
Parent(s):
a7a634d
docs: UTF-8 README with Spaces metadata; mark *.md as text; ignore README.bak.md
Browse files- .gitattributes +1 -3
- README.md +11 -0
.gitattributes
CHANGED
|
@@ -1,4 +1,2 @@
|
|
| 1 |
-
*
|
| 2 |
-
text=auto
|
| 3 |
*.md text
|
| 4 |
-
|
|
|
|
| 1 |
+
* text=auto
|
|
|
|
| 2 |
*.md text
|
|
|
README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
title: FastAPI RAG API
|
| 3 |
emoji: 🧠
|
| 4 |
colorFrom: indigo
|
|
@@ -22,6 +27,7 @@ Ask questions about your PDFs using vector search (FAISS) + sentence embeddings.
|
|
| 22 |
Robust to numeric/table-heavy docs, with optional AZ→EN translation and fallbacks.
|
| 23 |
|
| 24 |
## Quick test
|
|
|
|
| 25 |
curl -F "file=@sample.pdf" https://<API>/upload_pdf
|
| 26 |
curl -H "Content-Type: application/json" -d '{"question":"What is the document about?","top_k":5}' https://<API>/ask_question
|
| 27 |
|
|
@@ -30,3 +36,8 @@ curl -H "Content-Type: application/json" -d '{"question":"What is the document a
|
|
| 30 |
|
| 31 |
## Stack
|
| 32 |
FastAPI · sentence-transformers · FAISS · pypdf · Hugging Face Spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<<<<<<< HEAD
|
| 2 |
---
|
| 3 |
+
=======
|
| 4 |
+
@'
|
| 5 |
+
---
|
| 6 |
+
>>>>>>> fb5b684 (docs: UTF-8 README with Spaces metadata; mark *.md as text; ignore README.bak.md)
|
| 7 |
title: FastAPI RAG API
|
| 8 |
emoji: 🧠
|
| 9 |
colorFrom: indigo
|
|
|
|
| 27 |
Robust to numeric/table-heavy docs, with optional AZ→EN translation and fallbacks.
|
| 28 |
|
| 29 |
## Quick test
|
| 30 |
+
<<<<<<< HEAD
|
| 31 |
curl -F "file=@sample.pdf" https://<API>/upload_pdf
|
| 32 |
curl -H "Content-Type: application/json" -d '{"question":"What is the document about?","top_k":5}' https://<API>/ask_question
|
| 33 |
|
|
|
|
| 36 |
|
| 37 |
## Stack
|
| 38 |
FastAPI · sentence-transformers · FAISS · pypdf · Hugging Face Spaces
|
| 39 |
+
=======
|
| 40 |
+
```bash
|
| 41 |
+
curl -F "file=@sample.pdf" https://<API>/upload_pdf
|
| 42 |
+
curl -H "Content-Type: application/json" -d '{"question":"What is the document about?","top_k":5}' https://<API>/ask_question
|
| 43 |
+
>>>>>>> fb5b684 (docs: UTF-8 README with Spaces metadata; mark *.md as text; ignore README.bak.md)
|