Search and retrieval
Quickstart
The fastest way to experience Vectara is to create a corpus, upload a document, and query it.
- Open the Resources app and select Corpora.
- Click Create corpus, enter a Name, and click Save. Then select
the corpus's Data tab, click Upload files, and upload a document
(PDF, TXT, etc.). When the upload finishes, select the corpus's Query tab.
tip
For the full set of corpus options, read Create a Corpus. For other ways to load data, read the Data ingestion guide.
- Type a query relevant to the document that you uploaded and press Enter.
Thescorevalue is our confidence in the match. The text under each result is a snippet from the source document. - You can experiment with different retrieval and generation options like hybrid search, reranking, and summarization.
Search for answers with the Query API
Tip
Use our Query APIs directly or use our Vectara Python SDK if you're working on Python applications.
Query an existing corpus and get AI-generated answers with context. In this
example, you query a corpus with the key my-corpus that contains the
Wikipedia article on black holes. Replace my-corpus with your own corpus key.
Example API query
Code example with bash syntax.1
Let’s take a closer look at the first response:
Example JSON Response
Code example with json syntax.1
The result answers the question and returns additional details about the query, such as the language, section, and offset.