Spaces:
Sleeping
Sleeping
Update config.yaml
Browse files- config.yaml +15 -5
config.yaml
CHANGED
|
@@ -1,10 +1,11 @@
|
|
| 1 |
# ========================================
|
| 2 |
-
#
|
|
|
|
| 3 |
# ========================================
|
| 4 |
|
| 5 |
client:
|
| 6 |
name: "Self-Service KB Assistant"
|
| 7 |
-
description: "Semantic search over a
|
| 8 |
theme_color: "blue"
|
| 9 |
|
| 10 |
kb:
|
|
@@ -14,8 +15,17 @@ models:
|
|
| 14 |
embedding: "sentence-transformers/all-MiniLM-L6-v2"
|
| 15 |
|
| 16 |
chunking:
|
| 17 |
-
chunk_size: 500
|
| 18 |
-
overlap: 100
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
quick_actions:
|
| 21 |
- label: "π Getting Started"
|
|
@@ -27,4 +37,4 @@ quick_actions:
|
|
| 27 |
|
| 28 |
messages:
|
| 29 |
welcome: "π Ask me anything you'd normally search for in a knowledge base."
|
| 30 |
-
no_answer: "β I couldn't find anything relevant in the knowledge base for this query
|
|
|
|
| 1 |
# ========================================
|
| 2 |
+
# Self-Service KB Assistant β Configuration
|
| 3 |
+
# All values here are read by app.py at startup.
|
| 4 |
# ========================================
|
| 5 |
|
| 6 |
client:
|
| 7 |
name: "Self-Service KB Assistant"
|
| 8 |
+
description: "Semantic search over a knowledge base, with LLM-powered answer generation."
|
| 9 |
theme_color: "blue"
|
| 10 |
|
| 11 |
kb:
|
|
|
|
| 15 |
embedding: "sentence-transformers/all-MiniLM-L6-v2"
|
| 16 |
|
| 17 |
chunking:
|
| 18 |
+
chunk_size: 500 # Target characters per chunk (breaks on sentence boundaries)
|
| 19 |
+
overlap: 100 # Characters of overlap carried into the next chunk
|
| 20 |
+
|
| 21 |
+
retrieval:
|
| 22 |
+
top_k: 3 # Number of chunks to retrieve per query
|
| 23 |
+
min_similarity: 0.3 # Minimum cosine similarity score to include a result
|
| 24 |
+
context_chars: 1500 # Max characters of context passed to the LLM
|
| 25 |
+
|
| 26 |
+
llm:
|
| 27 |
+
model: "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
|
| 28 |
+
max_new_tokens: 256
|
| 29 |
|
| 30 |
quick_actions:
|
| 31 |
- label: "π Getting Started"
|
|
|
|
| 37 |
|
| 38 |
messages:
|
| 39 |
welcome: "π Ask me anything you'd normally search for in a knowledge base."
|
| 40 |
+
no_answer: "β I couldn't find anything relevant in the knowledge base for this query."
|