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