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

Switch from Elasticsearch YAML tests to client tests #2667

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

pquentin
Copy link
Member

This is mostly adapted from the Elasticsearch Serverless tests that already do this.

@miguelgrinberg This also bumps the tested version of Elasticsearch to 8.16. How do you want to handle the vector store tests? Do we keep the conditionals just in case we want to run those tests with 8.13 in the future?

Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here.

There were three different problems:

 * Elasticsearch automatically applied certain index_options that were
   missing
 * Two tests were using FakeEmbeddings instead of
   ConsistentFakeEmbeddings
 * One test used [1, ..., 1, i] with i going from 0 to 2. Making it
   going from 1 to 3 allowed the cosine similarity to work as expected.
@miguelgrinberg
Copy link
Contributor

@pquentin yes, I would keep the version checks for a while, in case we want to run the test suite locally.

@pquentin pquentin merged commit 596e7ca into elastic:main Nov 4, 2024
10 checks passed
@pquentin pquentin deleted the client-tests branch November 6, 2024 04:30
github-actions bot pushed a commit that referenced this pull request Nov 9, 2024
github-actions bot pushed a commit that referenced this pull request Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants