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

Vector Field vectorSearchConfiguration property not set / InvalidField issue #5

Open
cagrimunyas opened this issue Oct 20, 2023 · 1 comment

Comments

@cagrimunyas
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant