openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Averages in Embedding_long_inputs.ipynb are weighted by vector length

Open JMVaughan opened this issue 1 year ago • 1 comments

The notebook Embedding_long_inputs.ipynb performs a weighted average of the embeddings by length of vector, however I believe the average should be weighted by length of chunk.

JMVaughan avatar Jan 31 '23 15:01 JMVaughan

Great catch. @filipeabperes, do you want to fix this?

ted-at-openai avatar Feb 06 '23 17:02 ted-at-openai

❗ on it

filipeabperes avatar Feb 06 '23 21:02 filipeabperes