.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
Pass raw filter query based on your vector database.
Currently,
raw_filter param is only supported for Pinecone vector database.Returns
Usage
Basic
Refer to the following example on how to use the search api:Code example
Advanced
Metadata filtering using where params
Here is an advanced example of search() API with metadata filtering on pinecone database: