TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Semantic Search React Component

28 点作者 mihaich大约 1 年前
If you've ever used CTRL+F on websites or documentation, you'll love this functionality.

2 条评论

azornathogron大约 1 年前
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 未加载
mihaich大约 1 年前
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!