TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Semantic Search-as-You-Type

16 pointsby generallalmost 2 years ago

2 comments

akmodialmost 2 years ago
This a interesting article!<p>How do you build the prefixes when multiple words share the same prefix?<p>If my understanding is correct, the method is:<p>1. Find common search terms<p>2. For each search term (eg test, compute it&#x27;s vector [1.23, 4.56...] and it&#x27;s prefixes [t, te, tes...])<p>3. Store these in Qdrant as t-&gt;[1.23, 4.56...] , te-&gt;[1.23, 4.56...] , tes-&gt;[1.23, 4.56...] and so on. Here, each of the prefixes are used as point_ids<p>4. When a search query comes in, call &#x2F;recommend and pass in the partial query as the point id
andre-zalmost 2 years ago
Made possible with Rust and a few optimization tricks.<p>- Qdrant as a vector search engine<p>- ONNX inference in Rust<p>- Embeddings cache &amp; lookup<p>- Parallel &amp; Batch requests<p>- Hybrid search with full-text filtering + vector re-scoring<p>Code repo <a href="https:&#x2F;&#x2F;github.com&#x2F;qdrant&#x2F;page-search">https:&#x2F;&#x2F;github.com&#x2F;qdrant&#x2F;page-search</a>