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

validates legacy vector index config when target vectors configured #4375

Merged
merged 10 commits into from
Mar 6, 2024

Conversation

aliszka
Copy link
Member

@aliszka aliszka commented Mar 1, 2024

What's being changed:

changes validation of class's schema in respect of legacy/named vectors:

  • legacy vector related options (class.vectorizer, class.vectorIndexType, class.vectorIndexType) forbidden when named vectors are configured (class.vectorConfig)
  • vectorizer's default options are set for class (class.vectorConfig[_vectorName_].vectorizer[_vectorizerName_]) and properties (property.moduleConfig[_vectorizerName_]) when named vectors are configured (class.vectorConfig)
  • multiple vectorizers for legacy vector in class.moduleConfig or property.moduleConfig are forbidden
  • added property.moduleConfig validation on add class (previously only on add property)

Review checklist

  • Documentation has been updated, if necessary. Link to changed documentation:
  • Chaos pipeline run or not necessary. Link to pipeline:
  • All new code is covered by tests where it is reasonable.
  • Performance tests have been run or not necessary.

@aliszka aliszka marked this pull request as ready for review March 5, 2024 21:13
@aliszka aliszka force-pushed the improve_vectorindexconfig_validation branch from de33ece to 490ec6f Compare March 6, 2024 09:05
@aliszka aliszka force-pushed the improve_vectorindexconfig_validation branch from 490ec6f to c8ef304 Compare March 6, 2024 09:23
Copy link

sonarcloud bot commented Mar 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
43.1% Duplication on New Code (required ≤ 3%)

See analysis details on SonarCloud

@antas-marcin antas-marcin merged commit a32cb34 into stable/v1.24 Mar 6, 2024
30 of 31 checks passed
@antas-marcin antas-marcin deleted the improve_vectorindexconfig_validation branch March 6, 2024 09:37
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

Successfully merging this pull request may close these issues.

None yet

4 participants