File tree 3 files changed +14
-12
lines changed
docs/docs/integrations/vectorstores
3 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 53
53
"outputs" : [],
54
54
"source" : [
55
55
" import os\n " ,
56
+ " \n " ,
56
57
" from dotenv import load_dotenv\n " ,
57
58
" from hdbcli import dbapi\n " ,
58
59
" \n " ,
103
104
" # | output: false\n " ,
104
105
" # | echo: false\n " ,
105
106
" from langchain_openai import OpenAIEmbeddings\n " ,
107
+ " \n " ,
106
108
" embeddings = OpenAIEmbeddings(model=\" text-embedding-3-large\" )"
107
109
]
108
110
},
964
966
"metadata" : {},
965
967
"outputs" : [],
966
968
"source" : [
967
- " from langchain_openai import ChatOpenAI\n " ,
968
- " from langchain.memory import ConversationBufferMemory\n " ,
969
969
" from langchain.chains import ConversationalRetrievalChain\n " ,
970
+ " from langchain.memory import ConversationBufferMemory\n " ,
971
+ " from langchain_openai import ChatOpenAI\n " ,
970
972
" \n " ,
971
973
" 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 " ,
973
975
" memory_key=\" chat_history\" , output_key=\" answer\" , return_messages=True\n " ,
974
976
" )\n " ,
975
977
" qa_chain = ConversationalRetrievalChain.from_llm(\n " ,
Original file line number Diff line number Diff line change 16
16
since = "0.1.0" ,
17
17
removal = "1.0" ,
18
18
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."
24
24
),
25
25
alternative = "from langchain_hana.query_constructors import HanaTranslator;" ,
26
26
pending = False ,
Original file line number Diff line number Diff line change 71
71
since = "0.1.0" ,
72
72
removal = "1.0" ,
73
73
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."
78
78
),
79
79
alternative = "from langchain_hana import HanaDB;" ,
80
80
pending = False ,
You can’t perform that action at this time.
0 commit comments