-
Notifications
You must be signed in to change notification settings - Fork 129
Update Neo4jVectorGraphStore params BaseModel #350
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
Conversation
Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
| uri = cast(str, config.uri) | ||
| username = cast(str, config.username) | ||
| password = cast(SecretStr, config.password).get_secret_value() | ||
| uri = cast(str, params.uri) | ||
| username = cast(str, params.username) | ||
| password = cast(SecretStr, params.password).get_secret_value() |
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.
The idea would be more to go towards to only accepting AsyncDriver in the Params and the user is responsible always for building.
Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
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.
Built & tested with a few posts and queries to profile memory.
* Update Neo4jVectorGraphStore params BaseModel Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Take driver as dependency Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Emphasize required fields Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Update docstring Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> --------- Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
* Update Neo4jVectorGraphStore params BaseModel Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Take driver as dependency Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Emphasize required fields Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> * Update docstring Signed-off-by: Edwin Yu <edwinyyyu@gmail.com> --------- Signed-off-by: Edwin Yu <edwinyyyu@gmail.com>
Purpose of the change
Refactor parameters for Neo4jVectorGraphStore to match decided standard.
Description
Instead of allowing arbitrary types, use InstanceOf. This should be safer.
Rename to match discussed (in-person) format.
Type of change
Breaking for consumers using Neo4jVectorGraphStoreConfig directly.
How Has This Been Tested?
Modified integration tests pass.
Checklist
[Please delete options that are not relevant.]
Maintainer Checklist