Spaces:
Sleeping
Sleeping
Update config.yaml
Browse files- config.yaml +15 -20
config.yaml
CHANGED
|
@@ -1,40 +1,35 @@
|
|
| 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:
|
| 12 |
directory: "./kb"
|
|
|
|
| 13 |
|
| 14 |
models:
|
| 15 |
embedding: "sentence-transformers/all-MiniLM-L6-v2"
|
|
|
|
| 16 |
|
| 17 |
chunking:
|
| 18 |
-
chunk_size: 500
|
| 19 |
-
overlap: 100
|
| 20 |
|
| 21 |
retrieval:
|
| 22 |
-
top_k:
|
| 23 |
-
min_similarity: 0.
|
| 24 |
-
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
|
| 30 |
quick_actions:
|
| 31 |
-
- label: "π
|
| 32 |
query: "What makes a good knowledge base article?"
|
| 33 |
-
- label: "π€
|
| 34 |
-
query: "How could a KB assistant help agents?"
|
| 35 |
-
- label: "π Self-Service
|
| 36 |
-
query: "Why is self-service important for customer support?"
|
| 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."
|
|
|
|
| 1 |
# ========================================
|
| 2 |
# Self-Service KB Assistant β Configuration
|
|
|
|
| 3 |
# ========================================
|
| 4 |
|
| 5 |
client:
|
| 6 |
name: "Self-Service KB Assistant"
|
|
|
|
|
|
|
| 7 |
|
| 8 |
kb:
|
| 9 |
directory: "./kb"
|
| 10 |
+
index_directory: "./.cache/faiss"
|
| 11 |
|
| 12 |
models:
|
| 13 |
embedding: "sentence-transformers/all-MiniLM-L6-v2"
|
| 14 |
+
qa: "google/flan-t5-small"
|
| 15 |
|
| 16 |
chunking:
|
| 17 |
+
chunk_size: 500
|
| 18 |
+
overlap: 100
|
| 19 |
|
| 20 |
retrieval:
|
| 21 |
+
top_k: 5 # chunks retrieved by FAISS per query
|
| 22 |
+
min_similarity: 0.25 # minimum cosine similarity to include a chunk
|
| 23 |
+
max_sentences: 6 # top sentences passed to the QA model after re-ranking
|
| 24 |
|
| 25 |
+
messages:
|
| 26 |
+
welcome: "Ask me anything about the documents in the knowledge base!"
|
| 27 |
+
no_answer: "I couldn't find anything relevant to your question in the knowledge base."
|
| 28 |
|
| 29 |
quick_actions:
|
| 30 |
+
- label: "π KB Best Practices"
|
| 31 |
query: "What makes a good knowledge base article?"
|
| 32 |
+
- label: "π€ Agent Use Cases"
|
| 33 |
+
query: "How could a KB assistant help support agents?"
|
| 34 |
+
- label: "π Self-Service"
|
| 35 |
+
query: "Why is self-service important for customer support?"
|
|
|
|
|
|
|
|
|
|
|
|