mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 20:37:15 +02:00
OpenAI sync
This commit is contained in:
parent
bc58e8a310
commit
c3d02f092d
6 changed files with 274 additions and 321 deletions
|
@ -131,7 +131,7 @@ impl Embedder {
|
|||
|
||||
let embeddings = this
|
||||
.embed(vec!["test".into()])
|
||||
.map_err(NewEmbedderError::hf_could_not_determine_dimension)?;
|
||||
.map_err(NewEmbedderError::could_not_determine_dimension)?;
|
||||
this.dimensions = embeddings.first().unwrap().dimension();
|
||||
|
||||
Ok(this)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue