Skip to content

Feedback: Redis as a vector database quick start guide #1097

@zostaw

Description

@zostaw

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!

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdev

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions