Phillip Young
09/23/2025, 8:01 PM"embed": {
"from": [
"product_name",
"categories"
],
The docs state that it will concatenate the product_name and categories field, so for example, if the name was "awesome name" and the category was "awesome category", it would create an embedding based on "awesome name awesome category".
I'm wondering if it's possible to create an embedding on something like: "name: awesome name, category: awesome category" so that there is more information given.
"awesome name awesome category" vs "name: awesome name, category: awesome category"
From the docs, there is an "indexing_prefix" that can be used, but that is only attached to the beginning of the text and can't be done per-field.
Is there a way to add prefixes per-field (and maybe field dependent) for auto-embedding multiple fields?
Edit: One work-around that I'm thinking of is creating an extra string field that is just the whole text I want to embed, and then matching the image-search docs, doing "store": false.
the textToEmbed would then be "name: awesome name, category: awesome category"
{
"name": "textToEmbed",
"type": "string",
"store": false
},
{
"name": "embedding",
"type": "float[]",
"embed": {
"from": [
"textToEmbed"
],
"model_config": {
"model_name": "something"
}
}
}
Thanks!Alan Martini
09/23/2025, 8:45 PMcategory: category: awesome category