• Preparing search index...
  • The search index is not available
Genkit JS API reference
  • Genkit JS API reference
  • genkitx-pinecone
  • configurePineconeIndexer

Function configurePineconeIndexer

  • configurePineconeIndexer<
        EmbedderCustomOptions extends
            z.ZodType<any, any, any, EmbedderCustomOptions>,
    >(
        ai: Genkit,
        params: {
            clientParams?: PineconeConfiguration;
            contentKey?: string;
            embedder: EmbedderArgument<EmbedderCustomOptions>;
            embedderOptions?: z.TypeOf<EmbedderCustomOptions>;
            indexId: string;
            textKey?: string;
        },
    ): IndexerAction<
        z.ZodOptional<
            z.ZodObject<
                { namespace: z.ZodOptional<z.ZodString> },
                "strip",
                z.ZodTypeAny,
                { namespace?: string },
                { namespace?: string },
            >,
        >,
    >
  • Configures a Pinecone indexer.

    Type Parameters

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

    Parameters

    • ai: Genkit

      A Genkit instance

    • params: {
          clientParams?: PineconeConfiguration;
          contentKey?: string;
          embedder: EmbedderArgument<EmbedderCustomOptions>;
          embedderOptions?: z.TypeOf<EmbedderCustomOptions>;
          indexId: string;
          textKey?: string;
      }

      The params for the indexer

      • OptionalclientParams?: PineconeConfiguration

        PineconeConfiguration containing the PINECONE_API_KEY. If not set, the PINECONE_API_KEY environment variable will be used instead.

      • OptionalcontentKey?: string

        The metadata key that contains the content. If not specified, the value '_content' is used by default.

      • embedder: EmbedderArgument<EmbedderCustomOptions>

        The embedder to use for the retriever

      • OptionalembedderOptions?: z.TypeOf<EmbedderCustomOptions>

        Options to customize the embedder

      • indexId: string

        The name of the indexer

      • OptionaltextKey?: string

        Deprecated

        use contentKey instead.

    Returns IndexerAction<
        z.ZodOptional<
            z.ZodObject<
                { namespace: z.ZodOptional<z.ZodString> },
                "strip",
                z.ZodTypeAny,
                { namespace?: string },
                { namespace?: string },
            >,
        >,
    >

    A Genkit indexer

    • Defined in plugins/pinecone/src/index.ts:229

Settings

Member Visibility
Genkit JS API reference
  • Loading...

Generated using TypeDoc with typedoc-github-theme