2 / 5
Apr 2024


For each document in this collection, I have fields as such where the number of steps is varying, so the length of the array of the steps field varies as well, as it’s shown in the picture, that I want to have embeddings for each of the step name separately. For the part of making the search index and then attaching it to the step_embeddings ,
{
“fields”: [
{
“numDimensions”: 1536,
“path”: “”,
“similarity”: “cosine”,
“type”: “vector”
}
]
}
I’m not sure what to write in the path of the search index

I’ve tried it but I’ve got this error in the status details:
Your index could not be built: Unexpected error: VectorValuesField “$type:knnVector/steps.step_embeddings” appears more than once in this document (only one value is allowed per field)