meilisearch / meilisearch-rails

Meilisearch integration for Ruby on Rails
https://www.meilisearch.com
MIT License
296 stars 48 forks source link

Setting embedders directly inside model index configuration #316

Open doutatsu opened 7 months ago

doutatsu commented 7 months ago

Description With the v1.6 out, it would be nice to be able to define embedded configuration inside the model itself, instead of directly interacting with the

Basic example

  meilisearch do
    attribute :id, :title, :alt_titles, :content_rating, :content_type, :description

    embedders do
        text: {
            source: "huggingFace",
            model: "BAAI/bge-base-en-v1.5",
            documentTemplate: description,
        }
    end
  end
doutatsu commented 3 months ago

Any updates on this?

curquiza commented 1 month ago

Hello everyone watching this issue

Any PR is welcome, we will review it ❤️