Skip to main content
.search() enables you to uncover the most pertinent context by performing a semantic search across your data sources based on a given query. Refer to the function signature below:

Parameters

str
Question
int
Number of relevant documents to fetch. Defaults to 3

Returns

dict
Return list of dictionaries that contain the relevant chunk and their source information.

Usage

Refer to the following example on how to use the search api:
Code example