Skip to content

Vector Dimension Issue While Querying #8142

Closed Answered by logan-markewich
hodgesz asked this question in Q&A
Discussion options

You must be logged in to vote

@hodgesz you need to pass in the service context when loading the index (with the service context setup with the same embedding model you used to create the index)

index = VectorStoreIndex.from_vector_store(vector_store=vector_store, service_context=service_context)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hodgesz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by logan-markewich
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants