- chromaRetriever<
EmbedderCustomOptions extends
z.ZodType<any, any, any, EmbedderCustomOptions>,
>(
ai: Genkit,
params: {
clientParams?: ChromaClientParams;
collectionName: string;
createCollectionIfMissing?: boolean;
embedder: EmbedderArgument<EmbedderCustomOptions>;
embedderOptions?: z.TypeOf<EmbedderCustomOptions>;
},
): RetrieverAction<
z.ZodOptional<
z.ZodObject<
z.objectUtil.extendShape<
{ k: z.ZodOptional<z.ZodNumber> },
{
include: z.ZodOptional<
z.ZodArray<
z.ZodEnum<["documents", "embeddings", "metadatas", "distances"]>,
"many",
>,
>;
where: z.ZodOptional<z.ZodType<Where, z.ZodTypeDef, Where>>;
whereDocument: z.ZodOptional<
z.ZodType<WhereDocument, z.ZodTypeDef, WhereDocument>,
>;
},
>,
"strip",
z.ZodTypeAny,
{
include?: ("documents" | "embeddings" | "metadatas" | "distances")[];
k?: number;
where?: Where;
whereDocument?: WhereDocument;
},
{
include?: ("documents" | "embeddings" | "metadatas" | "distances")[];
k?: number;
where?: Where;
whereDocument?: WhereDocument;
},
>,
>,
> Returns RetrieverAction<
z.ZodOptional<
z.ZodObject<
z.objectUtil.extendShape<
{ k: z.ZodOptional<z.ZodNumber> },
{
include: z.ZodOptional<
z.ZodArray<
z.ZodEnum<["documents", "embeddings", "metadatas", "distances"]>,
"many",
>,
>;
where: z.ZodOptional<z.ZodType<Where, z.ZodTypeDef, Where>>;
whereDocument: z.ZodOptional<
z.ZodType<WhereDocument, z.ZodTypeDef, WhereDocument>,
>;
},
>,
"strip",
z.ZodTypeAny,
{
include?: ("documents" | "embeddings" | "metadatas" | "distances")[];
k?: number;
where?: Where;
whereDocument?: WhereDocument;
},
{
include?: ("documents" | "embeddings" | "metadatas" | "distances")[];
k?: number;
where?: Where;
whereDocument?: WhereDocument;
},
>,
>,
>
Configures a Chroma vector store retriever.