Skip to main content
Version: 2.0

Query a corpus with query parameters

GET 

/v2/corpora/:corpus_key/query

Queries a single corpus with a simple request. The Query APIs support Retrieval Augmented Generation (RAG). They search your data and generate AI-powered summaries.

The platform provides three query types:

Set these parameters:

  • corpus_key: The unique key of the corpus to query. You create the key in the Vectara Console or the Create Corpus API. You can assign a custom corpus_key that follows your preferred naming convention. Search requests reference the corpus by this key.
  • query: The search query string, which is the question you want to ask.
  • limit: The maximum number of results to return. Default: 10, minimum: 1

Request

Responses

A response to a query.