Type alias SemanticSimilarityExampleSelectorInput<V>

SemanticSimilarityExampleSelectorInput<V>: {
    vectorStore: V;
    exampleKeys?: string[];
    filter?: V["FilterType"];
    inputKeys?: string[];
    k?: number;
    vectorStoreRetriever?: never;
} | {
    vectorStoreRetriever: VectorStoreRetriever<V>;
    exampleKeys?: string[];
    filter?: never;
    inputKeys?: string[];
    k?: never;
    vectorStore?: never;
}

Interface for the input data of the SemanticSimilarityExampleSelector class.

Type Parameters

Type declaration

  • vectorStore: V
  • Optional exampleKeys?: string[]
  • Optional filter?: V["FilterType"]
  • Optional inputKeys?: string[]
  • Optional k?: number
  • Optional vectorStoreRetriever?: never

Type declaration

  • vectorStoreRetriever: VectorStoreRetriever<V>
  • Optional exampleKeys?: string[]
  • Optional filter?: never
  • Optional inputKeys?: string[]
  • Optional k?: never
  • Optional vectorStore?: never

Generated using TypeDoc