From ace857ff0e9f5694f153764a46290c7b29c20dc2 Mon Sep 17 00:00:00 2001 From: Yun Kim Date: Thu, 11 Jul 2024 17:09:23 -0400 Subject: [PATCH] Fix test --- .../openai_retrieval_embedding.yaml | 435 +++++------------- .../langchain/test_langchain_community.py | 16 +- ...nity.test_faiss_vectorstore_retrieval.json | 8 +- 3 files changed, 133 insertions(+), 326 deletions(-) diff --git a/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml b/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml index 9750d9be1ef..a7615c41e2d 100644 --- a/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml +++ b/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml @@ -1,6 +1,6 @@ interactions: - request: - body: '{"input": [[96084, 96209, 706, 220, 22, 13077, 4028, 279, 7427]], "model": + body: '{"input": [[3923, 574, 279, 1984, 315, 279, 1566, 1296, 3319, 30]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' headers: accept: @@ -10,9 +10,11 @@ interactions: connection: - keep-alive content-length: - - '129' + - '131' content-type: - application/json + cookie: + - _cfuvid=v6MSy3Sk6pxtoYL8kXXuNiO2j0OK_HAODXl1hNcZp0o-1710190352774-0.0.1.1-604800000 host: - api.openai.com user-agent: @@ -36,120 +38,120 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA1SWTdOyvpLG9+dT3PVsnSpeRNL8dwiIyEuCooizAkUEVOQlAXK+/CnvZ2qmZpNF - p5NUV1/5Xf3vf/38/GmyKr8Of/75+fMs++HPf31jt3RI//zz89//+vn5+fn37/r/MvNXlt9u5bv4 - Tf/dLN+3fPrzz4/4v5H/S/rn509iqVdcu5OYzUtiUnjURkyn9L6u+NYWCmjvBFhwX70QvzXKAYzs - QojlTmJE9WcpwmEYzszT55l/uti6wj1LHEJ494wGOXm7ELqpyRy5rTJG+BSD/1xuMJCxRtOKGyqg - Lr/jDs+pyR+2AxDU1zsjinyK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fGKqFXzfjeZv0 + jEmHDESfyaY2+ScTgKKg+8TrF+TDrCeKGFjOyt4aINpyiyzDnted+73fYcw/DDrs4AXZVwyJSrGJ + HJdmNHiNXsDI2/jUj+43qRLDMbVTOvH8Xu3QMPUHuPF6hwGXzdJGU56lSozrGs2IAX9NUwH//uPP + P/9vmjAoykf8HgcD2rhv//7vqMDf4SP8W5Lk3zEE1oRJ/Ne//plA+Kuqy6Jq/78tX/Gn+etffy7+ + mTX4qy3b8P2/1/8YH/XvP/4DAAD//wMA6kC8UuAgAAA= headers: CF-Cache-Status: - DYNAMIC CF-RAY: - - 8a034685de3743a7-EWR + - 8a1bbdde9f747116-YYZ Connection: - keep-alive Content-Encoding: @@ -157,14 +159,14 @@ interactions: Content-Type: - application/json Date: - - Mon, 08 Jul 2024 21:47:55 GMT + - Thu, 11 Jul 2024 21:03:42 GMT Server: - cloudflare Set-Cookie: - - __cf_bm=eGfyVMTK013CeUA8BMiyoNPEtLppeKSA6uCI98qBUBw-1720475275-1.0.1.1-UaHSixYi9vAe.Q2yWRbME9zzTpgIU9nnlQgCcWkD6OL7DrJGZ6gX3SpSd3DnT8_ILmM2Vl8gZ7Vrf0cAfq6nIw; - path=/; expires=Mon, 08-Jul-24 22:17:55 GMT; domain=.api.openai.com; HttpOnly; + - __cf_bm=fYix13QP3Bd6KiFCyoChA8w6ga_JVC5tkdoj3opBso8-1720731822-1.0.1.1-M2houut9UkQkRvdPvKSbYt3Wrz1IQoBml8h0p7iqR5pO81rF5t7TrQPDMhHdiRtHmyb2p4ur_L3jLTndFcF4KQ; + path=/; expires=Thu, 11-Jul-24 21:33:42 GMT; domain=.api.openai.com; HttpOnly; Secure; SameSite=None - - _cfuvid=eVc5h.LZVqjY9s78aj9XgdpMAa0T1F3qpfo_hnypE5E-1720475275395-0.0.1.1-604800000; + - _cfuvid=qNbRTOfo3UydlqBO7v8kwcY5Q5R56nFBWE2L8VVztSA-1720731822090-0.0.1.1-604800000; path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None Transfer-Encoding: - chunked @@ -177,204 +179,7 @@ interactions: openai-organization: - datadog-4 openai-processing-ms: - - '112' - openai-version: - - '2020-10-01' - strict-transport-security: - - max-age=31536000; includeSubDomains - x-ratelimit-limit-requests: - - '10000' - x-ratelimit-limit-tokens: - - '10000000' - x-ratelimit-remaining-requests: - - '9999' - x-ratelimit-remaining-tokens: - - '9999991' - x-ratelimit-reset-requests: - - 6ms - x-ratelimit-reset-tokens: - - 0s - x-request-id: - - req_ffa6faa8ecb97bd31219f6cf8a1598d5 - status: - code: 200 - message: OK -- request: - body: '{"input": [[4438, 1690, 15771, 1587, 68587, 96209, 617, 304, 279, 2326, - 30]], "model": "text-embedding-ada-002", "encoding_format": "base64"}' - headers: - accept: - - application/json - accept-encoding: - - gzip, deflate - connection: - - keep-alive - content-length: - - '141' - content-type: - - application/json - cookie: - - __cf_bm=eGfyVMTK013CeUA8BMiyoNPEtLppeKSA6uCI98qBUBw-1720475275-1.0.1.1-UaHSixYi9vAe.Q2yWRbME9zzTpgIU9nnlQgCcWkD6OL7DrJGZ6gX3SpSd3DnT8_ILmM2Vl8gZ7Vrf0cAfq6nIw; - _cfuvid=eVc5h.LZVqjY9s78aj9XgdpMAa0T1F3qpfo_hnypE5E-1720475275395-0.0.1.1-604800000 - host: - - api.openai.com - user-agent: - - OpenAI/Python 1.34.0 - x-stainless-arch: - - arm64 - x-stainless-async: - - 'false' - x-stainless-lang: - - python - x-stainless-os: - - MacOS - x-stainless-package-version: - - 1.34.0 - x-stainless-runtime: - - CPython - x-stainless-runtime-version: - - 3.10.5 - method: POST - uri: https://api.openai.com/v1/embeddings - response: - body: - string: !!binary | - H4sIAAAAAAAAA1R6S9OqTLfk/PsVO/aUPiEiUot3xk1ELlUoXrCjowNQEVCRSxVQJ85/7+B5vjjd - PXHATajKysyVq/7zX3/+/K3T8p71f//58/dVdP3f/zEfuyV98vefP//zX3/+/Pnznz+//9+V93d6 - v92KT/5z+c/J4nO7j3//+SP+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jeaMXQouWq - YB3BDODEPHXPPbZklxguYdLQDx4uEb3eDB8NSMbMlHy7nMTAp0ofbwcsLCu95SuICrjkff1zvzl0 - adbIN8voGI4T0aNa/O5++BWzXFiVs78/KrlmPYmjyMirKxZ3cFZ3H+ac5BUai8e9gMO3EYkVpWY5 - zf1m5Ssp8ZxH2anofr9HCLRPxbbvVVJ2s/4g9TR1RIvXIur04XmAnV7FzBu6LOr5xyzAuRYDsxfY - RT2VewN+/My4ae7R2H53jpoxbBMjvC/b/uN/Hbiwh0EVV+xMvvUd+M3vAzLm6Pt4owS4lZjEKdf7 - dtgfr/+uDzZvTTeHvo4neB0bl9nWMPAh3lwapO/AIdqAnFJsJE+C2OGEOPqu8OZ+SgFZBdHcLzMi - 8WWUFsDkd798yNmi16A4SDvMT/sJTe9V9UZzXo65LuQmR7bqoIMYvIn70z+XtokGuzYoaN3d67Zl - nzCBJASbpR/alZPxaiRU+/4FL4ckQgz0SVL//uwK+K9//fnzv352GLzr2/01bwzo72P/H/+9VeA/ - klvyH6Io/W5DoF2S3//+8+8dCH+/bf3+9v+7r6v7p/v7z5/l8nevwd++7pPX/3v8X/Nf/de//g8A - AAD//wMAXl6JuOAgAAA= - headers: - CF-Cache-Status: - - DYNAMIC - CF-RAY: - - 8a034687682343a7-EWR - Connection: - - keep-alive - Content-Encoding: - - gzip - Content-Type: - - application/json - Date: - - Mon, 08 Jul 2024 21:47:55 GMT - Server: - - cloudflare - Transfer-Encoding: - - chunked - access-control-allow-origin: - - '*' - alt-svc: - - h3=":443"; ma=86400 - openai-model: - - text-embedding-ada-002 - openai-organization: - - datadog-4 - openai-processing-ms: - - '29' + - '20' openai-version: - '2020-10-01' strict-transport-security: @@ -392,7 +197,7 @@ interactions: x-ratelimit-reset-tokens: - 0s x-request-id: - - req_c158df1872070a85e8f108bddc8467c9 + - req_1e7aa7af282a135a9d87eaac31f00a35 status: code: 200 message: OK diff --git a/tests/contrib/langchain/test_langchain_community.py b/tests/contrib/langchain/test_langchain_community.py index 5b352e9deae..79838218b9e 100644 --- a/tests/contrib/langchain/test_langchain_community.py +++ b/tests/contrib/langchain/test_langchain_community.py @@ -1265,10 +1265,12 @@ def test_lcel_chain_non_dict_input(langchain_core): def test_faiss_vectorstore_retrieval(langchain_community, langchain_openai, request_vcr): if langchain_community is None: pytest.skip("langchain-community not installed which is required for this test.") - with request_vcr.use_cassette("openai_retrieval_embedding.yaml"): - faiss = langchain_community.vectorstores.faiss.FAISS.from_texts( - ["Quiet Platforms has 7 facilities across the USA"], - embedding=langchain_openai.OpenAIEmbeddings(), - ) - retriever = faiss.as_retriever() - retriever.invoke("How many platforms does Quiet Platforms have in the US?") + with mock.patch("langchain_openai.OpenAIEmbeddings._get_len_safe_embeddings", return_value=[[0.0] * 1536]): + with request_vcr.use_cassette("openai_embedding_query.yaml"): + faiss = langchain_community.vectorstores.faiss.FAISS.from_texts( + ["this is a test query."], + embedding=langchain_openai.OpenAIEmbeddings(), + ) + retriever = faiss.as_retriever() + with request_vcr.use_cassette("openai_retrieval_embedding.yaml"): + retriever.invoke("What was the message of the last test query?") diff --git a/tests/snapshots/tests.contrib.langchain.test_langchain_community.test_faiss_vectorstore_retrieval.json b/tests/snapshots/tests.contrib.langchain.test_langchain_community.test_faiss_vectorstore_retrieval.json index 1cc638962e6..477574379a9 100644 --- a/tests/snapshots/tests.contrib.langchain.test_langchain_community.test_faiss_vectorstore_retrieval.json +++ b/tests/snapshots/tests.contrib.langchain.test_langchain_community.test_faiss_vectorstore_retrieval.json @@ -12,7 +12,7 @@ "_dd.p.dm": "-0", "_dd.p.tid": "668c5dde00000000", "langchain.request.api_key": "...key>", - "langchain.request.inputs.0.text": "Quiet Platforms has 7 facilities across the USA", + "langchain.request.inputs.0.text": "this is a test query.", "langchain.request.model": "text-embedding-ada-002", "langchain.request.provider": "openai", "langchain.request.type": "embedding", @@ -46,9 +46,9 @@ "_dd.p.tid": "668c5dde00000000", "langchain.request.api_key": "", "langchain.request.provider": "faiss", - "langchain.request.query": "How many platforms does Quiet Platforms have in the US?", + "langchain.request.query": "What was the message of the last test query?", "langchain.request.type": "similarity_search", - "langchain.response.document.0.page_content": "Quiet Platforms has 7 facilities across the USA", + "langchain.response.document.0.page_content": "this is a test query.", "language": "python", "runtime-id": "2a1d7ab4ff064afb95e895ce7aa565e0" }, @@ -74,7 +74,7 @@ "error": 0, "meta": { "langchain.request.api_key": "...key>", - "langchain.request.inputs.0.text": "How many platforms does Quiet Platforms have in the US?", + "langchain.request.inputs.0.text": "What was the message of the last test query?", "langchain.request.model": "text-embedding-ada-002", "langchain.request.provider": "openai", "langchain.request.type": "embedding"