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

Fix unit tests in VoyageAI module #4451

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

antas-marcin
Copy link
Contributor

What's being changed:

This PR adds new VoyageAI module.

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.

fzowl and others added 2 commits March 11, 2024 17:30
* 1st step: Blind find-replace

* 2nd step: Now it compiles and the tests run smootly

* Further changes (correct request and response objects, define available models, etc.), but the tests are broken

* /v1 to default URL

* Formatting for GH Actions

* Steps mentioned in Slack:
Hey
@hong Liu
 and
@fődi, Zoltán
, could you please either run these commands as
@dirk
 describes above, requiring:
Just run from the weaviate root ./tools/gen-code-from-swagger.sh
This just adds the \\\ \\ Weaviate styling to 4 of the files.
2. You can download this with
go install mvdan.cc/gofumpt@latest
check the installation with:
gofumpt -h
And then you are all set as Dirk describes with gofumpt -w .
I am not sure what the next steps will be, I will keep an eye out on the refactor.

* Steps mentioned in Slack:
Hey
@hong Liu
 and
@fődi, Zoltán
, could you please either run these commands as
@dirk
 describes above, requiring:
Just run from the weaviate root ./tools/gen-code-from-swagger.sh
This just adds the \\\ \\ Weaviate styling to 4 of the files.
2. You can download this with
go install mvdan.cc/gofumpt@latest
check the installation with:
gofumpt -h
And then you are all set as Dirk describes with gofumpt -w .
I am not sure what the next steps will be, I will keep an eye out on the refactor.

* Steps mentioned in Slack:
Hey
@hong Liu
 and
@fődi, Zoltán
, could you please either run these commands as
@dirk
 describes above, requiring:
Just run from the weaviate root ./tools/gen-code-from-swagger.sh
This just adds the \\\ \\ Weaviate styling to 4 of the files.
2. You can download this with
go install mvdan.cc/gofumpt@latest
check the installation with:
gofumpt -h
And then you are all set as Dirk describes with gofumpt -w .
I am not sure what the next steps will be, I will keep an eye out on the refactor.

* Adding X-Voyageai... headers

* Correcting X-VoyageAI... headers (to X-Voyageai...)

* Reverting the named_vectors_... files changes

* here you can leave a nice form X-VoyageAI-Api-Key

* Reverting

* Correcting the URL

* Correcting the document input type

---------

Co-authored-by: fodizoltan <zoltan@conway.expert>
Co-authored-by: Connor Shorten <connorshorten300@gmail.com>
Copy link

sonarcloud bot commented Mar 11, 2024

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarCloud

@antas-marcin antas-marcin merged commit 9e8dad5 into stable/v1.24 Mar 11, 2024
35 of 36 checks passed
@antas-marcin antas-marcin deleted the merge-tentatively-voyageai-module branch March 11, 2024 17:08
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

3 participants