Skip to main content
The .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

string
Question

Returns

Chunk[]
The list of relevant information

Usage

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