Skip to content

Commit

Permalink
chore: update advanced sample
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon authored Apr 3, 2024
1 parent 9925930 commit cb6c563
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/vector_store.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@
"custom_store.add_texts(all_texts, metadatas=metadatas, ids=ids)\n",
"\n",
"# use filter on search\n",
"query_vector = embedding.embed_query("I'd like a fruit.")\n",
"docs = custom_store.similarity_search_by_vector(query_vector, filter=\"len >= 6\")\n",
"\n",
"print(docs)"
Expand Down Expand Up @@ -602,4 +603,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}

0 comments on commit cb6c563

Please sign in to comment.