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: Semantra – a multi-tool for semantic search

4 pointsby freedmandabout 2 years ago

1 comment

freedmandabout 2 years ago
Hi everyone, I built Semantra over the past four weeks to showcase the power of semantic search and share the experience. I strived to make a general purpose tool so that others could easily spin up their own semantic search engines over their own content.<p>Semantra is a Python CLI that analyzes specified documents (text&#x2F;pdf files), embeds them in chunks of text, and launches a local web server to interactively query them by semantic meaning. It is highly configurable and offers different embedding models, from Hugging Face transformers model (e.g. ones from SentenceTransformers) to OpenAI&#x27;s embedding model (text-ada-embeddings-002).<p>The web app allows iteratively refining queries via tagging and adding&#x2F;subtracting additional queries, allowing for very expressive and refined search experiences. It also presents &quot;explanations&quot; for search results by highlighting sub-regions within the results that most closely match the query.<p>Take it for a spin! `pipx install semantra`<p>---<p>Detailed instructions, tutorial, guide, and concept documentation at the repo: <a href="https:&#x2F;&#x2F;github.com&#x2F;freedmand&#x2F;semantra">https:&#x2F;&#x2F;github.com&#x2F;freedmand&#x2F;semantra</a><p>Twitter thread with demo videos&#x2F;content: <a href="https:&#x2F;&#x2F;twitter.com&#x2F;dylfreed&#x2F;status&#x2F;1650268405881085952" rel="nofollow">https:&#x2F;&#x2F;twitter.com&#x2F;dylfreed&#x2F;status&#x2F;1650268405881085952</a>