An error occurred when calling Azure Cognitive Search: Azure Search: Please assign a proper column/field for vector search. It should be of type Collection(Edm.Single)

Qi Qi Toh 25 Reputation points
2024-10-23T04:35:47.3066667+00:00

Hi everyone,

I’m currently working on a project where I'm using Azure OpenAI. However, I’ve encountered the following error:

Error Message: An error occurred when calling Azure Cognitive Search: Azure Search: Please assign a proper column/field for vector search. It should be of type Collection(Edm.Single)

Any guidance or insights would be greatly appreciated. Thanks in advance!

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
1,354 questions
0 comments No comments
{count} vote

Accepted answer
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2024-10-30T05:33:18.3333333+00:00

    Qi Qi Toh, Firstly, apologies for the delayed response.

    To better assist you on this, Did you leverage Search Explorer? Do both Azure OpenAI and AI allow public network access? Are you import and vectorize wizard as per this doc?
    Could you please provide more details about your setup?

    Based on my understanding, I'm providing some pointers to help isolate the issue.
    You may want to know that the "fieldMapping" property is necessary for vector embeddings.

    Is the requirement arising because you are using two vector fields? As outlined in the doc, this property is typically only required for Azure Cosmos DB/MongoDB.

    Below is the property format you may try to get the request working:

    "fieldsMapping": {
                      "vectorFields": [
                          "titleVector",
                          "contentVector"
                      ]
                  },
    
    
    

    Also, ensure that sample definition is not null (review the field).

                   "azureOpenAIParameters": null

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.