langchain_community.vectorstores.vectara
.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-v1.2.0')[source]¶
用于生成摘要的配置。
is_enabled: 如果启用了摘要,则为True,否则为False max_results: 要总结的最大结果数 response_lang: 摘要的请求语言 prompt_name: 用于总结的提示名称
(参见https://docs.vectara.com/docs/learn/grounded-generation/select-a-summarizer)
Attributes
is_enabled
max_results
prompt_name
response_lang
Methods
__init__
([is_enabled, max_results, ...])- Parameters
is_enabled (bool) –
max_results (int) –
response_lang (str) –
prompt_name (str) –
- Return type
None
- __init__(is_enabled: bool = False, max_results: int = 7, response_lang: str = 'eng', prompt_name: str = 'vectara-summary-ext-v1.2.0') None ¶
- Parameters
is_enabled (bool) –
max_results (int) –
response_lang (str) –
prompt_name (str) –
- Return type
None