Skip to content

Commit

Permalink
fix(search): missing schema and parsing for overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Oct 31, 2023
1 parent 06345c8 commit f0da905
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions packages/search/src/plugins/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,19 @@ export const chatRequestSchema = {
type: 'object',
properties: {
approach: { type: 'string' },
retrieval_mode: {
type: 'string',
enum: ['hybrid', 'text', 'vectors'],
},
semantic_ranker: { type: 'boolean' },
semantic_captions: { type: 'boolean' },
top: { type: 'number' },
temperature: { type: 'number' },
exclude_category: { type: 'string' },
prompt_template: { type: 'string' },
prompt_template_prefix: { type: 'string' },
prompt_template_suffix: { type: 'string' },
suggest_followup_questions: { type: 'boolean' },
},
additionalProperties: { type: 'string' },
},
Expand Down
6 changes: 3 additions & 3 deletions packages/search/test.http
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Content-Type: application/json

{
"messages": [{
"content": "What happens if a rental doesn't fit the description?",
"content": "How to search and book rentals?",
"role": "user"
}],
"context": {
Expand All @@ -37,7 +37,7 @@ Content-Type: application/json

{
"messages": [{
"content": "What happens if a rental doesn't fit the description?",
"content": "How to search and book rentals?",
"role": "user"
}],
"stream": true,
Expand All @@ -47,7 +47,7 @@ Content-Type: application/json
"semantic_ranker": true,
"semantic_captions": false,
"top": 3,
"suggest_followup_questions": false
"suggest_followup_questions": true
}
}

Expand Down

0 comments on commit f0da905

Please sign in to comment.