-
Notifications
You must be signed in to change notification settings - Fork 15.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neo4j: Fixed similarity docs #23913
Neo4j: Fixed similarity docs #23913
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
@@ -1077,13 +1092,19 @@ def similarity_search_by_vector( | |||
embedding: List[float], | |||
k: int = 4, | |||
filter: Optional[Dict[str, Any]] = None, | |||
params: Dict[str, Any] = {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduces a bug since param is exposed in the function signature, but isn't propagated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for your feedback. I forgot to use the params
attribute.
Already updated the PR.
This change was basically to keep all the methods with similar signatures, since they all use similarity_search_with_score_by_vector
method that receives the params
argument.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@RafaelXokito thanks for the PR! When you resolve the issue, feel free to ask me to re-review the code
@eyurtsev please review this PR. |
Description: There was missing some documentation regarding the
filter
andparams
attributes in similarity search methods.