li2109 / langtorch

🔥 Building composable LLM applications & workflow with Java.
https://knowly-ai.gitbook.io/langtorch
Apache License 2.0
289 stars 45 forks source link

Add embedding support to cohere #141

Open steveny2k opened 1 year ago

steveny2k commented 1 year ago

can add embedding support for cohere, similar to openai

li2109 commented 1 year ago

That would be great!

Currently, there's only a generate endpoint being implemented in CohereAIApi. ai/knowly/langtorch/llm/cohere/CohereAIApi.java

You probably need to add an endpoint there and corresponding sync and async methods in CohereAIService. It would be great if you also add an embedding processor

steveny2k commented 1 year ago

sure. i'm working on it.

steveny2k commented 7 months ago

have been quite busy at work, thus didn't have time on this feature.

will see if i'll find time in the future.