Skip to main content

Search Options

Options Reference

Search Results

Filtering Results

Simple Filters

Complex Filters

Similarity Thresholds

Adjust thresholds based on your use case:
Start with a lower threshold (0.3-0.4) and increase it if you’re getting too many irrelevant results.

Non-Semantic Filtering

For filtering without semantic search, use filter():

Performance Tips

1. Use Appropriate topK

Request only as many results as you need:

2. Use Filters to Reduce Search Space

Apply metadata filters to narrow results before similarity ranking:

3. Enable HNSW for Large Datasets

For datasets > 10,000 documents, enable HNSW indexing:
See HNSW for details.

Error Handling

Indexing

Adding documents

HNSW

Scaling search

Overview

Getting started