Configuration for Vectara query.
k: Number of Documents to return. Defaults to 10. lambda_val: lexical match parameter for hybrid search. filter Dictionary of argument(s) to filter on metadata. For example a filter can be "doc.rating > 3.0 and part.lang = 'deu'"} see https://docs.vectara.com/docs/search-apis/sql/filter-overview for more details. score_threshold: minimal score threshold for the result. If defined, results with score less than this value will be filtered out. n_sentence_before: number of sentences before the matching segment to add, defaults to 2 n_sentence_after: number of sentences before the matching segment to add, defaults to 2 rerank_config: RerankConfig configuration dataclass summary_config: SummaryConfig configuration dataclass
VectaraQueryConfig(
self,
k: int = 10,
lambda_val: float = 0.0,
filter: str = '',
score_threshold: Optional[float] = None,
n_sentence_before: int = 2,
n_sentence_after: int = 2,
n_sentence_context: Optional[int] = None,
mmr_config: Optional[MMRConfig] = None,
summary_config: Optional[SummaryConfig] = None,
rerank_config: Optional[RerankConfig] = None
)