trustgraph-embeddings-hf 1.2.3__tar.gz → 1.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/PKG-INFO +1 -1
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/hf/hf.py +6 -2
- trustgraph_embeddings_hf-1.2.4/trustgraph/embeddings_hf_version.py +1 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/PKG-INFO +1 -1
- trustgraph_embeddings_hf-1.2.3/trustgraph/embeddings_hf_version.py +0 -1
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/README.md +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/pyproject.toml +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/setup.cfg +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/__init__.py +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/__init__.py +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/hf/__init__.py +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/hf/__main__.py +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/SOURCES.txt +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/dependency_links.txt +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/entry_points.txt +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/requires.txt +0 -0
- {trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph_embeddings_hf.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: trustgraph-embeddings-hf
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.4
|
4
4
|
Summary: HuggingFace embeddings support for TrustGraph.
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
{trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/hf/hf.py
RENAMED
@@ -4,10 +4,14 @@ Embeddings service, applies an embeddings model selected from HuggingFace.
|
|
4
4
|
Input is text, output is embeddings vector.
|
5
5
|
"""
|
6
6
|
|
7
|
+
import logging
|
7
8
|
from ... base import EmbeddingsService
|
8
9
|
|
9
10
|
from langchain_huggingface import HuggingFaceEmbeddings
|
10
11
|
|
12
|
+
# Module logger
|
13
|
+
logger = logging.getLogger(__name__)
|
14
|
+
|
11
15
|
default_ident = "embeddings"
|
12
16
|
|
13
17
|
default_model="all-MiniLM-L6-v2"
|
@@ -22,13 +26,13 @@ class Processor(EmbeddingsService):
|
|
22
26
|
**params | { "model": model }
|
23
27
|
)
|
24
28
|
|
25
|
-
|
29
|
+
logger.info(f"Loading HuggingFace embeddings model: {model}")
|
26
30
|
self.embeddings = HuggingFaceEmbeddings(model_name=model)
|
27
31
|
|
28
32
|
async def on_embeddings(self, text):
|
29
33
|
|
30
34
|
embeds = self.embeddings.embed_documents([text])
|
31
|
-
|
35
|
+
logger.debug("Embeddings generation complete")
|
32
36
|
return embeds
|
33
37
|
|
34
38
|
@staticmethod
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "1.2.4"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: trustgraph-embeddings-hf
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.4
|
4
4
|
Summary: HuggingFace embeddings support for TrustGraph.
|
5
5
|
Author-email: "trustgraph.ai" <security@trustgraph.ai>
|
6
6
|
Project-URL: Homepage, https://github.com/trustgraph-ai/trustgraph
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "1.2.3"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph_embeddings_hf-1.2.3 → trustgraph_embeddings_hf-1.2.4}/trustgraph/embeddings/__init__.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|