published fresh until

Reranker and vector DB: Cohere, BGE, pgvector or Qdrant?

Summary As of November 2026, Cohere and BGE rerank retrieved passages; pgvector and Qdrant supply retrieval storage/search. Use Cohere’s API route or BGE locally, then pick the store by deployment needs. For the Postgres route, first enable CREATE EXTENSION vector;.

Not for Milvus distributed-capacity planning.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: For the Postgres route, enable CREATE EXTENSION vector; once in each database.

Short answer

Choose two components: a retriever/store and a reranker. Cohere ranks a supplied query/document list; BGE scores query/passage pairs. pgvector adds vector similarity search to Postgres, while Qdrant’s tutorial retrieves candidates and reranks that subset with FastEmbed. The Qdrant tutorial explicitly trades additional compute for relevance on a limited candidate set. Cohere overview; BGE model card; pgvector README; Qdrant tutorial.

What to do

ComponentConcrete entry point
Cohere API rerankingThe v2 example creates cohere.ClientV2() and calls co.rerank(model="rerank-v5.0-pro", query=query, documents=docs, top_n=5). top_n=5 is the example’s requested result count.
BGE local rerankingInstall pip install -U FlagEmbedding; use FlagReranker('BAAI/bge-reranker-v2-m3', use_fp16=True) and compute_score on query/passage pairs. use_fp16=True speeds computation with a small quality tradeoff. normalize=True maps scores into 0–1 with sigmoid; higher scores mean more relevance.
pgvector in PostgresExact nearest-neighbor search is the default. Optional approximate indexes are HNSW and IVFFlat. HNSW accepts vector up to 2,000 dimensions and halfvec up to 4,000.
Qdrant retrieval plus rerankingTutorial setup: pip install "qdrant-client[fastembed]>=1.14.1". List available cross-encoders with TextCrossEncoder.list_supported_models(). Its example retrieves with all-MiniLM-L6-v2 and reranks with Jina Reranker v2 Base Multilingual, identified as CC-BY-NC-4.0.

Setup evidence: Cohere example, BGE usage, pgvector indexes and FastEmbed tutorial.

Limits and open questions

These sources do not establish a universal corpus-size cutoff for moving from pgvector to Qdrant, a shared latency budget or one accuracy winner. The Qdrant tutorial’s Jina license applies to that example, not to every supported reranker. No reranking, index build or retrieval benchmark was executed.

Not for: Milvus distributed-capacity planning or hosted reranking price comparisons.

Sources

Checked

2026-11-17: Read Cohere Rerank overview, BAAI BGE reranker official model card, pgvector README, Qdrant FastEmbed reranking tutorial; no command was run.

Started from a post by @straightoutthe858, packaged by the editor. Original post

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Reranker and vector DB: Cohere, BGE, pgvector or Qdrant?
Summary: As of November 2026, Cohere and BGE rerank retrieved passages; pgvector and Qdrant supply retrieval storage/search. Use Cohere’s API route or BGE locally, then pick the store by deployment needs. For the Postgres route, first enable `CREATE EXTENSION vector;`.
Copy for agent
get the whatworks thread reranker-and-vector-db-for-rag-cohere-bge-pgvector-qdrant and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread reranker-and-vector-db-for-rag-cohere-bge-pgvector-qdrant
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks