trustgraph-base 0.21.4__tar.gz → 0.21.6__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.21.4 → trustgraph-base-0.21.6}/PKG-INFO +2 -2
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/api/api.py +20 -4
- trustgraph-base-0.21.6/trustgraph/base_version.py +1 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/retrieval.py +5 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph_base.egg-info/PKG-INFO +2 -2
- trustgraph-base-0.21.4/trustgraph/base_version.py +0 -1
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/README.md +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/setup.cfg +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/setup.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/api/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/base_processor.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/consumer.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/consumer_producer.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/producer.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/publisher.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/base/subscriber.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/agent_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/base.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/document_embeddings_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/document_rag_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/embeddings_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/graph_embeddings_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/graph_rag_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/llm_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/prompt_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/triples_query_client.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/exceptions.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/defs.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/document.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/identifier.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/organization.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/knowledge/publication.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/log_level.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/objects/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/objects/field.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/objects/object.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/rdf.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/__init__.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/agent.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/documents.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/graph.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/library.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/lookup.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/metadata.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/models.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/object.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/prompt.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/topic.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/schema/types.py +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph_base.egg-info/SOURCES.txt +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph_base.egg-info/dependency_links.txt +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph_base.egg-info/requires.txt +0 -0
- {trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/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.21.
|
3
|
+
Version: 0.21.6
|
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.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.6.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -102,11 +102,21 @@ class Api:
|
|
102
102
|
except:
|
103
103
|
raise ProtocolException(f"Response not formatted correctly")
|
104
104
|
|
105
|
-
def graph_rag(
|
105
|
+
def graph_rag(
|
106
|
+
self, question, user="trustgraph", collection="default",
|
107
|
+
entity_limit=50, triple_limit=30, max_subgraph_size=150,
|
108
|
+
max_path_length=2,
|
109
|
+
):
|
106
110
|
|
107
111
|
# The input consists of a question
|
108
112
|
input = {
|
109
|
-
"query": question
|
113
|
+
"query": question,
|
114
|
+
"user": user,
|
115
|
+
"collection": collection,
|
116
|
+
"entity-limit": entity_limit,
|
117
|
+
"triple-limit": triple_limit,
|
118
|
+
"max-subgraph-size": max_subgraph_size,
|
119
|
+
"max-path-length": max_path_length,
|
110
120
|
}
|
111
121
|
|
112
122
|
url = f"{self.url}graph-rag"
|
@@ -131,11 +141,17 @@ class Api:
|
|
131
141
|
except:
|
132
142
|
raise ProtocolException(f"Response not formatted correctly")
|
133
143
|
|
134
|
-
def document_rag(
|
144
|
+
def document_rag(
|
145
|
+
self, question, user="trustgraph", collection="default",
|
146
|
+
doc_limit=10,
|
147
|
+
):
|
135
148
|
|
136
149
|
# The input consists of a question
|
137
150
|
input = {
|
138
|
-
"query": question
|
151
|
+
"query": question,
|
152
|
+
"user": user,
|
153
|
+
"collection": collection,
|
154
|
+
"doc-limit": doc_limit,
|
139
155
|
}
|
140
156
|
|
141
157
|
url = f"{self.url}document-rag"
|
@@ -0,0 +1 @@
|
|
1
|
+
__version__ = "0.21.6"
|
@@ -11,6 +11,10 @@ class GraphRagQuery(Record):
|
|
11
11
|
query = String()
|
12
12
|
user = String()
|
13
13
|
collection = String()
|
14
|
+
entity_limit = Integer()
|
15
|
+
triple_limit = Integer()
|
16
|
+
max_subgraph_size = Integer()
|
17
|
+
max_path_length = Integer()
|
14
18
|
|
15
19
|
class GraphRagResponse(Record):
|
16
20
|
error = Error()
|
@@ -31,6 +35,7 @@ class DocumentRagQuery(Record):
|
|
31
35
|
query = String()
|
32
36
|
user = String()
|
33
37
|
collection = String()
|
38
|
+
doc_limit = Integer()
|
34
39
|
|
35
40
|
class DocumentRagResponse(Record):
|
36
41
|
error = Error()
|
@@ -1,9 +1,9 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: trustgraph-base
|
3
|
-
Version: 0.21.
|
3
|
+
Version: 0.21.6
|
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.21.
|
6
|
+
Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.21.6.tar.gz
|
7
7
|
Author: trustgraph.ai
|
8
8
|
Author-email: security@trustgraph.ai
|
9
9
|
Classifier: Programming Language :: Python :: 3
|
@@ -1 +0,0 @@
|
|
1
|
-
__version__ = "0.21.4"
|
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.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/document_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/trustgraph/clients/graph_embeddings_client.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{trustgraph-base-0.21.4 → trustgraph-base-0.21.6}/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.21.4 → trustgraph-base-0.21.6}/trustgraph_base.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|