meili-bors[bot] 049bd45849
Merge #4371
4371: Fixes embedder issues r=irevoire a=dureuill

# Pull Request

## Related issue
Fixes #4361
Fixes #4370 

## What does this PR do?
- Truncate tokens to 512 for Hugging Face embedders
- Move the tokio runtime to OpenAI so that we no longer have a thread with rayon -> tokio -> rayon
- Spawn a new reqwest client after each new runtime to avoid spurious runtime error 

## Manual tests

- embedding failing document from `@CaroFG` with hugging face
- embedding movies with hugging face
- embedding and searching movies with openai

Co-authored-by: Louis Dureuil <louis@meilisearch.com>
2024-01-29 11:23:57 +00:00
..
2023-11-13 13:38:36 +01:00
2023-11-28 14:26:31 +01:00
2023-06-14 13:30:52 +02:00
2024-01-29 11:23:57 +00:00
fmt
2023-03-30 23:37:26 +02:00
2023-12-20 17:16:45 +01:00
2023-11-23 14:11:38 +01:00
2023-11-13 13:38:36 +01:00
2023-12-14 16:08:41 +01:00
2023-11-13 13:36:39 +01:00