@lobehub/chat
Version:
Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.
17 lines (12 loc) • 508 B
text/typescript
import { z } from 'zod';
import { ChatSemanticSearchChunk } from '@/types/chunk';
export const SemanticSearchSchema = z.object({
fileIds: z.array(z.string()).optional(),
knowledgeIds: z.array(z.string()).optional(),
messageId: z.string(),
model: z.string().optional(),
rewriteQuery: z.string(),
userQuery: z.string(),
});
export type SemanticSearchSchemaType = z.infer<typeof SemanticSearchSchema>;
export type MessageSemanticSearchChunk = Pick<ChatSemanticSearchChunk, 'id' | 'similarity'>;