Skip to content

Fix HF embeddings tests#967

Merged
cybermaggedon merged 1 commit into
release/v2.5from
fix/hf-embeddings-tests
Jun 1, 2026
Merged

Fix HF embeddings tests#967
cybermaggedon merged 1 commit into
release/v2.5from
fix/hf-embeddings-tests

Conversation

@cybermaggedon

Copy link
Copy Markdown
Contributor

The tests were patching
trustgraph.embeddings.hf.hf.HuggingFaceEmbeddings - a module-level attribute that doesn't exist because HuggingFaceEmbeddings is imported locally inside _load_model. Changed all 8 occurrences to patch langchain_huggingface.HuggingFaceEmbeddings, which is the actual import source the code uses at runtime.

The tests were patching
trustgraph.embeddings.hf.hf.HuggingFaceEmbeddings - a module-level
attribute that doesn't exist because HuggingFaceEmbeddings is
imported locally inside _load_model. Changed all 8 occurrences to
patch langchain_huggingface.HuggingFaceEmbeddings, which is the
actual import source the code uses at runtime.
@cybermaggedon cybermaggedon merged commit 7e1fb76 into release/v2.5 Jun 1, 2026
2 checks passed
@github-actions

github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown

Contributor License Agreement ✅

All contributors have signed the CLA. Thank you!

@cybermaggedon cybermaggedon deleted the fix/hf-embeddings-tests branch June 1, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant