Spaces:
Sleeping
Sleeping
Upload configs/app.yaml with huggingface_hub
Browse files- configs/app.yaml +10 -0
configs/app.yaml
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# App configuration (edit in notebooks first, then here).
|
| 2 |
+
book: "dorian" # options: iliad | dorian
|
| 3 |
+
chunk_size: 800 # characters per chunk
|
| 4 |
+
chunk_overlap: 120 # characters overlap
|
| 5 |
+
embedding_model: "sentence-transformers/all-MiniLM-L6-v2"
|
| 6 |
+
model: "all-MiniLM-L6-v2"
|
| 7 |
+
top_k: 5 # retrieved chunks
|
| 8 |
+
max_answer_tokens: 300 # for answer composition (heuristic, not an LLM cap)
|
| 9 |
+
iliad_link: "https://www.gutenberg.org/files/6130/6130-0.txt"
|
| 10 |
+
dorian_gray_link: "https://www.gutenberg.org/files/174/174-0.txt"
|