Skip to content

Start/Update elasticsearch instance with 128 embedding dims #3329

Answered by julian-risch
heyt0pe asked this question in Questions
Discussion options

You must be logged in to vote

Hi @heyt0pe great to hear that you started trying out Haystack! The problem that you describe should be easy to fix, let me explain how.
The problem seems to be that your ElasticsearchDocumentStore already contains an index with 768 dimensions for embedding vectors. Now, if you want to store another document in that same DocumentStore but the document has only 128 dimensions in its embedding vector, you cannot store it in the same index. It's a mismatch. The number of dimensions is of the document's embedding vector depends on the model that is chosen to embed the documents. This model is set in the retriever node.
What you need to do whenever you change that model and therefore in some c…

Replies: 2 comments 1 reply

Comment options

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

Answer selected by heyt0pe
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment