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
Copy file name to clipboardExpand all lines: clients/ts-sdk/openapi.json
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7102,7 +7102,7 @@
7102
7102
"MESSAGE_TO_QUERY_PROMPT": "Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
7103
7103
"N_RETRIEVALS_TO_INCLUDE": 8,
7104
7104
"PRESENCE_PENALTY": 0.0,
7105
-
"RAG_PROMPT": "Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
7105
+
"RAG_PROMPT": "Use the following retrieved documents to respond briefly and accurately:",
7106
7106
"SEMANTIC_ENABLED": true,
7107
7107
"STOP_TOKENS": [
7108
7108
"\n\n",
@@ -7358,7 +7358,7 @@
7358
7358
"MESSAGE_TO_QUERY_PROMPT": "Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
7359
7359
"N_RETRIEVALS_TO_INCLUDE": 8,
7360
7360
"PRESENCE_PENALTY": 0.0,
7361
-
"RAG_PROMPT": "Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
7361
+
"RAG_PROMPT": "Use the following retrieved documents to respond briefly and accurately:",
7362
7362
"SEMANTIC_ENABLED": true,
7363
7363
"STOP_TOKENS": [
7364
7364
"\n\n",
@@ -7619,7 +7619,7 @@
7619
7619
"MESSAGE_TO_QUERY_PROMPT": "Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
7620
7620
"N_RETRIEVALS_TO_INCLUDE": 8,
7621
7621
"PRESENCE_PENALTY": 0.0,
7622
-
"RAG_PROMPT": "Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
7622
+
"RAG_PROMPT": "Use the following retrieved documents to respond briefly and accurately:",
7623
7623
"SEMANTIC_ENABLED": true,
7624
7624
"STOP_TOKENS": [
7625
7625
"\n\n",
@@ -12601,7 +12601,7 @@
12601
12601
"MESSAGE_TO_QUERY_PROMPT": "Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
12602
12602
"N_RETRIEVALS_TO_INCLUDE": 8,
12603
12603
"PRESENCE_PENALTY": 0.0,
12604
-
"RAG_PROMPT": "Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
12604
+
"RAG_PROMPT": "Use the following retrieved documents to respond briefly and accurately:",
12605
12605
"SEMANTIC_ENABLED": true,
12606
12606
"STOP_TOKENS": [
12607
12607
"\n\n",
@@ -12893,7 +12893,7 @@
12893
12893
"MESSAGE_TO_QUERY_PROMPT": "Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
12894
12894
"N_RETRIEVALS_TO_INCLUDE": 8,
12895
12895
"PRESENCE_PENALTY": 0.0,
12896
-
"RAG_PROMPT": "Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
12896
+
"RAG_PROMPT": "Use the following retrieved documents to respond briefly and accurately:",
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
1846
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
1846
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
1847
1847
"N_RETRIEVALS_TO_INCLUDE":8,
1848
1848
"EMBEDDING_SIZE":1536,
1849
1849
"DISTANCE_METRIC":"cosine",
@@ -1992,7 +1992,7 @@ pub enum DistanceMetric {
1992
1992
"EMBEDDING_BASE_URL":"https://api.openai.com/v1",
1993
1993
"EMBEDDING_MODEL_NAME":"text-embedding-3-small",
1994
1994
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
1995
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
1995
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
2056
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
2056
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
2057
2057
"N_RETRIEVALS_TO_INCLUDE":8,
2058
2058
"EMBEDDING_SIZE":1536,
2059
2059
"DISTANCE_METRIC":"cosine",
@@ -2146,7 +2146,7 @@ impl From<DatasetConfigurationDTO> for DatasetConfiguration {
MESSAGE_TO_QUERY_PROMPT: dto.MESSAGE_TO_QUERY_PROMPT.unwrap_or("Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n".to_string()),
2149
-
RAG_PROMPT: dto.RAG_PROMPT.unwrap_or("Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:".to_string()),
2149
+
RAG_PROMPT: dto.RAG_PROMPT.unwrap_or("Use the following retrieved documents to respond briefly and accurately:".to_string()),
MESSAGE_TO_QUERY_PROMPT:"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n".to_string(),
2219
-
RAG_PROMPT:"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:".to_string(),
2219
+
RAG_PROMPT:"Use the following retrieved documents to respond briefly and accurately:".to_string(),
}).unwrap_or("Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n".to_string()),
2299
2299
RAG_PROMPT: configuration
2300
2300
.get("RAG_PROMPT")
2301
-
.unwrap_or(&json!("Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:".to_string()))
2301
+
.unwrap_or(&json!("Use the following retrieved documents to respond briefly and accurately:".to_string()))
2302
2302
.as_str()
2303
2303
.map(|s|
2304
2304
if s.is_empty(){
2305
-
"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:".to_string()
2305
+
"Use the following retrieved documents to respond briefly and accurately:".to_string()
2306
2306
}else{
2307
2307
s.to_string()
2308
2308
}
2309
2309
)
2310
-
.unwrap_or("Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:".to_string()),
2310
+
.unwrap_or("Use the following retrieved documents to respond briefly and accurately:".to_string()),
Copy file name to clipboardExpand all lines: server/src/handlers/dataset_handler.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ impl FromRequest for DatasetAndOrgWithSubAndPlan {
49
49
"EMBEDDING_BASE_URL":"https://api.openai.com/v1",
50
50
"EMBEDDING_MODEL_NAME":"text-embedding-3-small",
51
51
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
52
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
52
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
53
53
"N_RETRIEVALS_TO_INCLUDE":8,
54
54
"EMBEDDING_SIZE":1536,
55
55
"DISTANCE_METRIC":"cosine",
@@ -152,7 +152,7 @@ pub async fn create_dataset(
152
152
"EMBEDDING_BASE_URL":"https://api.openai.com/v1",
153
153
"EMBEDDING_MODEL_NAME":"text-embedding-3-small",
154
154
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
155
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
155
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
"MESSAGE_TO_QUERY_PROMPT":"Write a 1-2 sentence semantic search query along the lines of a hypothetical response to: \n\n",
338
-
"RAG_PROMPT":"Use the following retrieved documents in your response. Include footnotes in the format of the document number that you used for a sentence in square brackets at the end of the sentences like [^n] where n is the doc number. These are the docs:",
338
+
"RAG_PROMPT":"Use the following retrieved documents to respond briefly and accurately:",
0 commit comments