Spaces:
Sleeping
Sleeping
Update config.yaml
Browse files- config.yaml +42 -41
config.yaml
CHANGED
|
@@ -1,42 +1,43 @@
|
|
| 1 |
-
# Directories to index
|
| 2 |
-
watch_paths:
|
| 3 |
-
- ./data/scifact
|
| 4 |
-
- ./data/nfcorpus
|
| 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 |
debounce_seconds: 5
|
|
|
|
| 1 |
+
# Directories to index
|
| 2 |
+
watch_paths:
|
| 3 |
+
- ./data/scifact
|
| 4 |
+
- ./data/nfcorpus
|
| 5 |
+
data_dir: "/data" # persistent volume, not ./data
|
| 6 |
+
|
| 7 |
+
# File extensions to include
|
| 8 |
+
include_extensions:
|
| 9 |
+
- ".pdf"
|
| 10 |
+
- ".docx"
|
| 11 |
+
- ".txt"
|
| 12 |
+
- ".md"
|
| 13 |
+
- ".pptx"
|
| 14 |
+
- ".xlsx"
|
| 15 |
+
- ".py"
|
| 16 |
+
- ".js"
|
| 17 |
+
- ".ipynb"
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
# --- Add these ---
|
| 21 |
+
top_k: 5 # final results returned to user
|
| 22 |
+
candidate_k: 20 # candidates fetched before reranking
|
| 23 |
+
|
| 24 |
+
query_expansion: true # WordNet synonym expansion
|
| 25 |
+
max_synonyms: 5 # max synonyms to append
|
| 26 |
+
|
| 27 |
+
reranking_enabled: true # cross-encoder reranking
|
| 28 |
+
reranker_model: "cross-encoder/ms-marco-MiniLM-L-6-v2"
|
| 29 |
+
|
| 30 |
+
# Directories to skip
|
| 31 |
+
skip_directories:
|
| 32 |
+
- ".git"
|
| 33 |
+
- "node_modules"
|
| 34 |
+
- "__pycache__"
|
| 35 |
+
- ".venv"
|
| 36 |
+
|
| 37 |
+
# Where to store index data
|
| 38 |
+
data_dir: "./data"
|
| 39 |
+
|
| 40 |
+
embedding_model: "all-MiniLM-L6-v2"
|
| 41 |
+
# embedding_model: BAAI/bge-small-en-v1.5
|
| 42 |
+
|
| 43 |
debounce_seconds: 5
|