/** * This file was auto-generated by Fern from our API Definition. */ import * as Vectara from "../../index"; /** * @example * { * query: "What is a hallucination?", * search: { * corpora: [{ * corpusKey: "corpus_key", * metadataFilter: "", * lexicalInterpolation: 0.005 * }], * contextConfiguration: { * sentencesBefore: 2, * sentencesAfter: 2 * }, * reranker: { * type: "customer_reranker", * rerankerId: "rnk_272725719" * } * }, * generation: { * responseLanguage: "eng", * enableFactualConsistencyScore: true * } * } */ export interface QueryRequest { /** * The API will make a best effort to complete the request in the specified seconds or time out. */ requestTimeout?: number; /** * The API will make a best effort to complete the request in the specified milliseconds or time out. */ requestTimeoutMillis?: number; /** The search query string, which is the question the user is asking. */ query: string; search: Vectara.SearchCorporaParameters; generation?: Vectara.GenerationParameters; /** Indicates whether to save the query in the query history. */ saveHistory?: boolean; }