diff --git a/.riot/requirements/14f5b1d.txt b/.riot/requirements/150eea5.txt similarity index 72% rename from .riot/requirements/14f5b1d.txt rename to .riot/requirements/150eea5.txt index 4496dbe3a7e..b60305b80e0 100644 --- a/.riot/requirements/14f5b1d.txt +++ b/.riot/requirements/150eea5.txt @@ -2,31 +2,32 @@ # This file is autogenerated by pip-compile with Python 3.10 # by the following command: # -# pip-compile --no-annotate .riot/requirements/14f5b1d.in +# pip-compile --no-annotate .riot/requirements/150eea5.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.144 +botocore==1.34.144 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==5.4.0 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 -exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +exceptiongroup==1.2.2 +faiss-cpu==1.8.0 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -36,7 +37,7 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 @@ -49,22 +50,22 @@ langchain-core==0.1.52 langchain-openai==0.1.6 langchain-pinecone==0.1.0 langchain-text-splitters==0.0.2 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==1.30.3 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -74,21 +75,21 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tokenizers==0.19.1 tomli==2.0.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240712 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/1598e9b.txt b/.riot/requirements/1598e9b.txt index 58da2e173c4..f49f7a642ef 100644 --- a/.riot/requirements/1598e9b.txt +++ b/.riot/requirements/1598e9b.txt @@ -4,29 +4,29 @@ # # pip-compile --no-annotate .riot/requirements/1598e9b.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -36,35 +36,35 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 langchain==0.2.0 langchain-anthropic==0.1.13 langchain-aws==0.1.6 -langchain-cohere==0.1.7 +langchain-cohere==0.1.8 langchain-core==0.2.0 langchain-openai==0.1.7 langchain-pinecone==0.1.1 langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -74,21 +74,21 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tomli==2.0.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240622 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/1810353.txt b/.riot/requirements/1810353.txt index 154d4536840..56ede4ac150 100644 --- a/.riot/requirements/1810353.txt +++ b/.riot/requirements/1810353.txt @@ -4,29 +4,29 @@ # # pip-compile --no-annotate .riot/requirements/1810353.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,63 +35,68 @@ httpx-sse==0.4.0 huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 -importlib-metadata==7.1.0 +importlib-metadata==8.0.0 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 -langchain==0.2.4 -langchain-anthropic==0.1.15 -langchain-aws==0.1.6 -langchain-cohere==0.1.7 -langchain-community==0.2.4 -langchain-core==0.2.6 -langchain-openai==0.1.8 +langchain==0.2.7 +langchain-anthropic==0.1.19 +langchain-aws==0.1.10 +langchain-cohere==0.1.9 +langchain-community==0.2.7 +langchain-core==0.2.15 +langchain-experimental==0.0.62 +langchain-openai==0.1.15 langchain-pinecone==0.1.1 -langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langchain-text-splitters==0.2.2 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==24.1 +pandas==2.2.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 pytest-mock==3.14.0 pytest-randomly==3.15.0 python-dateutil==2.9.0.post0 +pytz==2024.1 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tabulate==0.9.0 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tomli==2.0.1 tqdm==4.66.4 types-requests==2.31.0.6 types-urllib3==1.26.25.14 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==1.26.18 +tzdata==2024.1 +urllib3==1.26.19 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/1dca1e6.txt b/.riot/requirements/1dca1e6.txt index 23ad5ebf899..6dc626e14b6 100644 --- a/.riot/requirements/1dca1e6.txt +++ b/.riot/requirements/1dca1e6.txt @@ -10,17 +10,17 @@ aiosignal==1.3.1 anyio==4.4.0 attrs==23.2.0 backoff==2.2.1 -certifi==2024.6.2 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==4.57 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.5.14 dnspython==2.6.1 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 huggingface-hub==0.23.4 hypothesis==6.45.0 @@ -39,7 +39,7 @@ marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==0.27.8 openapi-schema-pydantic==1.2.4 @@ -47,8 +47,8 @@ opentracing==2.4.0 packaging==23.2 pinecone-client==2.2.4 pluggy==1.5.0 -psutil==5.9.8 -pydantic==1.10.16 +psutil==6.0.0 +pydantic==1.10.17 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -61,13 +61,13 @@ requests==2.32.3 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tqdm==4.66.4 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/7aeeb05.txt b/.riot/requirements/7aeeb05.txt index 7a33c92c7f4..f47927a62fb 100644 --- a/.riot/requirements/7aeeb05.txt +++ b/.riot/requirements/7aeeb05.txt @@ -4,28 +4,28 @@ # # pip-compile --no-annotate .riot/requirements/7aeeb05.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,35 +35,35 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 langchain==0.2.0 langchain-anthropic==0.1.13 langchain-aws==0.1.6 -langchain-cohere==0.1.7 +langchain-cohere==0.1.8 langchain-core==0.2.0 langchain-openai==0.1.7 langchain-pinecone==0.1.1 langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -73,20 +73,20 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240622 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/8fdfb07.txt b/.riot/requirements/8fdfb07.txt index fc2a3a2e65c..b1213c21086 100644 --- a/.riot/requirements/8fdfb07.txt +++ b/.riot/requirements/8fdfb07.txt @@ -11,17 +11,17 @@ anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 backoff==2.2.1 -certifi==2024.6.2 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==4.57 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.5.14 dnspython==2.6.1 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 huggingface-hub==0.23.4 hypothesis==6.45.0 @@ -40,7 +40,7 @@ marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==0.27.8 openapi-schema-pydantic==1.2.4 @@ -48,8 +48,8 @@ opentracing==2.4.0 packaging==23.2 pinecone-client==2.2.4 pluggy==1.5.0 -psutil==5.9.8 -pydantic==1.10.16 +psutil==6.0.0 +pydantic==1.10.17 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -62,14 +62,14 @@ requests==2.32.3 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tomli==2.0.1 tqdm==4.66.4 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/1c14c70.txt b/.riot/requirements/9946322.txt similarity index 71% rename from .riot/requirements/1c14c70.txt rename to .riot/requirements/9946322.txt index 79809494f9f..f3cffca9f81 100644 --- a/.riot/requirements/1c14c70.txt +++ b/.riot/requirements/9946322.txt @@ -2,30 +2,31 @@ # This file is autogenerated by pip-compile with Python 3.11 # by the following command: # -# pip-compile --no-annotate .riot/requirements/1c14c70.in +# pip-compile --no-annotate .riot/requirements/9946322.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.144 +botocore==1.34.144 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==5.4.0 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 -exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +exceptiongroup==1.2.2 +faiss-cpu==1.8.0 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,7 +36,7 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 @@ -48,22 +49,22 @@ langchain-core==0.1.52 langchain-openai==0.1.6 langchain-pinecone==0.1.0 langchain-text-splitters==0.0.2 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==1.30.3 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -73,20 +74,20 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tokenizers==0.19.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240712 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/787b021.txt b/.riot/requirements/9b67887.txt similarity index 73% rename from .riot/requirements/787b021.txt rename to .riot/requirements/9b67887.txt index d6822e3adc4..5fe771a17b9 100644 --- a/.riot/requirements/787b021.txt +++ b/.riot/requirements/9b67887.txt @@ -2,31 +2,32 @@ # This file is autogenerated by pip-compile with Python 3.9 # by the following command: # -# pip-compile --no-annotate .riot/requirements/787b021.in +# pip-compile --no-annotate .riot/requirements/9b67887.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.144 +botocore==1.34.144 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==5.4.0 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 -exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +exceptiongroup==1.2.2 +faiss-cpu==1.8.0 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,9 +36,9 @@ httpx-sse==0.4.0 huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 -importlib-metadata==7.1.0 +importlib-metadata==8.0.0 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 @@ -50,22 +51,22 @@ langchain-core==0.1.52 langchain-openai==0.1.6 langchain-pinecone==0.1.0 langchain-text-splitters==0.0.2 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==1.30.3 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -75,13 +76,13 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tokenizers==0.19.1 tomli==2.0.1 @@ -90,7 +91,7 @@ types-requests==2.31.0.6 types-urllib3==1.26.25.14 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==1.26.18 +urllib3==1.26.19 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/b26ea62.txt b/.riot/requirements/b26ea62.txt index 481880ad05b..90bbc1410b1 100644 --- a/.riot/requirements/b26ea62.txt +++ b/.riot/requirements/b26ea62.txt @@ -11,17 +11,17 @@ anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 backoff==2.2.1 -certifi==2024.6.2 +certifi==2024.7.4 charset-normalizer==3.3.2 cohere==4.57 -coverage[toml]==7.5.3 +coverage[toml]==7.6.0 dataclasses-json==0.5.14 dnspython==2.6.1 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 huggingface-hub==0.23.4 hypothesis==6.45.0 @@ -40,7 +40,7 @@ marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 openai==0.27.8 openapi-schema-pydantic==1.2.4 @@ -48,8 +48,8 @@ opentracing==2.4.0 packaging==23.2 pinecone-client==2.2.4 pluggy==1.5.0 -psutil==5.9.8 -pydantic==1.10.16 +psutil==6.0.0 +pydantic==1.10.17 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -62,14 +62,14 @@ requests==2.32.3 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 tomli==2.0.1 tqdm==4.66.4 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==1.26.18 +urllib3==1.26.19 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/b5852df.txt b/.riot/requirements/b5852df.txt index f79229c10b8..f73008e54a9 100644 --- a/.riot/requirements/b5852df.txt +++ b/.riot/requirements/b5852df.txt @@ -4,29 +4,29 @@ # # pip-compile --no-annotate .riot/requirements/b5852df.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,37 +35,37 @@ httpx-sse==0.4.0 huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 -importlib-metadata==7.1.0 +importlib-metadata==8.0.0 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 langchain==0.2.0 langchain-anthropic==0.1.13 langchain-aws==0.1.6 -langchain-cohere==0.1.7 +langchain-cohere==0.1.8 langchain-core==0.2.0 langchain-openai==0.1.7 langchain-pinecone==0.1.1 langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==23.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 @@ -75,22 +75,22 @@ python-dateutil==2.9.0.post0 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tomli==2.0.1 tqdm==4.66.4 types-requests==2.31.0.6 types-urllib3==1.26.25.14 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==1.26.18 +urllib3==1.26.19 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/ccc7691.txt b/.riot/requirements/ccc7691.txt index d83ab1a91e1..ea41d9d5529 100644 --- a/.riot/requirements/ccc7691.txt +++ b/.riot/requirements/ccc7691.txt @@ -4,28 +4,28 @@ # # pip-compile --no-annotate .riot/requirements/ccc7691.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -35,59 +35,64 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 -langchain==0.2.4 -langchain-anthropic==0.1.15 -langchain-aws==0.1.6 -langchain-cohere==0.1.7 -langchain-community==0.2.4 -langchain-core==0.2.6 -langchain-openai==0.1.8 +langchain==0.2.7 +langchain-anthropic==0.1.19 +langchain-aws==0.1.10 +langchain-cohere==0.1.9 +langchain-community==0.2.7 +langchain-core==0.2.15 +langchain-experimental==0.0.62 +langchain-openai==0.1.15 langchain-pinecone==0.1.1 -langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langchain-text-splitters==0.2.2 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==24.1 +pandas==2.2.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 pytest-mock==3.14.0 pytest-randomly==3.15.0 python-dateutil==2.9.0.post0 +pytz==2024.1 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tabulate==0.9.0 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240622 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +tzdata==2024.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/.riot/requirements/fd7ae89.txt b/.riot/requirements/fd7ae89.txt index 9bcb5bacd27..f04dfba6c6b 100644 --- a/.riot/requirements/fd7ae89.txt +++ b/.riot/requirements/fd7ae89.txt @@ -4,29 +4,29 @@ # # pip-compile --no-annotate .riot/requirements/fd7ae89.in # -ai21==2.6.0 -ai21-tokenizer==0.9.1 +ai21==2.9.1 +ai21-tokenizer==0.11.2 aiohttp==3.9.5 aiosignal==1.3.1 annotated-types==0.7.0 -anthropic==0.28.1 +anthropic==0.31.0 anyio==4.4.0 async-timeout==4.0.3 attrs==23.2.0 -boto3==1.34.126 -botocore==1.34.126 -certifi==2024.6.2 +boto3==1.34.143 +botocore==1.34.143 +certifi==2024.7.4 charset-normalizer==3.3.2 -cohere==5.5.7 -coverage[toml]==7.5.3 +cohere==5.5.8 +coverage[toml]==7.6.0 dataclasses-json==0.6.7 defusedxml==0.7.1 distro==1.9.0 exceptiongroup==1.2.1 -fastavro==1.9.4 -filelock==3.15.1 +fastavro==1.9.5 +filelock==3.15.4 frozenlist==1.4.1 -fsspec==2024.6.0 +fsspec==2024.6.1 greenlet==3.0.3 h11==0.14.0 httpcore==1.0.5 @@ -36,60 +36,65 @@ huggingface-hub==0.23.4 hypothesis==6.45.0 idna==3.7 iniconfig==2.0.0 -jiter==0.4.2 +jiter==0.5.0 jmespath==1.0.1 jsonpatch==1.33 jsonpointer==3.0.0 -langchain==0.2.4 -langchain-anthropic==0.1.15 -langchain-aws==0.1.6 -langchain-cohere==0.1.7 -langchain-community==0.2.4 -langchain-core==0.2.6 -langchain-openai==0.1.8 +langchain==0.2.7 +langchain-anthropic==0.1.19 +langchain-aws==0.1.10 +langchain-cohere==0.1.9 +langchain-community==0.2.7 +langchain-core==0.2.15 +langchain-experimental==0.0.62 +langchain-openai==0.1.15 langchain-pinecone==0.1.1 -langchain-text-splitters==0.2.1 -langsmith==0.1.77 +langchain-text-splitters==0.2.2 +langsmith==0.1.85 marshmallow==3.21.3 mock==5.1.0 multidict==6.0.5 mypy-extensions==1.0.0 -numexpr==2.10.0 +numexpr==2.10.1 numpy==1.26.4 -openai==1.34.0 +openai==1.35.13 opentracing==2.4.0 -orjson==3.10.5 +orjson==3.10.6 packaging==24.1 +pandas==2.2.2 parameterized==0.9.0 pinecone-client==3.2.2 pluggy==1.5.0 -psutil==5.9.8 -pydantic==2.7.4 -pydantic-core==2.18.4 +psutil==6.0.0 +pydantic==2.8.2 +pydantic-core==2.20.1 pytest==8.2.2 pytest-asyncio==0.21.1 pytest-cov==5.0.0 pytest-mock==3.14.0 pytest-randomly==3.15.0 python-dateutil==2.9.0.post0 +pytz==2024.1 pyyaml==6.0.1 regex==2024.5.15 requests==2.32.3 -s3transfer==0.10.1 +s3transfer==0.10.2 sentencepiece==0.2.0 six==1.16.0 sniffio==1.3.1 sortedcontainers==2.4.0 -sqlalchemy==2.0.30 -tenacity==8.3.0 +sqlalchemy==2.0.31 +tabulate==0.9.0 +tenacity==8.5.0 tiktoken==0.7.0 -tokenizers==0.15.2 +tokenizers==0.19.1 tomli==2.0.1 tqdm==4.66.4 -types-requests==2.32.0.20240602 +types-requests==2.32.0.20240622 typing-extensions==4.12.2 typing-inspect==0.9.0 -urllib3==2.2.1 +tzdata==2024.1 +urllib3==2.2.2 vcrpy==6.0.1 wrapt==1.16.0 yarl==1.9.4 diff --git a/ddtrace/contrib/langchain/patch.py b/ddtrace/contrib/langchain/patch.py index ab2aab8a9ac..ee98d62acd4 100644 --- a/ddtrace/contrib/langchain/patch.py +++ b/ddtrace/contrib/langchain/patch.py @@ -185,10 +185,10 @@ def _is_pinecone_vectorstore_instance(instance): """ try: if not PATCH_LANGCHAIN_V0 and langchain_pinecone: - return isinstance(instance, langchain_pinecone.VectorStore) + return isinstance(instance, langchain_pinecone.PineconeVectorStore) if not PATCH_LANGCHAIN_V0 and langchain_community: - return isinstance(instance, langchain_community.vectorstores.VectorStore) - return isinstance(instance, langchain.vectorstores.VectorStore) + return isinstance(instance, langchain_community.vectorstores.Pinecone) + return isinstance(instance, langchain.vectorstores.Pinecone) except (AttributeError, ModuleNotFoundError, ImportError): return False diff --git a/releasenotes/notes/fix-langchain-pinecone-vectorstore-082c023ccae268e1.yaml b/releasenotes/notes/fix-langchain-pinecone-vectorstore-082c023ccae268e1.yaml new file mode 100644 index 00000000000..a1222a1b291 --- /dev/null +++ b/releasenotes/notes/fix-langchain-pinecone-vectorstore-082c023ccae268e1.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + langchain: This fix resolves an issue where the wrong langchain class name was being used to check for Pinecone vectorstore instances. diff --git a/riotfile.py b/riotfile.py index cadce49d9fc..8ea27ace102 100644 --- a/riotfile.py +++ b/riotfile.py @@ -2469,6 +2469,7 @@ def select_pys(min_version=MIN_PYTHON_VERSION, max_version=MAX_PYTHON_VERSION): "pinecone-client": latest, "botocore": latest, "cohere": "==5.4.0", + "faiss-cpu": "==1.8.0", } ), Venv( diff --git a/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml b/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml new file mode 100644 index 00000000000..a7615c41e2d --- /dev/null +++ b/tests/contrib/langchain/cassettes/langchain_community/openai_retrieval_embedding.yaml @@ -0,0 +1,204 @@ +interactions: +- request: + body: '{"input": [[3923, 574, 279, 1984, 315, 279, 1566, 1296, 3319, 30]], "model": + "text-embedding-ada-002", "encoding_format": "base64"}' + headers: + accept: + - application/json + accept-encoding: + - gzip, deflate + connection: + - keep-alive + content-length: + - '131' + content-type: + - application/json + cookie: + - _cfuvid=v6MSy3Sk6pxtoYL8kXXuNiO2j0OK_HAODXl1hNcZp0o-1710190352774-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 | + H4sIAAAAAAAAA1SYyQ6zPJOF930Vr75tWsqMi39HmMNgEyCE9AoIIUAGJhvwf/Ot5G11qzcsbCN5 + qHrOqfr3f/z5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kFTPTV0y5UQu5lvwRXjfMzLXv6rb5nGFtN91Fa7 + 4Qiv+cyjGJkV6sB6XeEnty98VxwcMYS3sAE5ZtXET9CQmHEJo16RpJ63qNY3cEfzdefSvSFt0ZA9 + HhnEq9QiHx07gXR1tTu8hkXCnUo4aHg81OL3PKl2Ipm1apoGmkXtl+ssCpAYeR/slyHj3kO388GQ + 5BfQavMY84mMvtN6nFUQTP6Am233sqE8KZzbM++Q91u9mk3fm5uj/7b+ERwY8wc1Rj2UT8/sCFl0 + sagx1hPN/ZAc0dhfJJ25o0HfB5yB6R839ETXUsD6I76jkadQ27+FwW/exFpxotu9yIVY+2E46Q/d + rksnEs/j8Y72/qniI/8za13bqQjbuyd1VuE+6hT1R4VHbc3oNgw30aCIi7QmpIipVZnvoPkE1zvk + feJwl16fom93jwPqTp+S6nNrXXP5BgyecpLS2/JwR+2lLY8w9bduQc3r4fYy3ElfGKqFXzfjeZv0 + 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: + - 8a1bbdde9f747116-YYZ + Connection: + - keep-alive + Content-Encoding: + - gzip + Content-Type: + - application/json + Date: + - Thu, 11 Jul 2024 21:03:42 GMT + Server: + - cloudflare + Set-Cookie: + - __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=qNbRTOfo3UydlqBO7v8kwcY5Q5R56nFBWE2L8VVztSA-1720731822090-0.0.1.1-604800000; + path=/; domain=.api.openai.com; HttpOnly; Secure; SameSite=None + 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: + - '20' + 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: + - '9999989' + x-ratelimit-reset-requests: + - 6ms + x-ratelimit-reset-tokens: + - 0s + x-request-id: + - req_1e7aa7af282a135a9d87eaac31f00a35 + status: + code: 200 + message: OK +version: 1 diff --git a/tests/contrib/langchain/test_langchain_community.py b/tests/contrib/langchain/test_langchain_community.py index 698b7e6d5ca..404e3d52631 100644 --- a/tests/contrib/langchain/test_langchain_community.py +++ b/tests/contrib/langchain/test_langchain_community.py @@ -816,7 +816,13 @@ def test_pinecone_vectorstore_similarity_search(langchain_openai, request_vcr): vectorstore.similarity_search("Who was Alan Turing?", 1) -@pytest.mark.snapshot(ignores=["metrics.langchain.tokens.total_cost"]) +@pytest.mark.snapshot( + ignores=[ + "metrics.langchain.tokens.total_cost", + "meta.langchain.response.outputs.input_documents", + "meta.langchain.request.inputs.input_documents", + ] +) def test_pinecone_vectorstore_retrieval_chain(langchain_openai, request_vcr): """ Test that calling a similarity search on a Pinecone vectorstore with langchain will @@ -1250,7 +1256,7 @@ async def test_lcel_chain_batch_async(langchain_core, langchain_openai, request_ @pytest.mark.snapshot -def test_lcecl_chain_non_dict_input(langchain_core): +def test_lcel_chain_non_dict_input(langchain_core): """ Tests that non-dict inputs (specifically also non-string) are stringified properly """ @@ -1259,3 +1265,19 @@ def test_lcecl_chain_non_dict_input(langchain_core): sequence = add_one | multiply_two sequence.invoke(1) + + +@pytest.mark.snapshot +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.") + pytest.importorskip("faiss", reason="faiss required for this test.") + 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/contrib/langchain/test_langchain_llmobs.py b/tests/contrib/langchain/test_langchain_llmobs.py index 61f2b34b13e..099a621cd0f 100644 --- a/tests/contrib/langchain/test_langchain_llmobs.py +++ b/tests/contrib/langchain/test_langchain_llmobs.py @@ -15,6 +15,7 @@ from tests.llmobs._utils import _expected_llmobs_non_llm_span_event from tests.subprocesstest import SubprocessTestCase from tests.subprocesstest import run_in_subprocess +from tests.utils import flaky if PATCH_LANGCHAIN_V0: @@ -324,6 +325,7 @@ def test_llmobs_chain_schema_io(self, langchain, mock_llmobs_span_writer, mock_t _assert_expected_llmobs_llm_span(trace[1], mock_llmobs_span_writer, mock_io=True) +@flaky(1735812000, reason="Community cassette tests are flaky") @pytest.mark.skipif(PATCH_LANGCHAIN_V0, reason="These tests are for langchain >= 0.1.0") class TestLLMObsLangchainCommunity(BaseTestLLMObsLangchain): cassette_subdirectory_name = "langchain_community" @@ -518,6 +520,7 @@ def test_llmobs_anthropic_chat_model(self, langchain_anthropic, mock_llmobs_span _assert_expected_llmobs_llm_span(span, mock_llmobs_span_writer, input_role="user") +@flaky(1735812000, reason="Community cassette tests are flaky") @pytest.mark.skipif(PATCH_LANGCHAIN_V0, reason="These tests are for langchain >= 0.1.0") class TestLangchainTraceStructureWithLlmIntegrations(SubprocessTestCase): bedrock_env_config = dict( 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 new file mode 100644 index 00000000000..477574379a9 --- /dev/null +++ b/tests/snapshots/tests.contrib.langchain.test_langchain_community.test_faiss_vectorstore_retrieval.json @@ -0,0 +1,89 @@ +[[ + { + "name": "langchain.request", + "service": "", + "resource": "langchain_openai.embeddings.base.OpenAIEmbeddings", + "trace_id": 0, + "span_id": 1, + "parent_id": 0, + "type": "", + "error": 0, + "meta": { + "_dd.p.dm": "-0", + "_dd.p.tid": "668c5dde00000000", + "langchain.request.api_key": "...key>", + "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", + "language": "python", + "runtime-id": "2a1d7ab4ff064afb95e895ce7aa565e0" + }, + "metrics": { + "_dd.measured": 1, + "_dd.top_level": 1, + "_dd.tracer_kr": 1.0, + "_sampling_priority_v1": 1, + "langchain.request.input_count": 1, + "langchain.response.outputs.0.embedding_length": 1536, + "process_id": 69484 + }, + "duration": 406798000, + "start": 1720475102021903000 + }], +[ + { + "name": "langchain.request", + "service": "", + "resource": "langchain_community.vectorstores.faiss.FAISS", + "trace_id": 1, + "span_id": 1, + "parent_id": 0, + "type": "", + "error": 0, + "meta": { + "_dd.p.dm": "-0", + "_dd.p.tid": "668c5dde00000000", + "langchain.request.api_key": "", + "langchain.request.provider": "faiss", + "langchain.request.query": "What was the message of the last test query?", + "langchain.request.type": "similarity_search", + "langchain.response.document.0.page_content": "this is a test query.", + "language": "python", + "runtime-id": "2a1d7ab4ff064afb95e895ce7aa565e0" + }, + "metrics": { + "_dd.measured": 1, + "_dd.top_level": 1, + "_dd.tracer_kr": 1.0, + "_sampling_priority_v1": 1, + "langchain.response.document_count": 1, + "process_id": 69484 + }, + "duration": 3710000, + "start": 1720475102468386000 + }, + { + "name": "langchain.request", + "service": "", + "resource": "langchain_openai.embeddings.base.OpenAIEmbeddings", + "trace_id": 1, + "span_id": 2, + "parent_id": 1, + "type": "", + "error": 0, + "meta": { + "langchain.request.api_key": "...key>", + "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" + }, + "metrics": { + "_dd.measured": 1, + "langchain.request.input_count": 1, + "langchain.response.outputs.0.embedding_length": 1536 + }, + "duration": 1714000, + "start": 1720475102468505000 + }]]