# Query Quotient

> Query Quotient is an AI, agents and search consultancy. We design, build and operate AI agents, retrieval-augmented generation (RAG) systems and AI search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer for teams taking AI into production.

Based in the United States, working with clients worldwide. Elastic Verified MSP, Elastic Technology Partner and AWS OpenSearch Partner. Contact: hello@queryquotient.com.

## Services
- [RAG Implementation](https://queryquotient.com/services/rag-implementation): Applied AI & RAG - Retrieval-augmented generation, evaluation harnesses and LLM integration that turn your documents and databases into accurate, cited answers.
- [AI Agent Development](https://queryquotient.com/services/ai-agent-builder): AI Agents - Tool-using agents and multi-agent workflows built on Claude, GPT and open models - with guardrails, observability and humans in the loop.
- [Elasticsearch Consulting](https://queryquotient.com/services/elasticsearch-consulting): AI Search - Hybrid, semantic and vector search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer - architected, tuned and operated for relevance, latency and cost.
- [OpenSearch Consulting](https://queryquotient.com/services/opensearch-consulting): AI Search - Hybrid, semantic and vector search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer - architected, tuned and operated for relevance, latency and cost.
- [Qdrant Consulting](https://queryquotient.com/services/qdrant-consulting): AI Search - Hybrid, semantic and vector search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer - architected, tuned and operated for relevance, latency and cost.
- [Vespa Consulting](https://queryquotient.com/services/vespa-consulting): AI Search - Hybrid, semantic and vector search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer - architected, tuned and operated for relevance, latency and cost.
- [turbopuffer Consulting](https://queryquotient.com/services/turbopuffer-consulting): AI Search - Hybrid, semantic and vector search on Elasticsearch, OpenSearch, Qdrant, Vespa and turbopuffer - architected, tuned and operated for relevance, latency and cost.

## Case studies
- [AlphaSense](https://queryquotient.com/case-studies/alphasense): 90% faster queries, 99.99% uptime and 3x better relevancy across 100M+ financial documents on Elasticsearch
- [GrabJobs](https://queryquotient.com/case-studies/grabjobs): 10M+ job listings in 12+ languages with 5ms average query time and 40% lower infrastructure cost on OpenSearch
- [Lenskart](https://queryquotient.com/case-studies/lenskart): 300% conversion increase, sub-100ms responses and 60% better relevancy with personalized Elasticsearch search

## Blog
- [Qdrant multitenancy: is_tenant payload partitioning vs a collection per tenant](https://queryquotient.com/blog/qdrant-multitenancy-design): Qdrant multitenancy works best as one collection with an is_tenant keyword index, per-tenant HNSW via payload_m, and shard keys for the few large tenants. Tested on Qdrant 1.20.0, including what JWT can and cannot scope.
- [Elasticsearch semantic_text chunking: settings, limits and getting the matching chunk](https://queryquotient.com/blog/elasticsearch-semantic-text-chunking): We tested semantic_text chunking on Elasticsearch 9.5.5 with E5: the real chunking_settings limits, how to get the matching chunk back with the semantic highlighter, silent truncation, and when to chunk it yourself.
- [Why OpenSearch k-NN with a filter returns fewer results than k, and how to fix it](https://queryquotient.com/blog/opensearch-knn-filter-fewer-results): A filter outside the knn clause runs after the vector search, so a 1% filter keeps about 1% of k. We ran every filter method at six selectivities on OpenSearch 3.9.0 and logged the hit counts.
- [Vespa phased ranking: first-phase, second-phase and global-phase explained](https://queryquotient.com/blog/vespa-phased-ranking-explained): Vespa phased ranking scores every match cheaply on the content nodes, reranks the best hits per node in second-phase, then runs an ONNX cross-encoder in the container. We ran all three on Vespa 8.778 and show the match-features output.
- [turbopuffer namespace design: one namespace per tenant, or shared with filters?](https://queryquotient.com/blog/turbopuffer-namespace-design): Draw turbopuffer namespaces around what is queried together. For multi-tenant apps that means one namespace per tenant. The billing rules, limits, deletes and schema behaviour that decide it, with the code.
- [Qdrant hybrid search with the Query API: dense + sparse, RRF vs DBSF](https://queryquotient.com/blog/qdrant-hybrid-search-query-api): Qdrant hybrid search runs dense and BM25 prefetches and fuses them with RRF or DBSF. We ran both on Qdrant 1.20.0 and show where their rankings split, why Qdrant's RRF k defaults to 2, and a rescoring trap with quantized prefetches.
- [Tuning Elasticsearch kNN recall: num_candidates, oversampling and rescoring](https://queryquotient.com/blog/elasticsearch-knn-num-candidates-oversampling): We swept num_candidates and rescore_vector.oversample on Elasticsearch 9.5.5 with int8_hnsw and bbq_hnsw, scored against an exact script_score baseline. On int8 the dial is num_candidates. On BBQ it is oversample.
- [OpenSearch dense vector fields: knn_vector explained for Elasticsearch users](https://queryquotient.com/blog/opensearch-dense-vector-knn-vector-mapping): OpenSearch has no dense_vector type. We converted an Elasticsearch 9.5.5 dense_vector mapping to knn_vector on OpenSearch 3.9.0, compared scores on both and recorded every error, including two ES parameters OpenSearch drops without telling you.
- [bbq_hnsw vs bbq_disk (DiskBBQ) in Elasticsearch: which vector index to choose](https://queryquotient.com/blog/elasticsearch-bbq-hnsw-vs-bbq-disk): We tested both BBQ index types on Elasticsearch 9.5.5. On self-managed clusters the default is still bbq_hnsw, bbq_disk needs an Enterprise license to index, and switching between them means a reindex.
- [nmslib is deprecated in OpenSearch: how to migrate k-NN indices to Faiss or Lucene](https://queryquotient.com/blog/opensearch-nmslib-deprecated-migrate-to-faiss): nmslib was deprecated in k-NN 2.19 and OpenSearch 3.0 refuses to create new nmslib indices. We upgraded a 2.19.7 nmslib index to 3.9.0, found every nmslib field, reindexed to Faiss and swapped the alias. Here is each request.
- [Qdrant TurboQuant vs scalar vs binary quantization, and when to rescore](https://queryquotient.com/blog/qdrant-turboquant-quantization-guide): TurboQuant arrived in Qdrant 1.18, and Qdrant calls 4-bit a good default for many collections. Compression per bit depth, which encodings rescore by default, how oversampling works, and a script that measures recall@10 on your data.
- [turbopuffer cold start latency: hint_cache_warm and designing agents around cold namespaces](https://queryquotient.com/blog/turbopuffer-cold-start-latency): The first query to a cold turbopuffer namespace reads object storage and is tens of times slower than a cached one. Here is why, what the hint_cache_warm endpoint costs, and where to call it in an agent loop.
- [Reciprocal rank fusion in Vespa: hybrid search in global-phase, and the rerank-count trap](https://queryquotient.com/blog/vespa-reciprocal-rank-fusion-global-phase): Vespa runs reciprocal rank fusion in the global-phase, over the top rerank-count hits from first-phase. We tested it on Vespa 8.778 and show how a small rerank-count drops a strong keyword match from the fusion.
- [Your AI agent is only as good as its retriever](https://queryquotient.com/blog/agent-only-as-good-as-its-retriever): When an agent gets answers wrong, teams reach for a bigger model. Published benchmarks point somewhere cheaper: the same agent with a better retriever jumped from 55.9% to 70.1% accuracy and searched less doing it.
- [The reliability math of AI agents: why 95% per step is not good enough](https://queryquotient.com/blog/agent-reliability-math): A 20-step agent that gets each step right 95% of the time finishes cleanly only 36% of the time. Here is the arithmetic, what benchmarks show, and the five design levers that actually move reliability.
- [How RAG fails in production: a field guide to eight failure modes](https://queryquotient.com/blog/how-rag-fails-in-production): Most RAG systems that disappoint in production fail in a handful of predictable ways. For each one: the symptom, the metric that catches it, and the fix.
- [Hybrid search scoring, explained: Elasticsearch 9.5 vs OpenSearch 3.9](https://queryquotient.com/blog/hybrid-search-scoring-explained): We ran the same hybrid queries on Elasticsearch 9.5.5 and OpenSearch 3.9.0 with identical data and vectors. Raw scores differ by exactly 2.2x, fused scores match to four decimals, and your page size can change the ranking.
- [Elasticsearch to OpenSearch Migration Guide - Part 1: Why Migrate and Pre-Migration Planning](https://queryquotient.com/blog/elasticsearch-opensearch-migration-part-1): Migrate to OpenSearch when Apache 2.0 licensing, cost or vendor neutrality matter more than Elastic-only features. Plan with a compatibility check, a migration method and a rollback plan.
- [Unlocking the Power of Search Pipelines in OpenSearch](https://queryquotient.com/blog/unlocking-search-pipelines-opensearch): An OpenSearch search pipeline is a chain of processors that rewrites search requests and transforms results inside OpenSearch, so query logic lives in the cluster instead of your app.
- [Mastering Hybrid Search in OpenSearch: The Best of Both Worlds](https://queryquotient.com/blog/mastering-hybrid-search-opensearch-3-3): OpenSearch hybrid search runs a BM25 query and a vector query together, then a search pipeline normalizes and combines their scores (or fuses ranks with RRF) into one ranked list.
- [10 Elasticsearch Performance Tuning Tips](https://queryquotient.com/blog/elasticsearch-performance-tuning-2025): The biggest Elasticsearch performance wins come from right-sized shards (10-50GB), correct field types, filter context, bulk indexing, and leaving heap auto-sizing on.
- [Elasticsearch Query Performance Optimization: A Complete Guide](https://queryquotient.com/blog/elasticsearch-query-performance-optimization-guide-2025): Speed up Elasticsearch queries by moving non-scoring clauses to filter context, mapping exact-match fields as keyword, returning less data, sizing shards at 10-50GB and profiling slow queries.
- [Implementing Zero-Downtime Deployments for Elasticsearch](https://queryquotient.com/blog/zero-downtime-elasticsearch-deployments): Upgrade Elasticsearch without downtime with a rolling upgrade: one node at a time, data tiers first and master-eligible nodes last, waiting for green health between nodes.
- [Advanced Search Relevancy Techniques with Elasticsearch](https://queryquotient.com/blog/advanced-search-relevancy-techniques): Improve Elasticsearch relevance by boosting fields and signals with function_score, adding search-time synonyms, combining BM25 with vector search, and measuring every change.
- [Elasticsearch Security Best Practices for Enterprise](https://queryquotient.com/blog/elasticsearch-security-best-practices): Secure Elasticsearch by keeping the default security on, using TLS on both layers, least-privilege roles with field and document security, scoped API keys, and audit logging.

## Optional
- [Engagements and pricing](https://queryquotient.com/pricing): Advisory from $4,999/month, Build from $9,999/month, or a custom Partner engagement
- [About](https://queryquotient.com/about): Who we are and how we work; advised by Abhilash B, an information retrieval and AI expert
- [Elasticsearch vs OpenSearch](https://queryquotient.com/compare/elasticsearch-vs-opensearch): Features, licensing, performance and migration considerations
- [Elasticsearch vs Algolia](https://queryquotient.com/compare/elasticsearch-vs-algolia): Features, pricing, performance and use cases
- [Elasticsearch vs Solr](https://queryquotient.com/compare/elasticsearch-vs-solr): Features, performance and cloud options for Lucene-based search
- [Elasticsearch vs Qdrant](https://queryquotient.com/compare/elasticsearch-vs-qdrant): A search engine with vector support vs a dedicated vector database
- [Elasticsearch vs Vespa](https://queryquotient.com/compare/elasticsearch-vs-vespa): Search and ranking architecture, ML ranking and scaling compared
- [turbopuffer vs Pinecone](https://queryquotient.com/compare/turbopuffer-vs-pinecone): Two managed vector search services compared
- [Vector sizing calculator](https://queryquotient.com/resources/vector-sizing-calculator): Vector index memory for Elasticsearch, OpenSearch and Qdrant from documented formulas
- [Hybrid search playground](https://queryquotient.com/resources/hybrid-search-playground): Interactive RRF and score-normalization fusion with copyable Elasticsearch/OpenSearch queries
- [Agent reliability calculator](https://queryquotient.com/resources/agent-reliability-calculator): End-to-end success, cost and latency of multi-step AI agents
- [Resources](https://queryquotient.com/resources): All free tools: sizing, hybrid scoring, agent reliability, cost estimates, health check and checklist
