UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

125 lines 4.34 kB
import { z } from "zod"; import { VectorStore } from "../VectorStore"; export declare const Question: z.ZodObject<{ embedding: z.ZodArray<z.ZodNumber, "many">; embedding_model: z.ZodString; embedding_model_version: z.ZodString; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }, { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }>; export type Question = z.infer<typeof Question>; export declare const VerifiedAnswer: z.ZodObject<{ _id: z.ZodString; question: z.ZodObject<{ embedding: z.ZodArray<z.ZodNumber, "many">; embedding_model: z.ZodString; embedding_model_version: z.ZodString; text: z.ZodString; }, "strip", z.ZodTypeAny, { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }, { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }>; answer: z.ZodString; author_email: z.ZodString; hidden: z.ZodOptional<z.ZodBoolean>; references: z.ZodArray<z.ZodObject<{ url: z.ZodString; title: z.ZodString; metadata: z.ZodOptional<z.ZodObject<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, "passthrough", z.ZodTypeAny, z.objectOutputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough">, z.objectInputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough">>>; }, "strip", z.ZodTypeAny, { url: string; title: string; metadata?: z.objectOutputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough"> | undefined; }, { url: string; title: string; metadata?: z.objectInputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough"> | undefined; }>, "many">; created: z.ZodDate; updated: z.ZodOptional<z.ZodDate>; }, "strip", z.ZodTypeAny, { created: Date; _id: string; question: { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }; answer: string; author_email: string; references: { url: string; title: string; metadata?: z.objectOutputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough"> | undefined; }[]; updated?: Date | undefined; hidden?: boolean | undefined; }, { created: Date; _id: string; question: { text: string; embedding: number[]; embedding_model: string; embedding_model_version: string; }; answer: string; author_email: string; references: { url: string; title: string; metadata?: z.objectInputType<{ sourceName: z.ZodOptional<z.ZodString>; sourceType: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; }, z.ZodTypeAny, "passthrough"> | undefined; }[]; updated?: Date | undefined; hidden?: boolean | undefined; }>; export type VerifiedAnswer = z.infer<typeof VerifiedAnswer>; export type VerifiedAnswerStore = VectorStore<VerifiedAnswer> & { find<FindArgs extends Record<string, unknown>>(args: FindArgs): Promise<VerifiedAnswer[]>; }; //# sourceMappingURL=VerifiedAnswer.d.ts.map