Class representing a toolkit for working with a single vector store. It
initializes the vector store QA tool based on the provided vector store
information and language model.
Example
consttoolkit = newVectorStoreToolkit( { name:"state_of_union_address", description:"the most recent state of the Union address", vectorStore:newHNSWLib(), }, newChatOpenAI({ temperature:0 }), ); constresult = awaittoolkit.invoke({ input: "What did biden say about Ketanji Brown Jackson in the state of the union address?", }); console.log(`Got output ${result.output}`);
Class representing a toolkit for working with a single vector store. It initializes the vector store QA tool based on the provided vector store information and language model.
Example