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.

Show HN: Semantic Search React Component

28 pointsby mihaichabout 1 year ago
If you've ever used CTRL+F on websites or documentation, you'll love this functionality.

2 comments

azornathogronabout 1 year ago
Offline in-browser semantic search with only a small model sounds like it has some great potential!<p>I&#x27;d love to see a more compelling example &#x2F; demo. The demo page you have is fairly short and the content being searched seems semantically very narrow (it&#x27;s all text about word embeddings!). As someone who hasn&#x27;t spent any time trying out similar systems or trying to build something like this, it&#x27;s difficult for me to come up with queries to actually judge how well this is working, given the small content in the demo page. So overall, that makes the actual demo not very compelling for me. I&#x27;m left uncertain how effective it might be for a more realistic use-case.<p>Basically if you had a better demo - larger and more varied example content, and a few example queries to show off what this can do - then I think the whole thing would be more immediately interesting (to me).
评论 #40039141 未加载
mihaichabout 1 year ago
I wasn&#x27;t expecting it, but I actually got some votes &lt;3, so here is a better description:<p>This is a React component for searching&#x2F;sorting by meaning (not by &quot;characters included in a string&quot;, like standard search).<p>It uses a small ML model that runs on client side (inside the component!). When I say small, I mean ~20MB. The model will be downloaded only once (first time) and afterwards imported from browser&#x27;s cache.<p>You can use this component to search and filter by meaning a dropdown list or an external list (like paragraphs of a webpage). You can search with sentences on sentences, not just with small words&#x2F;substrings.<p>Here is a demo: <a href="https:&#x2F;&#x2F;mihaiii.github.io&#x2F;semantic-autocomplete&#x2F;" rel="nofollow">https:&#x2F;&#x2F;mihaiii.github.io&#x2F;semantic-autocomplete&#x2F;</a><p>I believe this is super useful in the real world! :)<p>Let me know if you have any questions or feedback!<p>Thank you!