Queries
Perform search and Retrieval Augmented Generation (RAG) operations on one or more corpora
📄️ Simple Single Corpus Query
Search a single corpus with a straightforward query request, specifying the corpus key and query parameters. * Specify the unique `corpus_key` identifying the corpus to query. The `corpus_key` is [created in the Vectara Console UI](https://docs.vectara.com/docs/console-ui/creating-a-corpus) or the [Create Corpus API definition](https://docs.vectara.com/docs/api-reference/admin-apis/create-corpus). When creating a new corpus, you have the option to assign a custom `corpus_key` following your preferred naming convention. This key serves as a unique identifier for the corpus, allowing it to be referenced in search requests. For more information, see [Corpus Key Definition](https://docs.vectara.com/docs/api-reference/search-apis/search#corpus-key-definition). * Enter the search `query` string for the corpus, which is the question you want to ask. * Set the maximum number of results (`limit`) to return. **Default**: 10, **minimum**: 1 * Define the `offset` position from which to start in the result set.
📄️ Advanced Single Corpus Query
Perform an advanced query on a specific corpus to find relevant results, highlight relevant snippets, and use Retrieval Augmented Generation:
📄️ Multiple Corpora Query
Perform a multipurpose query across to retrieve relevant information from one or more corpora and generate a response using Retrieval Augmented Generation (RAG).