<p>Postgres as a search engine<br><a href="https://anyblockers.com/posts/postgres-as-a-search-engine" rel="nofollow" class="ellipsis" title="anyblockers.com/posts/postgres-as-a-search-engine"><span class="invisible">https://</span><span class="ellipsis">anyblockers.com/posts/postgres</span><span class="invisible">-as-a-search-engine</span></a><br><a href="https://news.ycombinator.com/item?id=41343814" rel="nofollow" class="ellipsis" title="news.ycombinator.com/item?id=41343814"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">1343814</span></a></p><p>Build a retrieval system with semantic, full-text, & fuzzy search in Postgres to be used as a backbone in RAG pipelines.</p><p>We’ll combine 3 techniques:</p><p>* full-text search with tsvector<br>* semantic search with pgvector<br>* fuzzy matching with pg_trgm</p><p>* bonus: BM25</p><p><a href="https://en.wikipedia.org/wiki/Okapi_BM25" rel="nofollow" class="ellipsis" title="en.wikipedia.org/wiki/Okapi_BM25"><span class="invisible">https://</span><span class="ellipsis">en.wikipedia.org/wiki/Okapi_BM</span><span class="invisible">25</span></a><br><a href="https://blog.paradedb.com/pages/elasticsearch_vs_postgres" rel="nofollow" class="ellipsis" title="blog.paradedb.com/pages/elasticsearch_vs_postgres"><span class="invisible">https://</span><span class="ellipsis">blog.paradedb.com/pages/elasti</span><span class="invisible">csearch_vs_postgres</span></a><br><a href="https://news.ycombinator.com/item?id=41173288" rel="nofollow" class="ellipsis" title="news.ycombinator.com/item?id=41173288"><span class="invisible">https://</span><span class="ellipsis">news.ycombinator.com/item?id=4</span><span class="invisible">1173288</span></a></p><p><a href="/tags/rdbms/" rel="tag">#RDBMS</a> <a href="/tags/postgres/" rel="tag">#postgres</a> <a href="/tags/postgresql/" rel="tag">#PostgreSQL</a> <a href="/tags/databases/" rel="tag">#databases</a> <a href="/tags/search/" rel="tag">#search</a> <a href="/tags/searchengine/" rel="tag">#SearchEngine</a> <a href="/tags/llm/" rel="tag">#LLM</a> <a href="/tags/rag/" rel="tag">#RAG</a> <a href="/tags/bm25/" rel="tag">#BM25</a></p>
Edited 1y ago