Find answers from the community

s
F
Y
a
P
Updated last year

this is useful thank you but it doesn t

this is useful, thank you, but it doesn't quite solve what I'm trying to do. I have a Vector Index saved in Redis, but when I'm trying to figure out how to load that vector index in another function call - when i connect to redis in the storage context, its saying there are no indexes, yet I can see them in redis
V
H
L
8 comments
this is helpful and was the basis for what I'm building, but this doesn't cover how to retrieve previously created indices from redis.

Plain Text
    vector_store = RedisVectorStore(
        index_name=team_id,
        index_prefix=team_id,
        redis_url="redis://localhost:6379",
        overwrite=True
    )

    storage_context = StorageContext.from_defaults(
        vector_store=vector_store,
    )

    i = load_index_from_storage(storage_context=storage_context)


The following code on existing indices returns No index in storage context, check if you specified the right persist_dir
No need to use load_index_from_storage here
index = GPTVectorStoreIndex([], storage_context=storage_context) should work no?
i've got it working - the problem was that I wasn't using an index store afaik - does that make sense to you?
complete beginner with this!
uhhh kinda makes sense haha but glad it works for you! πŸ‘
brain melt πŸ˜„
Add a reply
Sign up and join the conversation on Discord