monarchwadia / ragged

33 stars 4 forks source link

Documentation for Embed #19

Open monarchwadia opened 2 months ago

monarchwadia commented 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 :)

e.embed("some string") will generate an embedding for the string.

e.cosineSimilarity(e1, e2) will compare embeddings and return a float between 0.0 and 1.0

We only support OpenAI currently.

ragged/src/embed/Embed.ts