Skip to main content
Whilst provides powerful search capabilities combining PostgreSQL full-text search with OpenAI vector embeddings for semantic similarity.

Search Modes

Semantic

Uses OpenAI embeddings (text-embedding-3-small, 1536 dimensions) to find conceptually similar results even with different wording.

Full-Text

PostgreSQL tsvector search with GIN indexes. Fast exact keyword matching with ranking.

Hybrid (RRF)

Combines both approaches using Reciprocal Rank Fusion for best-in-class accuracy.

How It Works

Usage

Database Schema

The search system relies on these database features:

Embedding Generation

Embeddings are generated automatically when documents are created or updated. For bulk operations:

API Endpoint

Search is also available via the REST API at /api/docs/hybrid-search. See the API Reference for details.