Skip to main content
Search for documents using semantic similarity.

Signature

Parameters

SearchOptions

Return Value

Results are sorted by score in descending order (highest similarity first).

Examples

With Options

With Vectors

Errors

Error Handling

Performance

  • Brute-force: O(n) - scans all documents
  • HNSW: O(log n) - approximate nearest neighbor
Enable HNSW for datasets > 10,000 documents.

add()

Add documents

filter()

Non-semantic filtering

SearchOptions

Search interface