Repository navigation
Migrate to langchain >=0.1.0,<0.3 #620
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -508,7 +508,7 @@ | |
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "from langchain.embeddings.openai import OpenAIEmbeddings\n", | ||
| "from langchain_openai import OpenAIEmbeddings\n", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Imports diverge from pinned dependenciesHigh Severity Imports were rewritten to Additional Locations (2)Triggered by project rule: Bugbot Configuration Reviewed by Cursor Bugbot for commit 9031da8. Configure here. |
||
| "\n", | ||
| "# get openai api key from platform.openai.com\n", | ||
| "OPENAI_API_KEY = os.getenv('OPENAI_API_KEY') or 'OPENAI_API_KEY'\n", | ||
|
|
@@ -535,7 +535,7 @@ | |
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "from langchain.vectorstores import Pinecone\n", | ||
| "from langchain_community.vectorstores import Pinecone\n", | ||
| "\n", | ||
| "text_field = \"text\"\n", | ||
| "\n", | ||
|
|
@@ -601,7 +601,7 @@ | |
| "metadata": {}, | ||
| "outputs": [], | ||
| "source": [ | ||
| "from langchain.chat_models import ChatOpenAI\n", | ||
| "from langchain_openai import ChatOpenAI\n", | ||
| "from langchain.chains import RetrievalQA\n", | ||
| "\n", | ||
| "# chatbot language model\n", | ||
|
|
||


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.
Wrong init_chat_model import path
High Severity
init_chat_modelis imported fromlangchain_community.chat_models, but that helper lives onlangchain.chat_modelsand was never moved to community. These docs notebooks installlangchain[openai]==1.2.7withoutlangchain-community, so the import cell raisesImportErrorimmediately.Additional Locations (1)
docs/langchain-retrieval-augmentation.ipynb#L55-L56Triggered by project rule: Bugbot Configuration
Reviewed by Cursor Bugbot for commit 9031da8. Configure here.