AliOsm / chromable

Ruby on Rails integration for ChromaDB
https://github.com/AliOsm/chromable
MIT License
5 stars 0 forks source link

Default implementation for known embedders #1

Open IbraheemTuffaha opened 8 months ago

IbraheemTuffaha commented 8 months ago

It would be convenient if you can choose some of the well known embedders through a configuration instead of implementing them in embed function manually. If the desired embedder is not implemented, then you should implement it yourself.

bendangelo commented 8 months ago

This is tough because all embedders are in python. I don't think this would be possible. The best solution is to run your own infinity embedding service (https://github.com/michaelfeil/infinity) and connect to it using the openai gem.

AliOsm commented 8 months ago

Actually the proposed feature is to support API based embedding generators like OpenAI and Cohere. Not self-hosted embedding models. What do you think?

bendangelo commented 8 months ago

That's a good idea. It can use the standard interface of the gem.