Skip to content

Commit

Permalink
fix(ui): cutoff -> similarity_cutoff for backend kwargs
Browse files Browse the repository at this point in the history
  • Loading branch information
yg-lim committed Aug 9, 2024
1 parent 413224e commit 70852ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/form_fields/SimilaritySearchField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function SimilaritySearchField({ control }: SimilaritySearchFieldProps) {
{displayCutoff && (
<FormField
control={control}
name="similarity.cutoff"
name="similarity.similarity_cutoff"
render={({ field }) => (
<FormItem>
<FormLabel>Similarity Cutoff</FormLabel>
Expand Down
4 changes: 2 additions & 2 deletions ui/src/services/chatbot-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const clientPipelineConfigSchema = z.object({
generative_model: z.string(),
similarity: z.object({
on: z.boolean(),
cutoff: z.number().optional(),
similarity_cutoff: z.number().optional(),
}),
colbert_rerank: z.object({
on: z.boolean(),
Expand All @@ -31,7 +31,7 @@ export const serverPipelineConfigSchema = z.object({
postprocessing: z.object({
similarity: z.object({
on: z.string(),
cutoff: z.number().optional(),
similarity_cutoff: z.number().optional(),
}),
colbertRerank: z.object({
on: z.string(),
Expand Down

0 comments on commit 70852ab

Please sign in to comment.