Skip to content

Commit 7112c20

Browse files
Updated package information for Multi Query Retrievals
1 parent 200251d commit 7112c20

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

notebooks/langchain/multi-query-retriever-examples/langchain-multi-query-retriever.ipynb

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"cell_type": "code",
27-
"execution_count": 12,
27+
"execution_count": 2,
2828
"metadata": {},
2929
"outputs": [
3030
{
@@ -38,14 +38,13 @@
3838
}
3939
],
4040
"source": [
41-
"!python3 -m pip install -qU lark elasticsearch langchain openai tiktoken\n",
41+
"!python3 -m pip install -qU lark elasticsearch langchain_openai tiktoken\n",
4242
"\n",
4343
"from langchain.schema import Document\n",
44-
"from langchain.embeddings.openai import OpenAIEmbeddings\n",
44+
"from langchain_openai.embeddings import OpenAIEmbeddings\n",
4545
"from langchain.vectorstores import ElasticsearchStore\n",
46-
"from langchain.chat_models import ChatOpenAI\n",
46+
"from langchain_openai.chat_models import ChatOpenAI\n",
4747
"from langchain.retrievers.multi_query import MultiQueryRetriever\n",
48-
"from langchain.chains import LLMChain\n",
4948
"from getpass import getpass"
5049
]
5150
},
@@ -59,7 +58,7 @@
5958
},
6059
{
6160
"cell_type": "code",
62-
"execution_count": 13,
61+
"execution_count": 3,
6362
"metadata": {},
6463
"outputs": [],
6564
"source": [
@@ -141,7 +140,7 @@
141140
},
142141
{
143142
"cell_type": "code",
144-
"execution_count": 14,
143+
"execution_count": 4,
145144
"metadata": {},
146145
"outputs": [],
147146
"source": [
@@ -178,7 +177,7 @@
178177
},
179178
{
180179
"cell_type": "code",
181-
"execution_count": 15,
180+
"execution_count": 5,
182181
"metadata": {},
183182
"outputs": [],
184183
"source": [
@@ -202,7 +201,7 @@
202201
},
203202
{
204203
"cell_type": "code",
205-
"execution_count": 16,
204+
"execution_count": 6,
206205
"metadata": {},
207206
"outputs": [
208207
{
@@ -215,10 +214,10 @@
215214
{
216215
"data": {
217216
"text/plain": [
218-
"4"
217+
"1"
219218
]
220219
},
221-
"execution_count": 16,
220+
"execution_count": 6,
222221
"metadata": {},
223222
"output_type": "execute_result"
224223
}

0 commit comments

Comments
 (0)