Chat playground in Azure AI studio throws an error when connecting our own data

Tariq Abuzaghleh 0 Reputation points
2024-05-01T20:15:53.5766667+00:00

When connecting the chat playground in Azure AI studio to our own data which is an Azure AI search, it throws an error:

steps:

  • Add You data option
  • select Azure AI search as data source
  • select you AI search and index
  • Select to add vector search and select embedding model
  • use custom field mappings and assign fields to them.
  • the vector field in the mapping is required and the only options available to select from is the complex fields from my index.
  • complete
  • start chatting and an error will say in the chat: User's image

how to resolve this and add accurate vector search as the option to vector field is the complex fields?

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,353 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,628 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-05-03T07:00:33.9866667+00:00

    @Tariq Abuzaghleh Thanks for asking question!

    Vector search is implemented at the field level. This definition puts the focus on vector fields. Vector fields must be of type Collection(Edm.Single) used to store single-precision floating point values. Vector fields have a "dimensions" property that holds the number of output dimensions supported by the machine learning model used to generate embeddings.

    For example, if you're using text-embedding-ada-002, the maximum number of output dimensions is 1536 per this document. The "algorithmConfiguration" is set to the name of the "vectorSearch" configuration in your index. You can define multiple in the index, and then specify one per field.

    Check detail steps here- https://learn.microsoft.com/en-us/azure/search/vector-search-how-to-create-index?source=recommendations&tabs=config-2023-11-01%2Crest-2023-11-01%2Cpush%2Cportal-check-index#add-a-vector-field-to-the-fields-collection

    "fieldMapping" property is required for vector embeddings, at least with how my vectors are configured.

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

    Suggest you refer this detailed doc link would be helpful- https://learn.microsoft.com/en-us/rest/api/searchservice/preview-api/create-or-update-index

    Please let us know if further query or issue remains.

    0 comments No comments

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.