Function configurePineconeRetriever
- configurePineconeRetriever<
EmbedderCustomOptions extends
ZodType<any, any, any, EmbedderCustomOptions>,
>(
ai: Genkit,
params: {
clientParams?: PineconeConfiguration;
contentKey?: string;
embedder: EmbedderArgument<EmbedderCustomOptions>;
embedderOptions?: TypeOf<EmbedderCustomOptions>;
indexId: string;
textKey?: string;
},
): RetrieverAction<
ZodObject<
extendShape<
{ k: ZodOptional<ZodNumber> },
{
filter: ZodOptional<ZodRecord<ZodString, ZodAny>>;
k: ZodNumber;
namespace: ZodOptional<ZodString>;
sparseVector: ZodOptional<
ZodEffects<
ZodObject<
{
indices: ZodArray<ZodNumber, "many">;
values: ZodArray<ZodNumber, "many">;
},
"strip",
ZodTypeAny,
{ indices: number[]; values: number[] },
{ indices: number[]; values: number[] },
>,
{ indices: number[]; values: number[] },
{ indices: number[]; values: number[] },
>,
>;
},
>,
"strip",
ZodTypeAny,
{
filter?: Record<string, any>;
k: number;
namespace?: string;
sparseVector?: { indices: number[]; values: number[] };
},
{
filter?: Record<string, any>;
k: number;
namespace?: string;
sparseVector?: { indices: number[]; values: number[] };
},
>,
> Parameters
- ai: Genkit
- params: {
clientParams?: PineconeConfiguration;
contentKey?: string;
embedder: EmbedderArgument<EmbedderCustomOptions>;
embedderOptions?: TypeOf<EmbedderCustomOptions>;
indexId: string;
textKey?: string;
}Optional
clientParams?: PineconeConfiguration
Optional
contentKey?: string
indexId: string
Optional
textKey?: string
Returns RetrieverAction<
ZodObject<
extendShape<
{ k: ZodOptional<ZodNumber> },
{
filter: ZodOptional<ZodRecord<ZodString, ZodAny>>;
k: ZodNumber;
namespace: ZodOptional<ZodString>;
sparseVector: ZodOptional<
ZodEffects<
ZodObject<
{
indices: ZodArray<ZodNumber, "many">;
values: ZodArray<ZodNumber, "many">;
},
"strip",
ZodTypeAny,
{ indices: number[]; values: number[] },
{ indices: number[]; values: number[] },
>,
{ indices: number[]; values: number[] },
{ indices: number[]; values: number[] },
>,
>;
},
>,
"strip",
ZodTypeAny,
{
filter?: Record<string, any>;
k: number;
namespace?: string;
sparseVector?: { indices: number[]; values: number[] };
},
{
filter?: Record<string, any>;
k: number;
namespace?: string;
sparseVector?: { indices: number[]; values: number[] };
},
>,
>
A Pinecone retriever
Configures a Pinecone retriever.