Open monarchwadia opened 2 months ago
We support working with embedding but we have no docs for it.
We need docs for the Embed class, located inside Embed.ts :)
Embed.ts
e.embed("some string") will generate an embedding for the string.
e.embed("some string")
e.cosineSimilarity(e1, e2) will compare embeddings and return a float between 0.0 and 1.0
e.cosineSimilarity(e1, e2)
0.0
1.0
We only support OpenAI currently.
ragged/src/embed/Embed.ts
We support working with embedding but we have no docs for it.
We need docs for the Embed class, located inside
Embed.ts
:)e.embed("some string")
will generate an embedding for the string.e.cosineSimilarity(e1, e2)
will compare embeddings and return a float between0.0
and1.0
We only support OpenAI currently.
ragged/src/embed/Embed.ts