langchain.js
    Preparing search index...

    Class VectorStoreQATool

    A tool for the VectorDBQA chain to interact with a Vector Store. It is used to answer questions about a specific topic. The input to this tool should be a fully formed question.

    Hierarchy (View Summary)

    Implements

    • VectorStoreTool
    Index

    Constructors

    • Parameters

      • name: string
      • description: string
      • fields: VectorStoreTool

      Returns VectorStoreQATool

    Properties

    description: string
    llm: BaseLanguageModelInterface
    name: string
    vectorStore: VectorStoreInterface

    Methods

    • Returns a string that describes what the tool does.

      Parameters

      • name: string

        The name of the tool.

      • description: string

        A description of what the tool does.

      Returns string

      A string that describes what the tool does.

    • Returns string