meili-bors[bot] c63c25a9a2
Merge #5355
5355: Support fetching the pooling method from the model configuration r=Kerollmops a=dureuill

# Pull Request

## Related issue
Fixes #5354 

## What does this PR do?
- Fetches the pooling configuration from the model repository
- Use a pooling method that depends on the pooling configuration of that model.
- Allow overriding the pooling method with a new huggingFace embedder parameter `pooling`
  - for backward-compatibility with Meilisearch v1.13
  - for compatibility with embedders that exhibit the same behavior as Meilisearch v1.13
- Handle the default value of that new parameter
   - for compatibility, when importing a db/a dump, it should be set to `forceMean`
   - when (re)set from the settings for an embedder, it should be set to `useModel`


Co-authored-by: Louis Dureuil <louis@meilisearch.com>
2025-02-27 14:55:13 +00:00
..
2025-02-27 14:55:13 +00:00
2025-02-05 15:03:32 +01:00
2025-01-08 15:58:03 +01:00

dump
├── indexes
│   ├── cattos
│   │   ├── documents.jsonl
│   │   └── settings.json
│   └── doggos
│       ├── documents.jsonl
│       └── settings.json
├── instance-uid.uuid
├── keys.jsonl
├── metadata.json
├── tasks
│   ├── update_files
│   │   └── [task_id].jsonl
│   └── queue.jsonl
└── batches
    └── queue.jsonl