Skip to content
Discussion options

You must be logged in to vote

🤖

Hey @gzguevara, hope you're doing well! Good to see you again. We're diving into another issue, let's get started.

Yes, the behavior you're observing is expected. LlamaIndex does apply post-processing to the embeddings from HuggingFaceEmbedding. The raw numbers you see do not match with what is seen in default__vector_store.json due to the following post-processing steps:

  1. Pooling: Depending on the pooling attribute of the HuggingFaceEmbedding class, the embeddings are pooled. If pooling is set to Pooling.CLS, the embeddings are pooled using the cls_pooling method of the Pooling class. If pooling is not set to Pooling.CLS, the _mean_pooling method is used to pool the embeddings. This m…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gzguevara
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