forked from sambanova/ai-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yaml
29 lines (25 loc) · 1.29 KB
/
config.yaml
1
2
3
4
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
llm:
"api": "sncloud" # set either sambastudio or sncloud
"temperature": 0.0
"do_sample": False
"max_tokens": 1200
"model": "Meta-Llama-3.1-70B-Instruct"
embedding_model:
"type": "cpu" # set either sambastudio or cpu
"batch_size": 1 #set depending of your endpoint configuration (1 if bundle embedding expert)
"bundle": True #set true if using Sambastudio embeddings in a bundle endpoint
"select_expert": "e5-mistral-7b-instruct" #set if using SambaStudio bundle embedding expert
retrieval:
"db_type": "chroma"
"k_retrieved_documents": 15 #set if rerank enabled
"score_threshold": 0.2
"rerank": False # set if you want to rerank retriever results
"reranker": 'BAAI/bge-reranker-large' # set if you rerank enabled
"final_k_retrieved_documents": 5
"conversational": true # set to enable query rephrasing with history in streamlit application
prompts:
"qa_prompt": "enterprise_knowledge_retriever/prompts/qa_prompt.yaml"
"summary_prompt": "enterprise_knowledge_retriever/prompts/conversation-summary.yaml"
"condensed_query_prompt": "enterprise_knowledge_retriever/prompts/multiturn_custom_condensed_query.yaml"
pdf_only_mode: True # Set to true for PDF-only lite parsing mode (use PyMuPdf instead of Sambaparse)
prod_mode: False