trustgraph-base 0.11.18__tar.gz → 0.12.0__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-base-0.11.18 → trustgraph-base-0.12.0}/PKG-INFO +6 -4
- trustgraph-base-0.12.0/trustgraph/base_version.py +1 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/graph_embeddings_client.py +5 -1
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/graph_rag_client.py +5 -2
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/triples_query_client.py +8 -1
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/__init__.py +1 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/documents.py +5 -9
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/graph.py +7 -3
- trustgraph-base-0.12.0/trustgraph/schema/metadata.py +10 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/object.py +3 -3
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/retrieval.py +4 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/PKG-INFO +6 -4
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/SOURCES.txt +1 -0
- trustgraph-base-0.11.18/trustgraph/base_version.py +0 -1
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/README.md +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/setup.cfg +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/setup.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/base/__init__.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/base/base_processor.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/base/consumer.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/base/consumer_producer.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/base/producer.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/__init__.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/base.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/exceptions.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/log_level.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/objects/__init__.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/objects/field.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/objects/object.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/rdf.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/models.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/prompt.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/topic.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/schema/types.py +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/requires.txt +1 -1
- {trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/top_level.txt +0 -0
@@ -1,17 +1,19 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.12.0
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.11.18.tar.gz
|
7
6
|
Author: trustgraph.ai
|
8
7
|
Author-email: security@trustgraph.ai
|
8
|
+
License: UNKNOWN
|
9
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.12.0.tar.gz
|
10
|
+
Platform: UNKNOWN
|
9
11
|
Classifier: Programming Language :: Python :: 3
|
10
12
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
11
13
|
Classifier: Operating System :: OS Independent
|
12
14
|
Requires-Python: >=3.8
|
13
15
|
Description-Content-Type: text/markdown
|
14
|
-
Requires-Dist: pulsar-client
|
15
|
-
Requires-Dist: prometheus-client
|
16
16
|
|
17
17
|
See https://trustgraph.ai/
|
18
|
+
|
19
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.12.0"
|
{trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/graph_embeddings_client.py
RENAMED
@@ -38,8 +38,12 @@ class GraphEmbeddingsClient(BaseClient):
|
|
38
38
|
output_schema=GraphEmbeddingsResponse,
|
39
39
|
)
|
40
40
|
|
41
|
-
def request(
|
41
|
+
def request(
|
42
|
+
self, vectors, user="trustgraph", collection="default",
|
43
|
+
limit=10, timeout=300
|
44
|
+
):
|
42
45
|
return self.call(
|
46
|
+
user=user, collection=collection,
|
43
47
|
vectors=vectors, limit=limit, timeout=timeout
|
44
48
|
).entities
|
45
49
|
|
@@ -38,9 +38,12 @@ class GraphRagClient(BaseClient):
|
|
38
38
|
output_schema=GraphRagResponse,
|
39
39
|
)
|
40
40
|
|
41
|
-
def request(
|
41
|
+
def request(
|
42
|
+
self, query, user="trustgraph", collection="default",
|
43
|
+
timeout=500
|
44
|
+
):
|
42
45
|
|
43
46
|
return self.call(
|
44
|
-
query=query, timeout=timeout
|
47
|
+
user=user, collection=collection, query=query, timeout=timeout
|
45
48
|
).response
|
46
49
|
|
{trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/triples_query_client.py
RENAMED
@@ -48,11 +48,18 @@ class TriplesQueryClient(BaseClient):
|
|
48
48
|
|
49
49
|
return Value(value=ent, is_uri=False)
|
50
50
|
|
51
|
-
def request(
|
51
|
+
def request(
|
52
|
+
self,
|
53
|
+
s, p, o,
|
54
|
+
user="trustgraph", collection="default",
|
55
|
+
limit=10, timeout=60,
|
56
|
+
):
|
52
57
|
return self.call(
|
53
58
|
s=self.create_value(s),
|
54
59
|
p=self.create_value(p),
|
55
60
|
o=self.create_value(o),
|
61
|
+
user=user,
|
62
|
+
collection=collection,
|
56
63
|
limit=limit,
|
57
64
|
timeout=timeout,
|
58
65
|
).triples
|
@@ -2,17 +2,13 @@
|
|
2
2
|
from pulsar.schema import Record, Bytes, String, Boolean, Integer, Array, Double
|
3
3
|
from . topic import topic
|
4
4
|
from . types import Error
|
5
|
-
|
6
|
-
class Source(Record):
|
7
|
-
source = String()
|
8
|
-
id = String()
|
9
|
-
title = String()
|
5
|
+
from . metadata import Metadata
|
10
6
|
|
11
7
|
############################################################################
|
12
8
|
|
13
9
|
# PDF docs etc.
|
14
10
|
class Document(Record):
|
15
|
-
|
11
|
+
metadata = Metadata()
|
16
12
|
data = Bytes()
|
17
13
|
|
18
14
|
document_ingest_queue = topic('document-load')
|
@@ -22,7 +18,7 @@ document_ingest_queue = topic('document-load')
|
|
22
18
|
# Text documents / text from PDF
|
23
19
|
|
24
20
|
class TextDocument(Record):
|
25
|
-
|
21
|
+
metadata = Metadata()
|
26
22
|
text = Bytes()
|
27
23
|
|
28
24
|
text_ingest_queue = topic('text-document-load')
|
@@ -32,7 +28,7 @@ text_ingest_queue = topic('text-document-load')
|
|
32
28
|
# Chunks of text
|
33
29
|
|
34
30
|
class Chunk(Record):
|
35
|
-
|
31
|
+
metadata = Metadata()
|
36
32
|
chunk = Bytes()
|
37
33
|
|
38
34
|
chunk_ingest_queue = topic('chunk-load')
|
@@ -42,7 +38,7 @@ chunk_ingest_queue = topic('chunk-load')
|
|
42
38
|
# Chunk embeddings are an embeddings associated with a text chunk
|
43
39
|
|
44
40
|
class ChunkEmbeddings(Record):
|
45
|
-
|
41
|
+
metadata = Metadata()
|
46
42
|
vectors = Array(Array(Double()))
|
47
43
|
chunk = Bytes()
|
48
44
|
|
@@ -1,16 +1,16 @@
|
|
1
1
|
|
2
2
|
from pulsar.schema import Record, Bytes, String, Boolean, Integer, Array, Double
|
3
3
|
|
4
|
-
from . documents import Source
|
5
4
|
from . types import Error, Value
|
6
5
|
from . topic import topic
|
6
|
+
from . metadata import Metadata
|
7
7
|
|
8
8
|
############################################################################
|
9
9
|
|
10
10
|
# Graph embeddings are embeddings associated with a graph entity
|
11
11
|
|
12
12
|
class GraphEmbeddings(Record):
|
13
|
-
|
13
|
+
metadata = Metadata()
|
14
14
|
vectors = Array(Array(Double()))
|
15
15
|
entity = Value()
|
16
16
|
|
@@ -23,6 +23,8 @@ graph_embeddings_store_queue = topic('graph-embeddings-store')
|
|
23
23
|
class GraphEmbeddingsRequest(Record):
|
24
24
|
vectors = Array(Array(Double()))
|
25
25
|
limit = Integer()
|
26
|
+
user = String()
|
27
|
+
collection = String()
|
26
28
|
|
27
29
|
class GraphEmbeddingsResponse(Record):
|
28
30
|
error = Error()
|
@@ -40,7 +42,7 @@ graph_embeddings_response_queue = topic(
|
|
40
42
|
# Graph triples
|
41
43
|
|
42
44
|
class Triple(Record):
|
43
|
-
|
45
|
+
metadata = Metadata()
|
44
46
|
s = Value()
|
45
47
|
p = Value()
|
46
48
|
o = Value()
|
@@ -56,6 +58,8 @@ class TriplesQueryRequest(Record):
|
|
56
58
|
p = Value()
|
57
59
|
o = Value()
|
58
60
|
limit = Integer()
|
61
|
+
user = String()
|
62
|
+
collection = String()
|
59
63
|
|
60
64
|
class TriplesQueryResponse(Record):
|
61
65
|
error = Error()
|
@@ -2,7 +2,7 @@
|
|
2
2
|
from pulsar.schema import Record, Bytes, String, Boolean, Integer, Array
|
3
3
|
from pulsar.schema import Double, Map
|
4
4
|
|
5
|
-
from .
|
5
|
+
from . metadata import Metadata
|
6
6
|
from . types import Value, RowSchema
|
7
7
|
from . topic import topic
|
8
8
|
|
@@ -12,7 +12,7 @@ from . topic import topic
|
|
12
12
|
# object
|
13
13
|
|
14
14
|
class ObjectEmbeddings(Record):
|
15
|
-
|
15
|
+
metadata = Metadata()
|
16
16
|
vectors = Array(Array(Double()))
|
17
17
|
name = String()
|
18
18
|
key_name = String()
|
@@ -25,7 +25,7 @@ object_embeddings_store_queue = topic('object-embeddings-store')
|
|
25
25
|
# Stores rows of information
|
26
26
|
|
27
27
|
class Rows(Record):
|
28
|
-
|
28
|
+
metadata = Metadata()
|
29
29
|
row_schema = RowSchema()
|
30
30
|
rows = Array(Map(String()))
|
31
31
|
|
@@ -9,6 +9,8 @@ from . types import Error, Value
|
|
9
9
|
|
10
10
|
class GraphRagQuery(Record):
|
11
11
|
query = String()
|
12
|
+
user = String()
|
13
|
+
collection = String()
|
12
14
|
|
13
15
|
class GraphRagResponse(Record):
|
14
16
|
error = Error()
|
@@ -27,6 +29,8 @@ graph_rag_response_queue = topic(
|
|
27
29
|
|
28
30
|
class DocumentRagQuery(Record):
|
29
31
|
query = String()
|
32
|
+
user = String()
|
33
|
+
collection = String()
|
30
34
|
|
31
35
|
class DocumentRagResponse(Record):
|
32
36
|
error = Error()
|
@@ -1,17 +1,19 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.12.0
|
4
4
|
Summary: TrustGraph provides a means to run a pipeline of flexible AI processing components in a flexible means to achieve a processing pipeline.
|
5
5
|
Home-page: https://github.com/trustgraph-ai/trustgraph
|
6
|
-
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.11.18.tar.gz
|
7
6
|
Author: trustgraph.ai
|
8
7
|
Author-email: security@trustgraph.ai
|
8
|
+
License: UNKNOWN
|
9
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.12.0.tar.gz
|
10
|
+
Platform: UNKNOWN
|
9
11
|
Classifier: Programming Language :: Python :: 3
|
10
12
|
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
|
11
13
|
Classifier: Operating System :: OS Independent
|
12
14
|
Requires-Python: >=3.8
|
13
15
|
Description-Content-Type: text/markdown
|
14
|
-
Requires-Dist: pulsar-client
|
15
|
-
Requires-Dist: prometheus-client
|
16
16
|
|
17
17
|
See https://trustgraph.ai/
|
18
|
+
|
19
|
+
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.11.18"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/document_embeddings_client.py
RENAMED
File without changes
|
{trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph/clients/document_rag_client.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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.11.18 → trustgraph-base-0.12.0}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|