langchain/libs/community/tests/unit_tests
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
..
agent_toolkits community: adds support for getting github releases for the configured repository (#29318) 2025-01-22 15:45:52 +00:00
agents community: add truncation params when an openai assistant's run is created (#28158) 2024-11-27 10:53:53 -05:00
callbacks Community : Add OpenAI prompt caching and reasoning tokens tracking (#27135) 2024-12-19 09:31:13 -05:00
chains core: add kwargs support to VectorStore (#25934) 2024-12-16 18:57:57 +00:00
chat_loaders community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
chat_message_histories community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
chat_models infra: migrate to uv (#29566) 2025-02-06 13:36:26 -05:00
cross_encoders community[patch]: cross_encoders flatten namespaces (#20183) 2024-04-08 20:50:23 -04:00
data community: Resolve refs recursively when generating openai_fn from OpenAPI spec (#19002) 2024-09-02 13:17:39 -07:00
docstore infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
document_compressors community: add InfinityRerank (#27043) 2024-11-06 17:26:30 -08:00
document_loaders community[minor]: 05 - Refactoring PyPDFium2 parser (#29625) 2025-02-07 21:31:12 -05:00
document_transformers community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
embeddings community: Repair embeddings/llamacpp's embed_query method (#29935) 2025-02-23 19:32:17 +00:00
evaluation infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
examples community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
graph_vectorstores [community]: Render documents to graphviz (#24830) 2024-12-14 02:02:09 +00:00
graphs community: fix issue #29429 in age_graph.py (#29506) 2025-02-01 21:24:45 -05:00
imports community[minor]: Adds a vector store for Azure Cosmos DB for NoSQL (#21676) 2024-06-11 10:34:01 -07:00
indexes community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
llms infra: migrate to uv (#29566) 2025-02-06 13:36:26 -05:00
load core: add sambanova chat models to load module mapping (#29855) 2025-02-20 12:30:50 -05:00
query_constructors community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
retrievers community: add top_k as param to Needle Retriever (#29821) 2025-02-16 08:30:52 -05:00
storage community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
tools (Community): Added API Key for Jina Search API Wrapper (#29622) 2025-02-12 20:12:07 -08:00
utilities Community: Google Books API Tool (#27307) 2024-11-07 15:29:35 -08:00
utils partners: Use simsimd types (#25299) 2024-08-23 10:41:39 -04:00
vectorstores community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
__init__.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00
conftest.py community: Use Blockbuster to detect blocking calls in asyncio during tests (#29609) 2025-02-08 01:10:39 +00:00
test_cache.py community: Use Blockbuster to detect blocking calls in asyncio during tests (#29609) 2025-02-08 01:10:39 +00:00
test_dependencies.py community: Use Blockbuster to detect blocking calls in asyncio during tests (#29609) 2025-02-08 01:10:39 +00:00
test_document_transformers.py infra: update mypy 1.10, ruff 0.5 (#23721) 2024-07-03 10:33:27 -07:00
test_graph_vectorstores.py core, community: move graph vectorstores to community (#26678) 2024-09-19 11:38:14 -07:00
test_imports.py community: Bump ruff version to 0.9 (#29206) 2025-02-08 01:21:10 +00:00
test_sql_database_schema.py infra: add min version testing to pr test flow (#24358) 2024-07-19 22:03:19 +00:00
test_sql_database.py infra: add min version testing to pr test flow (#24358) 2024-07-19 22:03:19 +00:00
test_sqlalchemy.py community[major], core[patch], langchain[patch], experimental[patch]: Create langchain-community (#14463) 2023-12-11 13:53:30 -08:00