SummaryConfig#

class langchain_community.vectorstores.vectara.SummaryConfig(is_enabled: bool = False, max_results: int = 7, response_lang: str = 'eng', prompt_name: str = 'vectara-summary-ext-24-05-med-omni', stream: bool = False)[source]#

Configuration for summary generation.

is_enabled: True if summary is enabled, False otherwise max_results: maximum number of results to summarize response_lang: requested language for the summary prompt_name: name of the prompt to use for summarization

Attributes

is_enabled

max_results

prompt_name

response_lang

stream

Methods

__init__([is_enabled, max_results, ...])

Parameters:
  • is_enabled (bool)

  • max_results (int)

  • response_lang (str)

  • prompt_name (str)

  • stream (bool)

__init__(is_enabled: bool = False, max_results: int = 7, response_lang: str = 'eng', prompt_name: str = 'vectara-summary-ext-24-05-med-omni', stream: bool = False) → None#
Parameters:
  • is_enabled (bool)

  • max_results (int)

  • response_lang (str)

  • prompt_name (str)

  • stream (bool)

Return type:

None

Examples using SummaryConfig