-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ Feat(assistant): add (new) default templates (#200)
* ✨ Feat(assistant): add (new) default templates * ✨ Feat(assistant): allow inline files in default example template * ✨ Feat(assistant): increase max tokens for default templates to 120k
- Loading branch information
1 parent
b969502
commit 967aef7
Showing
9 changed files
with
122 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"id": "_qaf", | ||
"meta": { | ||
"name": "QAF", | ||
"description": "QAF template - do not use directly", | ||
"sample_questions": [] | ||
}, | ||
"max_tokens": -1, | ||
"allow_inline_files": false, | ||
"files_collection_id": "", | ||
"streams": [ | ||
{ | ||
"pipeline": "rag_scoring" | ||
}, | ||
{ | ||
"provider": "openai", | ||
"settings": { | ||
"model": "gpt-4o", | ||
"temperature": 0 | ||
}, | ||
"messages": [ | ||
{ | ||
"role": "system", | ||
"content": "You are a helpful AI assistant that helps people with answering questions.<br> If you can\"t find the answer in the search result below, just say (in Swedish) \"Tyvärr kan jag inte svara på det.\" Don't try to make up an answer.<br> If the question is not related to the context, politely respond that you are tuned to only answer questions that are related to the context.<br> The questions are going to be asked in Swedish. Your response must always be in Swedish." | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "{query}" | ||
}, | ||
{ | ||
"role": "user", | ||
"content": "Here are the results of the search:\n\n {rag_output}" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"id": "_rag_scoring", | ||
"meta": { | ||
"name": "RAG scoring", | ||
"description": "", | ||
"sample_questions": [] | ||
}, | ||
"max_tokens": -1, | ||
"allow_inline_files": false, | ||
"files_collection_id": "", | ||
"streams": [ | ||
{ | ||
"provider": "openai", | ||
"settings": { | ||
"model": "gpt-4o", | ||
"temperature": 0, | ||
"response_format": { | ||
"type": "json_schema", | ||
"json_schema": { | ||
"name": "score_schema", | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"score": { | ||
"type": "number" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"messages": [ | ||
{ | ||
"timestamp": "", | ||
"role": "system", | ||
"content": "You are a scoring systems that classifies documents from 0-100 based on how well they answer a query.", | ||
"should_format": false | ||
}, | ||
{ | ||
"insert": "history" | ||
}, | ||
{ | ||
"timestamp": "", | ||
"role": "user", | ||
"content": "{query}", | ||
"should_format": false | ||
} | ||
] | ||
} | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters