Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Open AI Resource URi to configure an Integrated vectorizer in a search Index of Azure AI Search #162

Open
danielperezefremova-tomtom opened this issue Feb 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@danielperezefremova-tomtom

Hi!

Background

I am working on integrating Open AI Embeddings computation with Azure AI Search Index.

I am following the tutorial from Microsoft site: Configure a vectorizer in a search index

Then, I realized that the URi is slightly different compared to the endpoint we use to query chatgpt:

When I try to declare the index

{
  "name": "osm_map_features",
  "defaultScoringProfile": null,
  "fields": [
    {
      "name": "id",
      "type": "Edm.String",
      "key": true
    },
    {
      "name": "key",
      "type": "Edm.String",
      "searchable": true,
      "filterable": true,
      "retrievable": true,
      "sortable": true,
      "facetable": true
    },
    {
      "name": "value",
      "type": "Edm.String",
      "searchable": true,
      "filterable": true,
      "retrievable": true,
      "sortable": true,
      "facetable": true
    },
    {
      "name": "description",
      "type": "Edm.String",
      "searchable": true,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false
    },
    {
      "name": "descriptionVector",
      "type": "Collection(Edm.Single)",
      "searchable": true,
      "filterable": false,
      "retrievable": true,
      "sortable": false,
      "facetable": false,
      "key": false,
      "indexAnalyzer": null,
      "searchAnalyzer": null,
      "analyzer": null,
      "normalizer": null,
      "dimensions": 1536,
      "vectorSearchProfile": "openai-vectorSearch",
      "synonymMaps": []
    }
    ],
  "vectorSearch": {
     "profiles": [
        {
          "name": "openai-vectorSearch",
          "algorithm": "vectorSearch-algorithm",
          "vectorizer": "openai-embeddings"
        }
     ],
     "algorithms": [
       {
          "name": "vectorSearch-algorithm",
          "kind": "hnsw",
          "hnswParameters": {
            "m": 4,
            "metric": "cosine",
            "efConstruction": 400,
            "efSearch": 500
           }
       }
      ],
      "vectorizers": [
        {
          "name": "openai-embeddings",
          "kind": "azureOpenAI",
          "azureOpenAIParameters": {
            "resourceUri": "https://api.chatgpt.tomtom-global.com/",
            "deploymentId": "dep-embed-ada",
            "apiKey": "XXXX"
          }
        }
      ]
   }
}

The Azure AI Search service throws:

Error: The request is invalid. Details: definition : Error in Vectorizer 'openai-embeddings' : Invalid resourceUri. Provide a valid resourceUri for the Azure Open AI service.

QUESTION

I suppose the URi is not correct. As Chatty is using this service, do you know the appropiate URi to set up the AI Search service?

@RijnBuve-TomTom RijnBuve-TomTom added the enhancement New feature or request label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants