Skip to content

Commit 7fee427

Browse files
authored
chore: update PGVectorStore How to guide (#251)
This PR adds a clarification into the PGVectorStore How-To guide that the dense vector search is the primary search and the TSV based search is the secondary search.
1 parent 683efd7 commit 7fee427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pg_vectorstore_how_to.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@
692692
"source": [
693693
"# Hybrid Search with PGVectorStore\n",
694694
"\n",
695-
"A Hybrid Search combines multiple lookup strategies to provide more comprehensive and relevant search results. Specifically, it leverages both dense embedding vector search (for semantic similarity) and TSV (Text Search Vector) based keyword search (for lexical matching). This approach is particularly powerful for applications requiring efficient searching through customized text and metadata, especially when a specialized embedding model isn't feasible or necessary.\n",
695+
"A Hybrid Search combines multiple lookup strategies to provide more comprehensive and relevant search results. Specifically, it leverages both dense embedding vector search as the primary search (for semantic similarity) and TSV (Text Search Vector) based keyword search as the secondary search (for lexical matching). This approach is particularly powerful for applications requiring efficient searching through customized text and metadata, especially when a specialized embedding model isn't feasible or necessary.\n",
696696
"\n",
697697
"By integrating both semantic and lexical capabilities, hybrid search helps overcome the limitations of each individual method:\n",
698698
"* **Semantic Search**: Excellent for understanding the meaning of a query, even if the exact keywords aren't present. However, it can sometimes miss highly relevant documents that contain the precise keywords but have a slightly different semantic context.\n",

0 commit comments

Comments
 (0)