Hi, I had configured a custom vector embedding pipeline to iterate through documents, extract text, and generate vectors based off of the extracted text. Up until recently everything was working absolutely fine, then Microsoft deprecated my indexes and I had to recreate some new ones using the new search service API in order to continue using vector search.
My main issue is that after following the guidelines for migration, and creating the new indexes, I am unable to make a request using these indexes with "queryType" set to vector. When doing so I get the below response:
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)
I double checked the index definition (included below) and it all looks right, so I'm thinking its possible that I'm making my request improperly, so I'm also including the request body data source properties. Any assistance would be greatly appreciated.
"dataSources": [
{
"type": "AzureCognitiveSearch",
"parameters": {
"endpoint": "https://my-search-service.search.windows.net",
"key": "my-search-service-key",
"embeddingEndpoint": "https://my-openai-service.openai.azure.com/openai/deployments/text-embedding-ada-deployment-name/embeddings?api-version=2023-06-01-preview",
"embeddingKey": "my-embedding-key",
"indexName": "vector-index-name",
"queryType": "vector",
"inScope": "false",
}
}
{
"@odata.context": "https://my-search-service.search.windows.net/$metadata#indexes/$entity",
"@odata.etag": "\"XXXXXXXXX\"",
"name": "vector-index-name",
"defaultScoringProfile": null,
"fields": [
{
"name": "id",
"type": "Edm.String",
"searchable": false,
"filterable": true,
"retrievable": true,
"sortable": true,
"facetable": true,
"key": true,
"indexAnalyzer": null,
"searchAnalyzer": null,
"analyzer": null,
"normalizer": null,
"dimensions": null,
"vectorSearchProfile": null,
"synonymMaps": []
},
{
"name": "title",
"type": "Edm.String",
"searchable": true,
"filterable": true,
"retrievable": true,
"sortable": true,
"facetable": false,
"key": false,
"indexAnalyzer": null,
"searchAnalyzer": null,
"analyzer": null,
"normalizer": null,
"dimensions": null,
"vectorSearchProfile": null,
"synonymMaps": []
},
{
"name": "content",
"type": "Edm.String",
"searchable": true,
"filterable": true,
"retrievable": true,
"sortable": false,
"facetable": false,
"key": false,
"indexAnalyzer": null,
"searchAnalyzer": null,
"analyzer": null,
"normalizer": null,
"dimensions": null,
"vectorSearchProfile": null,
"synonymMaps": []
},
{
"name": "titleVector",
"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": "vector-config",
"synonymMaps": []
},
{
"name": "contentVector",
"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": "vector-config",
"synonymMaps": []
}
],
"scoringProfiles": [],
"corsOptions": null,
"suggesters": [],
"analyzers": [],
"normalizers": [],
"tokenizers": [],
"tokenFilters": [],
"charFilters": [],
"encryptionKey": null,
"similarity": {
"@odata.type": "#Microsoft.Azure.Search.BM25Similarity",
"k1": null,
"b": null
},
"semantic": null,
"vectorSearch": {
"algorithms": [
{
"name": "hnsw-vector-config",
"kind": "hnsw",
"hnswParameters": {
"metric": "cosine",
"m": 4,
"efConstruction": 400,
"efSearch": 500
},
"exhaustiveKnnParameters": null
}
],
"profiles": [
{
"name": "vector-config",
"algorithm": "hnsw-vector-config",
"vectorizer": null
}
],
"vectorizers": []
}
}