Open Elizabeth819 opened 3 months ago
Hi @Elizabeth819, it looks like you provided the field definition for "actionsVector", but not for "summaryVector". Or do you have have a field mapping somewhere?? (assuming indexer-based-indexing)....
Hi @Elizabeth819, it looks like you provided the field definition for "actionsVector", but not for "summaryVector". Or do you have have a field mapping somewhere?? (assuming indexer-based-indexing)....
+1 - seeing the definition of "summaryVector" would help
code: "name": "actionsVector", "type": "Collection(Edm.Single)", "searchable": True,
"retrievable": True, "dimensions": 3072, "vectorSearchProfile": "vector-profile",
service_name = "cobra-video-search-eliz" admin_key = "" api_version = "2024-07-01"
index_name = "complexscene_index"
Create a SearchIndexClient to manage the index
index_client = SearchIndexClient( endpoint=f"https://{service_name}.search.windows.net", credential=AzureKeyCredential(admin_key), api_version=api_version, )
Add IDs to documents
for i, doc in enumerate(data):
Upload documents to the index
try: result = search_client.upload_documents(documents=documents)
error: Failed to create or update index: (InvalidRequestParameter) The request is invalid. Details: definition : The vector field 'summaryVector' must have the property 'dimensions' set. Code: InvalidRequestParameter Message: The request is invalid. Details: definition : The vector field 'summaryVector' must have the property 'dimensions' set. Exception Details: (InvalidField) The vector field 'summaryVector' must have the property 'dimensions' set. Parameters: definition Code: InvalidField Message: The vector field 'summaryVector' must have the property 'dimensions' set. Parameters: definition