langchain/libs/community/tests/unit_tests/embeddings
Julien Elkaim e586bffe51
community: Repair embeddings/llamacpp's embed_query method (#29935)
**Description:** As commented on the commit
[41b6a86](41b6a86bbe)
it introduced a bug for when we do an embedding request and the model
returns a non-nested list. Typically it's the case for model
**_nomic-embed-text_**.

- I added the unit test, and ran `make format`, `make lint` and `make
test` from the `community` package.
- No new dependency.

---------

Co-authored-by: Chester Curme <chester.curme@gmail.com>
2025-02-23 19:32:17 +00:00
..
__init__.py
test_baichuan.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_deterministic_embedding.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
test_edenai.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_embaas.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_gpt4all.py community: Fix ValidationError on creating GPT4AllEmbeddings with no gpt4all_kwargs (#25124) 2024-08-07 13:34:01 +00:00
test_gradient_ai.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
test_huggingface.py
test_imports.py community: support Hunyuan Embedding (#23160) 2024-12-16 19:27:19 +00:00
test_infinity_local.py multiple: rely on asyncio_mode auto in tests (#27200) 2024-10-15 16:26:38 +00:00
test_infinity.py
test_llamacpp.py community: Repair embeddings/llamacpp's embed_query method (#29935) 2025-02-23 19:32:17 +00:00
test_llamafile.py
test_llm_rails.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_model2vec.py community[minor]: Add support for modle2vec embeddings (#28507) 2024-12-09 02:17:22 +00:00
test_naver.py community: Add Naver chat model & embeddings (#25162) 2024-10-24 20:54:13 +00:00
test_oci_gen_ai_embedding.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
test_ollama.py community[patch]: Add missing annotations (#24890) 2024-07-31 18:13:44 +00:00
test_openai.py
test_ovhcloud.py
test_premai.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_sparkllm.py multiple: pydantic 2 compatibility, v0.3 (#26443) 2024-09-13 14:38:45 -07:00
test_vertexai.py
test_yandex.py comminity[patch]: fix #25575 YandexGPTs for _grpc_metadata (#25617) 2024-08-28 18:48:10 -07:00