• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • genkitx-chromadb
  • chromaIndexer

Function chromaIndexer

  • chromaIndexer<
        EmbedderCustomOptions extends
            z.ZodType<any, any, any, EmbedderCustomOptions>,
    >(
        ai: Genkit,
        params: {
            clientParams?: ChromaClientParams;
            collectionName: string;
            createCollectionIfMissing?: boolean;
            embedder: EmbedderArgument<EmbedderCustomOptions>;
            embedderOptions?: z.TypeOf<EmbedderCustomOptions>;
        },
    ): IndexerAction<z.ZodOptional<z.ZodNull>>
  • Configures a Chroma indexer.

    Type Parameters

    • EmbedderCustomOptions extends z.ZodType<any, any, any, EmbedderCustomOptions>

    Parameters

    • ai: Genkit
    • params: {
          clientParams?: ChromaClientParams;
          collectionName: string;
          createCollectionIfMissing?: boolean;
          embedder: EmbedderArgument<EmbedderCustomOptions>;
          embedderOptions?: z.TypeOf<EmbedderCustomOptions>;
      }

    Returns IndexerAction<z.ZodOptional<z.ZodNull>>

    • Defined in plugins/chroma/src/index.ts:234

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme