You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// No result message for when there are no chunks found above the score threshold.
108
108
pubno_result_message:Option<String>,
109
+
/// Only include docs used is a boolean that indicates whether or not to only include the docs that were used in the completion. If true, the completion will only include the docs that were used in the completion. If false, the completion will include all of the docs.
110
+
pubonly_include_docs_used:Option<bool>,
109
111
/// The currency to use for the completion. If not specified, this defaults to "USD".
110
112
pubcurrency:Option<String>,
111
113
/// Search_type can be either "semantic", "fulltext", or "hybrid". "hybrid" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using scores from a cross encoder model. "semantic" will pull in one page (10 chunks) of the nearest cosine distant vectors. "fulltext" will pull in one page (10 chunks) of full-text results based on SPLADE. Default is "hybrid".
/// No result message for when there are no chunks found above the score threshold.
408
411
pubno_result_message:Option<String>,
412
+
/// Only include docs used is a boolean that indicates whether or not to only include the docs that were used in the completion. If true, the completion will only include the docs that were used in the completion. If false, the completion will include all of the docs.
413
+
pubonly_include_docs_used:Option<bool>,
409
414
/// The currency symbol to use for the completion. If not specified, this defaults to "$".
410
415
pubcurrency:Option<String>,
411
416
/// Search_type can be either "semantic", "fulltext", or "hybrid". "hybrid" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using scores from a cross encoder model. "semantic" will pull in one page (10 chunks) of the nearest cosine distant vectors. "fulltext" will pull in one page (10 chunks) of full-text results based on SPLADE. Default is "hybrid".
/// No result message for when there are no chunks found above the score threshold.
462
467
pubno_result_message:Option<String>,
468
+
/// Only include docs used is a boolean that indicates whether or not to only include the docs that were used in the completion. If true, the completion will only include the docs that were used in the completion. If false, the completion will include all of the docs.
469
+
pubonly_include_docs_used:Option<bool>,
463
470
/// The currency symbol to use for the completion. If not specified, this defaults to "$".
464
471
pubcurrency:Option<String>,
465
472
/// Search_type can be either "semantic", "fulltext", or "hybrid". "hybrid" will pull in one page (10 chunks) of both semantic and full-text results then re-rank them using scores from a cross encoder model. "semantic" will pull in one page (10 chunks) of the nearest cosine distant vectors. "fulltext" will pull in one page (10 chunks) of full-text results based on SPLADE. Default is "hybrid".
@@ -517,6 +524,7 @@ impl From<EditMessageReqPayload> for CreateMessageReqPayload {
@@ -151,9 +192,25 @@ If you use the search tool, you MUST use the chunks_used tool to respond with th
151
192
respond with the chunks you MUST include in your response to the user's question.
152
193
"#;
153
194
195
+
constSTRUCTURE_SYSTEM_PROMPT:&str = r#"
196
+
Before you start generating respond with the documents that you plan to use to generate your response, YOU MUST INCLUDE AT LEAST 1.
197
+
YOU MUST DO THIS BEFORE YOU CONTINUE TO GENERATE A RESPONSE.
198
+
After responding with the documents, YOU MUST RESPOND TO THE USERS PROMPT.
199
+
```
200
+
Example:
201
+
User:
202
+
Here's my prompt: what about for spreadsheets \n\n Use the following retrieved documents to respond briefly and accurately: {"doc": 1, "text": "chunk text..", "link": "chunk link.." }\n\n{"doc": 2, "text": "chunk text..", "link": "chunk link.." }... etc
0 commit comments