Skip to content

indexDefinition => index_definition#4

Open
metetik wants to merge 1 commit into
redislabs-training:mainfrom
metetik:patch-1
Open

indexDefinition => index_definition#4
metetik wants to merge 1 commit into
redislabs-training:mainfrom
metetik:patch-1

Conversation

@metetik

@metetik metetik commented May 21, 2025

Copy link
Copy Markdown

Summary

Fix incorrect import of indexDefinition in vector_search.py.

Description

The script vector_search.py was failing due to an incorrect import statement for indexDefinition. According to recent changes in the upstream redis/redis-py@0c242404, the correct import name is index_definition (snake_case), not indexDefinition (camelCase).
This PR updates the import accordingly to restore compatibility and fix runtime errors.

Changes

  • Update import statement in courseware/activities/section_3/vector_search.py:
  • Change from redis.commands.search.indexDefinition import indexDefinition to from redis.commands.search.indexDefinition import index_definition

Related References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant