mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-15 23:57:21 +00:00
fix linting issues
This commit is contained in:
parent
21bd30485c
commit
374bf8cc5e
@ -53,6 +53,7 @@
|
|||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"import os\n",
|
"import os\n",
|
||||||
|
"\n",
|
||||||
"from dotenv import load_dotenv\n",
|
"from dotenv import load_dotenv\n",
|
||||||
"from hdbcli import dbapi\n",
|
"from hdbcli import dbapi\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -103,6 +104,7 @@
|
|||||||
"# | output: false\n",
|
"# | output: false\n",
|
||||||
"# | echo: false\n",
|
"# | echo: false\n",
|
||||||
"from langchain_openai import OpenAIEmbeddings\n",
|
"from langchain_openai import OpenAIEmbeddings\n",
|
||||||
|
"\n",
|
||||||
"embeddings = OpenAIEmbeddings(model=\"text-embedding-3-large\")"
|
"embeddings = OpenAIEmbeddings(model=\"text-embedding-3-large\")"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -964,12 +966,12 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_openai import ChatOpenAI\n",
|
|
||||||
"from langchain.memory import ConversationBufferMemory\n",
|
|
||||||
"from langchain.chains import ConversationalRetrievalChain\n",
|
"from langchain.chains import ConversationalRetrievalChain\n",
|
||||||
|
"from langchain.memory import ConversationBufferMemory\n",
|
||||||
|
"from langchain_openai import ChatOpenAI\n",
|
||||||
"\n",
|
"\n",
|
||||||
"llm = ChatOpenAI(model=\"gpt-3.5-turbo\")\n",
|
"llm = ChatOpenAI(model=\"gpt-3.5-turbo\")\n",
|
||||||
"What happened in the coal mine explosion in Asturias, Spain?memory = ConversationBufferMemory(\n",
|
"memory = ConversationBufferMemory(\n",
|
||||||
" memory_key=\"chat_history\", output_key=\"answer\", return_messages=True\n",
|
" memory_key=\"chat_history\", output_key=\"answer\", return_messages=True\n",
|
||||||
")\n",
|
")\n",
|
||||||
"qa_chain = ConversationalRetrievalChain.from_llm(\n",
|
"qa_chain = ConversationalRetrievalChain.from_llm(\n",
|
||||||
|
@ -16,11 +16,11 @@ from langchain_core.structured_query import (
|
|||||||
since="0.1.0",
|
since="0.1.0",
|
||||||
removal="1.0",
|
removal="1.0",
|
||||||
message=(
|
message=(
|
||||||
"This class is deprecated and will be removed in a future version. "
|
"This class is deprecated and will be removed in a future version. "
|
||||||
"Please use query_constructors.HanaTranslator from the "
|
"Please use query_constructors.HanaTranslator from the "
|
||||||
"langchain_hana package instead. "
|
"langchain_hana package instead. "
|
||||||
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
|
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
|
||||||
"for details."
|
"for details."
|
||||||
),
|
),
|
||||||
alternative="from langchain_hana.query_constructors import HanaTranslator;",
|
alternative="from langchain_hana.query_constructors import HanaTranslator;",
|
||||||
pending=False,
|
pending=False,
|
||||||
|
@ -71,10 +71,10 @@ default_vector_column_length: int = -1 # -1 means dynamic length
|
|||||||
since="0.1.0",
|
since="0.1.0",
|
||||||
removal="1.0",
|
removal="1.0",
|
||||||
message=(
|
message=(
|
||||||
"This class is deprecated and will be removed in a future version. "
|
"This class is deprecated and will be removed in a future version. "
|
||||||
"Please use HanaDB from the langchain_hana package instead. "
|
"Please use HanaDB from the langchain_hana package instead. "
|
||||||
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
|
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
|
||||||
"for details."
|
"for details."
|
||||||
),
|
),
|
||||||
alternative="from langchain_hana import HanaDB;",
|
alternative="from langchain_hana import HanaDB;",
|
||||||
pending=False,
|
pending=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user