Skip to content

PYTHON-4134: Update LangChain test to run langchain-mongodb partner package rather than community #7

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

Merged
merged 10 commits into from
Apr 26, 2024

Conversation

Jibola
Copy link
Collaborator

@Jibola Jibola commented Mar 8, 2024

Summary

Our LangChain tests have evolved immensely. The largest change stems from test running in their own partner library langchain-mongodb. As a result, we are dropping our support/maintenance of the langchain-community package version and are wholesale supporting our new langchain-mongodb partner package. The goal of this PR is to now run the langchain-mongodb test suite

@Jibola Jibola requested a review from a team March 8, 2024 21:51
@Jibola Jibola changed the title PYTHON-4134: Update langchain test PYTHON-4134: Update LangChain test to run langchain-mongodb partner package rather than community Apr 23, 2024
Copy link
Collaborator

@caseyclements caseyclements left a comment

Choose a reason for hiding this comment

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

Update poetry usage to avoid venv.

@@ -7,21 +7,15 @@ set -x

PYTHON_BINARY=$(find_python3)

cd libs/langchain
cd libs/partners/mongodb

$PYTHON_BINARY -m venv .
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is not the recommended way to use poetry. You don't want to use venv. Look at the implementation in llama_index/run.sh for an example. chatgpt does the same. There are comments explaining what is happening on each line.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah yeah, I think the one thing about that is the evergreen urges not "writing outside of the directory" which is what I interpreted a pip install with the binary to be under that general umbrella.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah. You're right. Using a venv will keep all in one place. Hmmm. Maybe I should update the others...

Copy link
Collaborator

@caseyclements caseyclements left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@caseyclements caseyclements left a comment

Choose a reason for hiding this comment

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

Given merge of #21 , good to go.

@Jibola Jibola dismissed blink1073’s stale review April 26, 2024 20:25

Approval for removal

@Jibola Jibola merged commit 95a05f4 into main Apr 26, 2024
@Jibola Jibola deleted the update-langchain-test branch April 26, 2024 20:33
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