mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-17 21:25:46 +02:00
remove usage of upsert
This commit is contained in:
+12
-13
@@ -119,8 +119,7 @@
|
||||
"]\n",
|
||||
"\n",
|
||||
"vector_store = InMemoryVectorStore(embedding=OpenAIEmbeddings())\n",
|
||||
"upsert_response = vector_store.upsert(tool_documents)\n",
|
||||
"assert not upsert_response[\"failed\"]"
|
||||
"document_ids = vector_store.add_documents(tool_documents)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -243,7 +242,7 @@
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"['ed32d6f0-76c8-42ad-9ddb-eb28ab73cba3', 'ab4b0a2d-e535-419d-8d8b-d1e1cc6a410b', 'da70a795-fd64-474d-be7f-d39314255f6c', '3f605f81-bcd0-4bae-848b-fcae0b2115be']\n"
|
||||
"['3b7d1528-6007-4473-a92f-b9b3341c3bfe', '8d77b753-c58a-41bf-9649-ad1a7326bc27', '514a6fc3-03d1-4e73-b410-c39309ad7b2f', '83c5cc8f-5111-46ed-874a-e0b883265ff6']\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
@@ -266,8 +265,8 @@
|
||||
"Can you give me some information about AMD in 2022?\n",
|
||||
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
|
||||
"Tool Calls:\n",
|
||||
" Advanced_Micro_Devices (call_RhGe3Zhp9ENphSC8Pusd7ZWe)\n",
|
||||
" Call ID: call_RhGe3Zhp9ENphSC8Pusd7ZWe\n",
|
||||
" Advanced_Micro_Devices (call_Htbv7Imx4BwSsYWhZvSSs6yW)\n",
|
||||
" Call ID: call_Htbv7Imx4BwSsYWhZvSSs6yW\n",
|
||||
" Args:\n",
|
||||
" year: 2022\n",
|
||||
"=================================\u001b[1m Tool Message \u001b[0m=================================\n",
|
||||
@@ -392,7 +391,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 14,
|
||||
"execution_count": 18,
|
||||
"id": "bee04c3d-0e36-4443-b0c8-10986a5f6e39",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -404,8 +403,8 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 15,
|
||||
"id": "92ba9195-52d4-46c3-b811-8e00a9d61480",
|
||||
"execution_count": 19,
|
||||
"id": "6906fb50-435c-4473-bbb6-5353433b9199",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
@@ -417,8 +416,8 @@
|
||||
"Can you give me some information about AMD in 2022?\n",
|
||||
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
|
||||
"Tool Calls:\n",
|
||||
" Accenture (call_ytesTjST6vxetxsQQmVKDjyJ)\n",
|
||||
" Call ID: call_ytesTjST6vxetxsQQmVKDjyJ\n",
|
||||
" Accenture (call_L82JRUyIFilhzeTmPnNbPeVD)\n",
|
||||
" Call ID: call_L82JRUyIFilhzeTmPnNbPeVD\n",
|
||||
" Args:\n",
|
||||
" year: 2022\n",
|
||||
"=================================\u001b[1m Tool Message \u001b[0m=================================\n",
|
||||
@@ -427,8 +426,8 @@
|
||||
"Accenture had revenues of $100 in 2022.\n",
|
||||
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
|
||||
"Tool Calls:\n",
|
||||
" Advanced_Micro_Devices (call_16WW5BuJtX0uLylLcawxrDcI)\n",
|
||||
" Call ID: call_16WW5BuJtX0uLylLcawxrDcI\n",
|
||||
" Advanced_Micro_Devices (call_k3zR9zS98gjiejmNgq6aVsXL)\n",
|
||||
" Call ID: call_k3zR9zS98gjiejmNgq6aVsXL\n",
|
||||
" Args:\n",
|
||||
" year: 2022\n",
|
||||
"=================================\u001b[1m Tool Message \u001b[0m=================================\n",
|
||||
@@ -437,7 +436,7 @@
|
||||
"Advanced Micro Devices had revenues of $100 in 2022.\n",
|
||||
"==================================\u001b[1m Ai Message \u001b[0m==================================\n",
|
||||
"\n",
|
||||
"In 2022, AMD had revenues of $100 and Accenture had revenues of $100.\n"
|
||||
"In 2022, Advanced Micro Devices (AMD) had revenues of $100.\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user