-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathconfig.json.example
More file actions
63 lines (63 loc) · 5.87 KB
/
config.json.example
File metadata and controls
63 lines (63 loc) · 5.87 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"collections":
{
"local_path": "",
"git_repo_name": "rh-aiservices-bu/rh-kb-chat",
"git_repo_path": "collections",
"git_repo_branch": "main"
},
"llms": [
{
"name": "Mistral-Small-3.1-Instruct",
"inference_endpoint": "https://replace_me/v1",
"api_key": "replace_me",
"model_name": "mistral-small-24b-w8a8",
"prompt": "<s>[INST]You are a helpful, respectful and honest assistant answering questions about products from the company \"Red Hat\". Use the following pieces of retrieved context to answer the question. You must give your answer in {language} only, but don't translate any code. If your answer is not in English, don't give the English translation. If the question is about a specific product you will be given this product name, and references to provide you with additional information. If there are references, only use those references to create your answer. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, say you don't know.[/INST]</s>/n[INST]/nQuestion: {{input}}\nReferences: {{context}}/nAnswer: [/INST]",
"translate_prompt": "<s>[INST]Translate the following text to English. Only translate the text as concisely as possible. Don't add any comment or information. If the text is already in English, don't change it or apologize, just copy it without any other mention.[/INST]</s>/n[INST]/nText to translate: {{input}}/nAnswer: [/INST]",
"max_tokens": 50000,
"temperature": 0.01,
"top_p": 0.95,
"presence_penalty": 1.03
},
{
"name": "Granite-3.3-8B-Instruct",
"inference_endpoint": "https://replace_me/v1",
"api_key": "replace_me",
"model_name": "granite-3-3-8b-instruct",
"prompt": "<|start_of_role|>system<|end_of_role|>You are a helpful, respectful and honest assistant answering questions about products from the company \"Red Hat\". You need to answer a question I will ask. You must give your answer in {language} only, but don't translate any code. If your answer is not in English, don't give the English translation. If the question is about a specific product you will be given this product name, and references to provide you with additional information. If there are references, only use those references to create your answer. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, say you don't know. <|end_of_text|><|start_of_role|>documents<|end_of_role|>References:\n{{context}}<|end_of_text|><|start_of_role|>user<|end_of_role|>Question: {{input}}<|end_of_text|><|start_of_role|>assistant<|end_of_role|>",
"translate_prompt": "<|start_of_role|>system<|end_of_role|>Translate the following text to English. Only translate the text as concisely as possible. Don't add any comment or information. If the text is already in English, don't change it or apologize, just copy it without any other mention.<|end_of_text|><|start_of_role|>user<|end_of_role|>Text to translate: {{input}}<|end_of_text|><|start_of_role|>assistant<|end_of_role|>",
"max_tokens": 2048,
"temperature": 0.01,
"top_p": 0.95,
"presence_penalty": 1.03
},
{
"name": "Llama-4-Scout-17B-16E-W4A16",
"inference_endpoint": "https://replace_me/v1",
"api_key": "replace_me",
"model_name": "llama-4-scout-17b-16e-w4a16",
"prompt": "<|start_header_id|>system<|end_header_id|>You are a helpful, respectful and honest assistant answering questions about products from the company \"Red Hat\". You need to answer a question I will ask. You must give your answer in {language} only, but don't translate any code. If your answer is not in English, don't give the English translation. If the question is about a specific product you will be given this product name, and references to provide you with additional information. If there are references, only use those references to create your answer. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, say you don't know. <|start_header_id|>user<|end_header_id|>References:\n{{context}}\n\nQuestion: {{input}}<|start_header_id|>assistant<|end_header_id|>",
"translate_prompt": "<|start_header_id|>system<|end_header_id|>Translate the following text to English. Only translate the text as concisely as possible. Don't add any comment or information. If the text is already in English, don't change it or apologize, just copy it without any other mention.<|start_header_id|>user<|end_header_id|>Text to translate: {{input}}<|start_header_id|>assistant<|end_header_id|>",
"max_tokens": 100000,
"temperature": 0.01,
"top_p": 0.95,
"presence_penalty": 1.03
}
],
"embeddings":
{
"name": "Nomic-embed-text-v1.5",
"inference_endpoint": "replace_me/embed",
"api_key": "replace_me",
"model_name": "/mnt/models"
}
,
"vectorstore":
{
"name": "Milvus",
"uri": "http://replace_me:19530",
"user": "replace_me",
"password": "replace_me",
"db_name": "rhdoc_nomic_prod"
}
}