Skip to content

retriever for a index with customised prefix #15943

Answered by dosubot bot
johnhu33 asked this question in Q&A
Discussion options

You must be logged in to vote

To correctly retrieve data when there are multiple prefixes in a Redis index built from a vector store, ensure that the chosen prefix in the index schema is consistent across your code. You can verify the prefix used by running the following command in the Redis CLI:

FT.INFO <name of your index>

Look under index_definition => prefixes to see the prefix your index was created with. Make sure that all records have the correct key prefix that matches the index schema.

Here is an example of defining a custom index schema with a specific prefix:

from redisvl.schema import IndexSchema

custom_schema = IndexSchema.from_dict(
    {
        "index": {
            "name": "paul_graham",
            

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@johnhu33
Comment options

@dosubot
Comment options

Answer selected by johnhu33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant