This message was deleted.
# community-help
s
This message was deleted.
k
Yes, generally the e5 family is close to state of the art since they are more recent.
b
Okay, what's the structure in order to use it in the collection? Do I have to add "query:"?
"model_config": { "model_name": "ts/multilingual-e5-base", "indexing_prefix": "query:", "query_prefix": "query:" }
or "passage:" ?
k
Yes the same format as all other e5 models that follow that convention.
b
Should I use passage or query?
k
In typesense this is already handled for you. You don't have to prefix anything.
b
Ok, so the filed structure will be: { "name": "embedding", "type": "float[]", "embed": { "from": ["product_name"], "model_config": { "model_name": "ts/multilingual-e5-base", "indexing_prefix": "passage:", "query_prefix": "query:" } } } Am i right?
k
You can leave out those prefix fields. They should default automatically.
b
So only the model_name should I add?
k
Yes
👍 1
b
I'm trying to create the following collection but I get error: { "name": "products", "fields": [ { "name": "brand", "type": "string" }, { "name": "embedding", "type": "float[]", "embed": { "from": [ "brand" ], "model_config": { "model_name": "ts/multilingual-e5-base" } } } ] }
Copy code
{
  "message": "Bad request."
}
In localhost, macOS with docker compose
In logs I get this -> E20230907 133324.950084 195 batched_indexer.cpp:229] Raw error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
j
Could you try replicating it with curl? If you can replicate it, could you share the full curl command?
b
Problem solved. It was an issue with the model
k
We actually fixed this in recent 0.25.1 RC build.
👍 1