langchain.js
    Preparing search index...

    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.

    const toolkit = new VectorStoreToolkit(
    {
    name: "state_of_union_address",
    description: "the most recent state of the Union address",
    vectorStore: new HNSWLib(),
    },
    new ChatOpenAI({ model: "gpt-4o-mini", temperature: 0 }),
    );
    const result = await toolkit.invoke({
    input:
    "What did biden say about Ketanji Brown Jackson in the state of the union address?",
    });
    console.log(`Got output ${result.output}`);

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Constructors

    • Parameters

      Returns VectorStoreToolkit

    Properties

    llm: BaseLanguageModelInterface
    tools: ToolInterface[]