trustgraph-base 0.23.13__tar.gz → 0.23.15__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.23.13 → trustgraph-base-0.23.15}/PKG-INFO +2 -2
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/api.py +4 -0
- trustgraph-base-0.23.15/trustgraph/api/knowledge.py +41 -0
- trustgraph-base-0.23.15/trustgraph/base_version.py +1 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/__init__.py +1 -0
- trustgraph-base-0.23.15/trustgraph/schema/knowledge.py +49 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/library.py +0 -11
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/PKG-INFO +2 -2
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/SOURCES.txt +2 -0
- trustgraph-base-0.23.13/trustgraph/base_version.py +0 -1
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/README.md +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/setup.cfg +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/setup.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/__init__.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/config.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/exceptions.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/flow.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/library.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/api/types.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/__init__.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/agent_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/agent_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/async_processor.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/consumer.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/consumer_spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/document_embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/document_embeddings_query_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/document_embeddings_store_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/embeddings_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/flow.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/flow_processor.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/graph_embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/graph_embeddings_query_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/graph_embeddings_store_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/graph_rag_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/llm_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/metrics.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/producer.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/producer_spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/prompt_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/publisher.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/pubsub.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/request_response_spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/setting_spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/subscriber.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/subscriber_spec.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/text_completion_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/triples_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/triples_query_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/triples_store_service.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/__init__.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/base.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/config_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/exceptions.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/document.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/log_level.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/objects/__init__.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/objects/field.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/objects/object.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/rdf.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/agent.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/config.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/documents.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/flows.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/graph.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/lookup.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/metadata.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/models.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/object.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/prompt.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/retrieval.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/topic.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/schema/types.py +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/top_level.txt +0 -0
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.23.
|
3
|
+
Version: 0.23.15
|
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.23.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.15.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -7,6 +7,7 @@ import time
|
|
7
7
|
from . library import Library
|
8
8
|
from . flow import Flow
|
9
9
|
from . config import Config
|
10
|
+
from . knowledge import Knowledge
|
10
11
|
from . exceptions import *
|
11
12
|
from . types import *
|
12
13
|
|
@@ -39,6 +40,9 @@ class Api:
|
|
39
40
|
def config(self):
|
40
41
|
return Config(api=self)
|
41
42
|
|
43
|
+
def knowledge(self):
|
44
|
+
return Knowledge(api=self)
|
45
|
+
|
42
46
|
def request(self, path, request):
|
43
47
|
|
44
48
|
url = f"{self.url}{path}"
|
@@ -0,0 +1,41 @@
|
|
1
|
+
|
2
|
+
import json
|
3
|
+
import base64
|
4
|
+
|
5
|
+
from .. knowledge import hash, Uri, Literal
|
6
|
+
from . types import Triple
|
7
|
+
|
8
|
+
def to_value(x):
|
9
|
+
if x["e"]: return Uri(x["v"])
|
10
|
+
return Literal(x["v"])
|
11
|
+
|
12
|
+
class Knowledge:
|
13
|
+
|
14
|
+
def __init__(self, api):
|
15
|
+
self.api = api
|
16
|
+
|
17
|
+
def request(self, request):
|
18
|
+
|
19
|
+
return self.api.request(f"knowledge", request)
|
20
|
+
|
21
|
+
def list_kg_cores(self, user="trustgraph"):
|
22
|
+
|
23
|
+
# The input consists of system and prompt strings
|
24
|
+
input = {
|
25
|
+
"operation": "list-kg-cores",
|
26
|
+
"user": user,
|
27
|
+
}
|
28
|
+
|
29
|
+
return self.request(request = input)["ids"]
|
30
|
+
|
31
|
+
def delete_kg_core(self, id, user="trustgraph"):
|
32
|
+
|
33
|
+
# The input consists of system and prompt strings
|
34
|
+
input = {
|
35
|
+
"operation": "delete-kg-core",
|
36
|
+
"user": user,
|
37
|
+
"id": id,
|
38
|
+
}
|
39
|
+
|
40
|
+
self.request(request = input)
|
41
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.23.15"
|
@@ -0,0 +1,49 @@
|
|
1
|
+
|
2
|
+
from pulsar.schema import Record, Bytes, String, Array, Long, Boolean
|
3
|
+
from . types import Triple
|
4
|
+
from . topic import topic
|
5
|
+
from . types import Error
|
6
|
+
from . metadata import Metadata
|
7
|
+
from . documents import Document, TextDocument
|
8
|
+
from . graph import Triples, GraphEmbeddings
|
9
|
+
|
10
|
+
# fetch-kg-core
|
11
|
+
# -> (???)
|
12
|
+
# <- ()
|
13
|
+
# <- (error)
|
14
|
+
|
15
|
+
# delete-kg-core
|
16
|
+
# -> (???)
|
17
|
+
# <- ()
|
18
|
+
# <- (error)
|
19
|
+
|
20
|
+
# list-kg-cores
|
21
|
+
# -> (user)
|
22
|
+
# <- ()
|
23
|
+
# <- (error)
|
24
|
+
|
25
|
+
class KnowledgeRequest(Record):
|
26
|
+
|
27
|
+
# fetch-kg-core, delete-kg-core, list-kg-cores
|
28
|
+
operation = String()
|
29
|
+
|
30
|
+
# list-kg-cores, delete-kg-core
|
31
|
+
user = String()
|
32
|
+
|
33
|
+
# fetch-kg-core, list-kg-cores, delete-kg-core
|
34
|
+
id = String()
|
35
|
+
|
36
|
+
class KnowledgeResponse(Record):
|
37
|
+
error = Error()
|
38
|
+
ids = Array(String())
|
39
|
+
eos = Boolean() # Indicates end of knowledge core stream
|
40
|
+
triples = Triples()
|
41
|
+
graph_embeddings = GraphEmbeddings()
|
42
|
+
|
43
|
+
knowledge_request_queue = topic(
|
44
|
+
'knowledge', kind='non-persistent', namespace='request'
|
45
|
+
)
|
46
|
+
knowledge_response_queue = topic(
|
47
|
+
'knowledge', kind='non-persistent', namespace='response',
|
48
|
+
)
|
49
|
+
|
@@ -51,17 +51,6 @@ from . documents import Document, TextDocument
|
|
51
51
|
# <- (processing_metadata[])
|
52
52
|
# <- (error)
|
53
53
|
|
54
|
-
# OLD:
|
55
|
-
# add(Metadata, Bytes) : error?
|
56
|
-
# copy(id, user, collection)
|
57
|
-
# move(id, user, collection)
|
58
|
-
# delete(id)
|
59
|
-
# get(id) : Bytes
|
60
|
-
# reindex(id)
|
61
|
-
# list(user, collection) : id[]
|
62
|
-
# info(id[]) : DocumentInfo[]
|
63
|
-
# search(<key,op,value>[]) : id[]
|
64
|
-
|
65
54
|
class DocumentMetadata(Record):
|
66
55
|
id = String()
|
67
56
|
time = Long()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.23.
|
3
|
+
Version: 0.23.15
|
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.23.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.15.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -9,6 +9,7 @@ trustgraph/api/api.py
|
|
9
9
|
trustgraph/api/config.py
|
10
10
|
trustgraph/api/exceptions.py
|
11
11
|
trustgraph/api/flow.py
|
12
|
+
trustgraph/api/knowledge.py
|
12
13
|
trustgraph/api/library.py
|
13
14
|
trustgraph/api/types.py
|
14
15
|
trustgraph/base/__init__.py
|
@@ -71,6 +72,7 @@ trustgraph/schema/config.py
|
|
71
72
|
trustgraph/schema/documents.py
|
72
73
|
trustgraph/schema/flows.py
|
73
74
|
trustgraph/schema/graph.py
|
75
|
+
trustgraph/schema/knowledge.py
|
74
76
|
trustgraph/schema/library.py
|
75
77
|
trustgraph/schema/lookup.py
|
76
78
|
trustgraph/schema/metadata.py
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.23.13"
|
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
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/document_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/graph_embeddings_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
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/request_response_spec.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/text_completion_client.py
RENAMED
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/triples_query_service.py
RENAMED
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/base/triples_store_service.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/document_embeddings_client.py
RENAMED
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/document_rag_client.py
RENAMED
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/graph_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.23.13 → trustgraph-base-0.23.15}/trustgraph/clients/triples_query_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
|
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.23.13 → trustgraph-base-0.23.15}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|