Skip to content

Commit 374bf8c

Browse files
committed
fix linting issues
1 parent 21bd304 commit 374bf8c

File tree

3 files changed

+14
-12
lines changed

3 files changed

+14
-12
lines changed

docs/docs/integrations/vectorstores/sap_hanavector.ipynb

+5-3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"outputs": [],
5454
"source": [
5555
"import os\n",
56+
"\n",
5657
"from dotenv import load_dotenv\n",
5758
"from hdbcli import dbapi\n",
5859
"\n",
@@ -103,6 +104,7 @@
103104
"# | output: false\n",
104105
"# | echo: false\n",
105106
"from langchain_openai import OpenAIEmbeddings\n",
107+
"\n",
106108
"embeddings = OpenAIEmbeddings(model=\"text-embedding-3-large\")"
107109
]
108110
},
@@ -964,12 +966,12 @@
964966
"metadata": {},
965967
"outputs": [],
966968
"source": [
967-
"from langchain_openai import ChatOpenAI\n",
968-
"from langchain.memory import ConversationBufferMemory\n",
969969
"from langchain.chains import ConversationalRetrievalChain\n",
970+
"from langchain.memory import ConversationBufferMemory\n",
971+
"from langchain_openai import ChatOpenAI\n",
970972
"\n",
971973
"llm = ChatOpenAI(model=\"gpt-3.5-turbo\")\n",
972-
"What happened in the coal mine explosion in Asturias, Spain?memory = ConversationBufferMemory(\n",
974+
"memory = ConversationBufferMemory(\n",
973975
" memory_key=\"chat_history\", output_key=\"answer\", return_messages=True\n",
974976
")\n",
975977
"qa_chain = ConversationalRetrievalChain.from_llm(\n",

libs/community/langchain_community/query_constructors/hanavector.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
since="0.1.0",
1717
removal="1.0",
1818
message=(
19-
"This class is deprecated and will be removed in a future version. "
20-
"Please use query_constructors.HanaTranslator from the "
21-
"langchain_hana package instead. "
22-
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
23-
"for details."
19+
"This class is deprecated and will be removed in a future version. "
20+
"Please use query_constructors.HanaTranslator from the "
21+
"langchain_hana package instead. "
22+
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
23+
"for details."
2424
),
2525
alternative="from langchain_hana.query_constructors import HanaTranslator;",
2626
pending=False,

libs/community/langchain_community/vectorstores/hanavector.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@
7171
since="0.1.0",
7272
removal="1.0",
7373
message=(
74-
"This class is deprecated and will be removed in a future version. "
75-
"Please use HanaDB from the langchain_hana package instead. "
76-
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
77-
"for details."
74+
"This class is deprecated and will be removed in a future version. "
75+
"Please use HanaDB from the langchain_hana package instead. "
76+
"See https://github.com/SAP/langchain-integration-for-sap-hana-cloud "
77+
"for details."
7878
),
7979
alternative="from langchain_hana import HanaDB;",
8080
pending=False,

0 commit comments

Comments
 (0)