-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
There was a problem hiding this 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 . |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this 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.
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