Find answers from the community

Updated 4 months ago

Did you ever get a response I m having a

At a glance
Did you ever get a response? I'm having a similar issue, but with just persisting to disk with a VectorStoreIndex with a custom embedding model. Creating the index works with 1024 embedding dim, as does querying, however when loading from a StorageContext, it errors when querying. I don't see where the embed_dim could be set. I see DEFAULT_EMBEDDING_DIM in constants.py
L
j
4 comments
When loading from the storage context, are you also passing in the service context object again?

You shouldn't have to set an embedding dim anywhere, as long as the same embedding model continues to be used
index = load_index_from_storage(storage_context, service_context=service_context)
Awesome makes sense and works! Sorry I missed that.
Easy to miss! Glad it works πŸ’ͺ
Add a reply
Sign up and join the conversation on Discord