Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Vectara QA Chain

A chain for performing question-answering tasks with Vectara.

Definitions

A retrieval-based question-answering chain, which integrates with a Vectara retrieval component and allows you to configure input parameters and perform question-answering tasks.

Inputs

Parameters

NameDescription
Summarizer Prompt Namemodel to be used in generating the summary
Response Languagedesired language for the response
Max Summarized Resultsnumber of top results to use in summarization (defaults to 7)

Outputs

NameDescription
VectaraQAChainFinal node to return response

How It Works

  1. The chain receives a user question.
  2. If input moderation is enabled, it checks the input for potential harmful content.
  3. The Vectara store retrieves relevant documents based on the question.
  4. The retrieved documents are processed and ranked.
  5. The specified summarizer prompt is used to generate a concise answer from the top-ranked documents.
  6. The answer is formatted with reordered citations.
  7. The final answer and source documents are returned as output.

The Vectara QA Chain node provides a sophisticated solution for building AI-powered question-answering systems that leverage Vectara’s advanced search and summarization capabilities. It excels in scenarios requiring accurate information retrieval and concise summarization from large document collections.

This node is particularly valuable for enterprises needing to extract insights from vast knowledge bases, researchers seeking efficient ways to summarize findings, or developers building multilingual information retrieval systems.