-
Notifications
You must be signed in to change notification settings - Fork 246
Closed
redis/redis-py
#3490Labels
Description
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!
dwdougherty