Suppose a policy assistant answers questions about 300 text excerpts. It finds the right policy for exact names, but it misses a user who says “money back” instead of “refund.” A new database alone will not fix that vocabulary gap.
Write down the problem first
- Meaning: Compare your current results with exact similarity over embeddings. Label paraphrases and exact identifiers separately.
- Speed: Measure search time separately from reranking and generation. An index helps only if search is a meaningful part of the delay.
- Access: Check that a caller can search only allowed material. If you try an approximate index, measure recall after applying the same scope.
Missing evidence?
Inspect parsing, metadata and chunking before changing storage.
Slow exact search?
Hold the embedding constant and compare an approximate index against the exact results.
Keep one experiment small
Freeze one corpus snapshot and a small, reviewed question set. Write down the p95 retrieval time and the relevant sources found in the first five results. Compare the baseline, the candidate, and a few difficult scoped queries. Save the results and the largest quality regression. Decide whether that trade is acceptable before adding another service to operate.
The pgvector documentation explains exact and approximate search options. Try those options only when your workload or access pattern calls for them.