You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code below is faking an embedding service, and everything works fine except that the final embedding is created as a 2-dimensional embedding instead of 1536. (text-embedding-ada-002 have 1536 dimensions)
The reason behind this is that the CreateResponseFixture only has a 2-dimensional embedding, and the Fakeable@buildAttributes method uses an approach that only replaces what is given in the Fixture.
So even if you add an array of 1536, it still generates a 2-dimensional array.
The code below is faking an embedding service, and everything works fine except that the final embedding is created as a 2-dimensional embedding instead of 1536. (
text-embedding-ada-002
have 1536 dimensions)The reason behind this is that the CreateResponseFixture only has a 2-dimensional embedding, and the Fakeable@buildAttributes method uses an approach that only replaces what is given in the Fixture.
So even if you add an array of 1536, it still generates a 2-dimensional array.
Outputs:
The text was updated successfully, but these errors were encountered: