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

Use orchestration lib #22

Merged
merged 9 commits into from
May 10, 2024
Merged

Use orchestration lib #22

merged 9 commits into from
May 10, 2024

Conversation

maxjakob
Copy link
Collaborator

@maxjakob maxjakob commented May 3, 2024

We moved much of the VectorStore logic to the Elasticsearch client library (elastic/elasticsearch-py#2528, see module) in order to centralize the development, ensure all GenAI library integrations work the same and offer users direct access to this abstraction in the future.

This PR integrates the new module into LangChain and converts most tests to unit tests that just check if the backend vector store is called correctly (the integration tests now live in elasticsearch-py).

The LangChain classes keep their existing interfaces.

@maxjakob maxjakob marked this pull request as ready for review May 3, 2024 16:01
Copy link
Member

@efriis efriis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty sure the retrieval strategy change is a breaking change. If there's a way to do it in a nonbreaking way, that would be best!

.github/workflows/_integration_test.yml Outdated Show resolved Hide resolved
.github/workflows/_lint.yml Outdated Show resolved Hide resolved
.github/workflows/_release.yml Outdated Show resolved Hide resolved
libs/elasticsearch/langchain_elasticsearch/vectorstores.py Outdated Show resolved Hide resolved
libs/elasticsearch/pyproject.toml Outdated Show resolved Hide resolved
libs/elasticsearch/tests/fake_embeddings.py Show resolved Hide resolved
Copy link
Collaborator

@joemcelroy joemcelroy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! Im excited for this change :)

@maxjakob maxjakob requested a review from efriis May 8, 2024 10:27
@maxjakob maxjakob merged commit ac57d5d into main May 10, 2024
11 checks passed
@maxjakob maxjakob deleted the use-orchestration-lib branch May 10, 2024 09:11
efriis added a commit to langchain-ai/langchain that referenced this pull request May 17, 2024
Update documentation with the [new names for retrieval
strategies](langchain-ai/langchain-elastic#22)

---------

Co-authored-by: Erick Friis <[email protected]>
hinthornw pushed a commit to langchain-ai/langchain that referenced this pull request Jun 20, 2024
Update documentation with the [new names for retrieval
strategies](langchain-ai/langchain-elastic#22)

---------

Co-authored-by: Erick Friis <[email protected]>
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.

3 participants