We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Page https://redis.io/docs/latest/develop/get-started/vector-database
Hello, I'm not 100% sure if I'm missing something, but I think the doc has a mistake in python code snippet. It states:
from redis.commands.search.index_definition import IndexDefinition, IndexType
while index_definition doesn't exist, it throws:
ModuleNotFoundError: No module named 'redis.commands.search.index_definition'
I believe the proper command should be:
from redis.commands.search.indexDefinition import IndexDefinition, IndexType
That's what I've found in other examples and that's what worked for me.
I'm running it on Raspberry Pi, my python version is 3.11.2 and redis version 5.2.1
Cheers!
The text was updated successfully, but these errors were encountered:
Thanks, @zostaw. I'll take a look.
Sorry, something went wrong.
Hi @zostaw. Your assessment was correct. I've issued a PR to the redis-py repo that will correct this issue.
Thank you so much!
Hi @zostaw. Closing the loop: my redis-py PR was merged, so the change should show up on redis.io/docs in the next day or two.
@dwdougherty we should pin the version of redis-py to the latest stable instead:
'dev_branch': '5.3'
PS: The name of the attribute is misleading :)
dwdougherty
Successfully merging a pull request may close this issue.
Page https://redis.io/docs/latest/develop/get-started/vector-database
Hello, I'm not 100% sure if I'm missing something, but I think the doc has a mistake in python code snippet. It states:
while index_definition doesn't exist, it throws:
I believe the proper command should be:
That's what I've found in other examples and that's what worked for me.
I'm running it on Raspberry Pi, my python version is 3.11.2 and redis version 5.2.1
Cheers!
The text was updated successfully, but these errors were encountered: