retkowsky / Azure-OpenAI-demos

Azure OpenAI (demos, documentation, accelerators).
https://azure.microsoft.com/en-us/products/ai-services/openai-service
557 stars 197 forks source link

Vector Field vectorSearchConfiguration property not set / InvalidField issue #5

Open cagrimunyas opened 11 months ago

cagrimunyas commented 11 months ago

In the Azure OpenAI Cognitive Search Vector Search sample, creating a field for vectors is simply adding the following field:

  SearchField(
      name="contentVector",
      type=SearchFieldDataType.Collection(SearchFieldDataType.Single),
      searchable=True,
      vector_search_dimensions=1536,
      vector_search_configuration="my-vector-config",
  )

However, in this syntax the InvalidField error is raised The vector field 'contentVector' must have the property 'vectorSearchConfiguration' set. Parameters: definition

Also tried changing vector_search_configuration name to vectorSearchConfiguration. The same error is still raised.

Cognitive Search SDK version : azure-search-documents==11.4.0b11

cagrimunyas commented 10 months ago

Downgrading to 11.4.0b8 works with vector_search_configuration while creating the index however this time RawVectorQuery import fails