← All cases

case() // public sector · search

OpenSearch integration

Semantic search for a national AI portal: OpenSearch with typo, synonym and wrong-layout handling, query suggestions and a fine-tuned sentence-transformer model.

// brief

challenge

The portal holds a large archive of news articles, and users had to find the right one quickly and precisely. Plain full-text search cannot catch context, typos, synonyms or text typed on the wrong keyboard layout.

goal

Build a search engine over the client documents with semantic search, type-ahead suggestions, and optimisation based on the history of user queries.

approach

An OpenSearch-based engine with classic full-text queries extended by synonym, typo and layout handling, plus a fine-tuned neural model for semantic ranking.

// key results

0.24

semantic error, MCSE

−27%

vs best off-the-shelf

2 weeks

research phase

// what we did

Scope of work

01

Full-text search on OpenSearch

Users mistype, use synonyms and forget to switch keyboard layout, and plain search returns nothing.

  • Two-week research phase on search approaches; won the vendor contest with the best solution.
  • Composed and tuned classic OpenSearch queries with typo tolerance and synonym expansion.
  • Handled wrong-layout input: "vtldtlm" finds "медведь".
  • Built type-ahead suggestions and re-ranking based on the history of user queries.
02

Semantic search and admin panel

Off-the-shelf semantic models were inaccurate on the client content.

  • Evaluated candidate neural models for semantic similarity on client data.
  • Fine-tuned a sentence-transformers model with a denoising auto-encoder objective.
  • Plugged the model into OpenSearch so "дерево" also surfaces documents about "сад".
  • Shipped an admin panel for managing the search configuration.
metricBest off-the-shelfFine-tuned modelΔ
Mean cosine similarity error0.330.24−27%

// business value

  • Users find the right document fast; for a consumer-facing site this translates into conversion.
  • For staff, finding information in the archive is faster and simpler.
  • Reusable wherever search matters: reference portals, marketplaces, online shops.

// stack

  • Python
  • OpenSearch
  • sentence-transformers
  • Denoising auto-encoder
  • Transformers
  • NLP
  • Agile / Scrum

Got an X?

Start with the free discovery. In a week you'll know where your Z is.

Start discovery