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
test_deterministic_embedding.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
test_edenai.py
test_embaas.py
test_gpt4all.py
test_gradient_ai.py
test_huggingface.py
test_imports.py community: support Hunyuan Embedding (#23160) 2024-12-16 19:27:19 +00:00
test_infinity_local.py
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
test_model2vec.py
test_naver.py
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
test_openai.py
test_ovhcloud.py
test_premai.py
test_sparkllm.py
test_vertexai.py
test_yandex.py