You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pgml-cms/blog/semantic-search-in-postgres-in-15-minutes.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,11 +20,11 @@ June 15, 2024
20
20
21
21
##What is and is not Semantic Search
22
22
23
-
Semantic searchis a new form ofmachine learningpowered search that doesn’t rely on any form of keyword matching, but transforms text into embeddingsandperforms nearest neighborssearch.
23
+
Semantic searchusesmachine learningto understand the meaning of text by converting it into numerical vectors, allowing for more accurateandcontext-awaresearch results.
24
24
25
-
It is not a complete replacement for fulltext search. In many cases fulltext searchis capable of outperformingsemantic search. Specifically, if a user knows the exact phrasein a documentthey want to match, fulltext search is faster and guaranteed to return the correct result while semantic search is only likely to return the correct result. Fulltext search and semantic search can be combined to create powerful and robust search systems.
25
+
It is not a complete replacement for full-text search. In many cases, full-text searchcan outperformsemantic search. Specifically, if a user knows the exact phrase they want to match in a document, full-text search is faster and guaranteed to return the correct result, whereas semantic search is only likely to return the correct result. Full-text search and semantic search can be combined to create powerful and robust search systems.
26
26
27
-
Semantic search is not just for machine learning engineers. Theactualsystem behind semantic search is relatively easy to implement and thanks to new Postgres extensions like pgml and pgvector, is readily available to SQL developers. Just asit is expected formodern SQL developers to be familiar with and capable of implementing fulltext search,soon SQL developerswill be expected to implement semantic search.
27
+
Semantic search is not just for machine learning engineers. The system behind semantic search is relatively easy to implement, and thanks to new Postgres extensions like pgml and pgvector,itis readily available to SQL developers. Just as modern SQL developersare expectedto be familiar with and capable of implementing full-text search,theywillsoonbe expected to implement semantic search as well.