The AmazonKnowledgeBaseRetriever integration has been moved to the @langchain/aws package. Import from @langchain/aws instead.

Interface for the arguments required to initialize an AmazonKnowledgeBaseRetriever instance.

interface AmazonKnowledgeBaseRetrieverArgs {
    clientOptions?: BedrockAgentRuntimeClientConfig;
    knowledgeBaseId: string;
    region: string;
    topK: number;
}

Properties

clientOptions?: BedrockAgentRuntimeClientConfig
knowledgeBaseId: string
region: string
topK: number