Semantic search adds a meaning layer next to your current search, rather than replacing it outright. Your products, articles or records are converted into embeddings, numerical representations of meaning, and stored in a vector index. When a user types a query, it is converted the same way and matched against the index, so "shoes for running in the rain" can find a product described as "waterproof trail runner" even though no words match. The concept is explained further in our glossary entry on semantic search.
Your application keeps calling one search endpoint. Behind it, our service runs the query against both the meaning index and your existing keyword engine, merges the results, applies your business rules and returns them in the format your front end already expects. That is what makes the change low risk: the user interface and the rest of the platform do not need to change.
Hybrid retrieval, reranking and business rules
Pure vector search is not enough for most real catalogs. Users also search for exact model numbers, SKUs, brand names and sizes, where keyword matching is better. So we combine both:
- Query understanding: detect exact identifiers, filters such as size, color or brand mentioned in the query, and the language or script used.
- Hybrid retrieval: run keyword and vector search together and combine the candidate lists.
- Reranking: a reranker model scores the top candidates against the full query for a more precise order.
- Business rules: stock availability, region, permissions and any merchandising rules you set, such as hiding discontinued items.
Each stage can be measured and tuned separately, which makes it clear whether a poor result came from retrieval, ranking or a rule.
Choosing a search stack
| Option | When it fits | Trade-off |
|---|
| Add vectors to your existing engine | You already run Elasticsearch, OpenSearch or a database with vector support, such as PostgreSQL with pgvector | Fewest new systems; tuning may be more limited |
| Dedicated vector database | Large indexes, high query volumes or advanced filtering needs | One more system to run and keep in sync |
| Managed search service with AI features | Small teams who prefer a hosted product | Less control over ranking; data held by the provider |
We usually prefer extending what you already run, adding a new system only when tests show the need. Background on the storage side is in our glossary entry on the vector database.
Indian languages and how people actually type
Indian users search in English, Hindi in Devanagari, Hindi in Roman script and mixtures, often with spelling variations and local product names. A search for "kurti cotton white" and one for "safed suti kurti" should find the same items. We test embedding models on your real query logs in each language, add synonym and transliteration handling for common terms and build a list of local names for products and categories with your merchandising team. Spelling tolerance is tuned so that misspellings match without making exact searches noisy.
Answers alongside results
For help centers and internal documentation, a short answer above the results can save users from opening several articles. The answer is generated only from the top retrieved passages and links to its sources, so users can check it. If the retrieved passages do not contain the answer, no answer is shown and the normal results remain. For product search, we use generation more sparingly: comparison summaries or filter suggestions can help, but generated text must never invent product attributes, so it is grounded strictly in catalog data.
Rolling out without disrupting current search
We release semantic search in steps. First, the new pipeline runs in shadow mode: every real query is sent to both the old and new search, and the results are logged side by side without users seeing the new ones. Reviewers compare them on a sample, which catches surprises before launch. Next, the new search serves a small share of traffic behind a feature flag, with the old engine as an instant fallback if latency or errors rise. Search latency gets its own budget, because a slower search box is noticed immediately, so embeddings for queries are cached where possible and the reranker only scores a limited number of top candidates.
Measuring search quality
We build a judged query set from your logs: common queries, long-tail queries and known failures, each with the results a domain expert considers correct. Offline, we measure how often the right results appear near the top. Online, we track zero-result rate, click-through on the first results, query reformulations, which signal that the first attempt failed, and conversions or ticket deflection where they can be attributed. Changes to ranking go through an A/B test before full rollout. Zero-result and low-click queries are reviewed regularly, because they show missing content or missing synonyms. Related pages: e-commerce, retail and our knowledge management agents for internal question answering.