sofzcc commited on
Commit
c9dee10
Β·
verified Β·
1 Parent(s): 2863683

Update config.yaml

Browse files
Files changed (1) hide show
  1. 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 # 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"
32
  query: "What makes a good knowledge base article?"
33
- - label: "πŸ€– KB Assistant Use Cases"
34
- query: "How could a KB assistant help agents?"
35
- - label: "πŸ“ˆ Self-Service Benefits"
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?"