trustgraph-base 0.23.7__tar.gz → 0.23.9__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.
Files changed (86) hide show
  1. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/PKG-INFO +2 -2
  2. trustgraph-base-0.23.9/trustgraph/base_version.py +1 -0
  3. trustgraph-base-0.23.9/trustgraph/schema/library.py +134 -0
  4. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph_base.egg-info/PKG-INFO +2 -2
  5. trustgraph-base-0.23.7/trustgraph/base_version.py +0 -1
  6. trustgraph-base-0.23.7/trustgraph/schema/library.py +0 -74
  7. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/README.md +0 -0
  8. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/setup.cfg +0 -0
  9. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/setup.py +0 -0
  10. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/api/__init__.py +0 -0
  11. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/api/api.py +0 -0
  12. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/__init__.py +0 -0
  13. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/agent_client.py +0 -0
  14. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/agent_service.py +0 -0
  15. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/async_processor.py +0 -0
  16. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/consumer.py +0 -0
  17. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/consumer_spec.py +0 -0
  18. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/document_embeddings_client.py +0 -0
  19. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/document_embeddings_query_service.py +0 -0
  20. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/document_embeddings_store_service.py +0 -0
  21. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/embeddings_client.py +0 -0
  22. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/embeddings_service.py +0 -0
  23. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/flow.py +0 -0
  24. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/flow_processor.py +0 -0
  25. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/graph_embeddings_client.py +0 -0
  26. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/graph_embeddings_query_service.py +0 -0
  27. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/graph_embeddings_store_service.py +0 -0
  28. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/graph_rag_client.py +0 -0
  29. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/llm_service.py +0 -0
  30. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/metrics.py +0 -0
  31. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/producer.py +0 -0
  32. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/producer_spec.py +0 -0
  33. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/prompt_client.py +0 -0
  34. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/publisher.py +0 -0
  35. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/pubsub.py +0 -0
  36. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/request_response_spec.py +0 -0
  37. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/setting_spec.py +0 -0
  38. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/spec.py +0 -0
  39. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/subscriber.py +0 -0
  40. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/subscriber_spec.py +0 -0
  41. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/text_completion_client.py +0 -0
  42. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/triples_client.py +0 -0
  43. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/triples_query_service.py +0 -0
  44. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/base/triples_store_service.py +0 -0
  45. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/__init__.py +0 -0
  46. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/agent_client.py +0 -0
  47. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/base.py +0 -0
  48. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/config_client.py +0 -0
  49. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/document_embeddings_client.py +0 -0
  50. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/document_rag_client.py +0 -0
  51. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/embeddings_client.py +0 -0
  52. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/graph_embeddings_client.py +0 -0
  53. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/graph_rag_client.py +0 -0
  54. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/llm_client.py +0 -0
  55. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/prompt_client.py +0 -0
  56. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/clients/triples_query_client.py +0 -0
  57. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/exceptions.py +0 -0
  58. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/__init__.py +0 -0
  59. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/defs.py +0 -0
  60. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/document.py +0 -0
  61. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/identifier.py +0 -0
  62. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/organization.py +0 -0
  63. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/knowledge/publication.py +0 -0
  64. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/log_level.py +0 -0
  65. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/objects/__init__.py +0 -0
  66. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/objects/field.py +0 -0
  67. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/objects/object.py +0 -0
  68. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/rdf.py +0 -0
  69. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/__init__.py +0 -0
  70. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/agent.py +0 -0
  71. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/config.py +0 -0
  72. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/documents.py +0 -0
  73. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/flows.py +0 -0
  74. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/graph.py +0 -0
  75. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/lookup.py +0 -0
  76. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/metadata.py +0 -0
  77. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/models.py +0 -0
  78. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/object.py +0 -0
  79. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/prompt.py +0 -0
  80. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/retrieval.py +0 -0
  81. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/topic.py +0 -0
  82. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph/schema/types.py +0 -0
  83. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph_base.egg-info/SOURCES.txt +0 -0
  84. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph_base.egg-info/dependency_links.txt +0 -0
  85. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/trustgraph_base.egg-info/requires.txt +0 -0
  86. {trustgraph-base-0.23.7 → trustgraph-base-0.23.9}/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.7
3
+ Version: 0.23.9
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.7.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.9.tar.gz
7
7
  Author: trustgraph.ai
8
8
  Author-email: security@trustgraph.ai
9
9
  Classifier: Programming Language :: Python :: 3
@@ -0,0 +1 @@
1
+ __version__ = "0.23.9"
@@ -0,0 +1,134 @@
1
+
2
+ from pulsar.schema import Record, Bytes, String, Array, Long
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
+
9
+ # add-document
10
+ # -> (document_id, document_metadata, content)
11
+ # <- ()
12
+ # <- (error)
13
+
14
+ # remove-document
15
+ # -> (document_id)
16
+ # <- ()
17
+ # <- (error)
18
+
19
+ # update-document
20
+ # -> (document_id, document_metadata)
21
+ # <- ()
22
+ # <- (error)
23
+
24
+ # get-document-metadata
25
+ # -> (document_id)
26
+ # <- (document_metadata)
27
+ # <- (error)
28
+
29
+ # get-document-content
30
+ # -> (document_id)
31
+ # <- (content)
32
+ # <- (error)
33
+
34
+ # add-processing
35
+ # -> (processing_id, processing_metadata)
36
+ # <- ()
37
+ # <- (error)
38
+
39
+ # remove-processing
40
+ # -> (processing_id)
41
+ # <- ()
42
+ # <- (error)
43
+
44
+ # list-documents
45
+ # -> (user, collection?)
46
+ # <- (document_metadata[])
47
+ # <- (error)
48
+
49
+ # list-processing
50
+ # -> (user, collection?)
51
+ # <- (processing_metadata[])
52
+ # <- (error)
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
+ class DocumentMetadata(Record):
66
+ id = String()
67
+ time = Long()
68
+ kind = String()
69
+ title = String()
70
+ comments = String()
71
+ metadata = Array(Triple())
72
+ user = String()
73
+ tags = Array(String())
74
+
75
+ class ProcessingMetadata(Record):
76
+ id = String()
77
+ document_id = String()
78
+ time = Long()
79
+ flow = String()
80
+ user = String()
81
+ collection = String()
82
+ tags = Array(String())
83
+
84
+ class Criteria(Record):
85
+ key = String()
86
+ value = String()
87
+ operator = String()
88
+
89
+ class LibrarianRequest(Record):
90
+
91
+ # add-document, remove-document, update-document, get-document-metadata,
92
+ # get-document-content, add-processing, remove-processing, list-documents,
93
+ # list-processing
94
+ operation = String()
95
+
96
+ # add-document, remove-document, update-document, get-document-metadata,
97
+ # get-document-content
98
+ document_id = String()
99
+
100
+ # add-processing, remove-processing
101
+ processing_id = String()
102
+
103
+ # add-document, update-document
104
+ document_metadata = DocumentMetadata()
105
+
106
+ # add-processing
107
+ processing_metadata = ProcessingMetadata()
108
+
109
+ # add-document
110
+ content = Bytes()
111
+
112
+ # list-documents, list-processing
113
+ user = String()
114
+
115
+ # list-documents?, list-processing?
116
+ collection = String()
117
+
118
+ #
119
+ criteria = Array(Criteria())
120
+
121
+ class LibrarianResponse(Record):
122
+ error = Error()
123
+ document_metadata = DocumentMetadata()
124
+ content = Bytes()
125
+ document_metadatas = Array(DocumentMetadata())
126
+ processing_metadatas = Array(ProcessingMetadata())
127
+
128
+ librarian_request_queue = topic(
129
+ 'librarian', kind='non-persistent', namespace='request'
130
+ )
131
+ librarian_response_queue = topic(
132
+ 'librarian', kind='non-persistent', namespace='response',
133
+ )
134
+
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: trustgraph-base
3
- Version: 0.23.7
3
+ Version: 0.23.9
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.7.tar.gz
6
+ Download-URL: https://github.com/trustgraph-ai/trustgraph/archive/refs/tags/v0.23.9.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.23.7"
@@ -1,74 +0,0 @@
1
-
2
- from pulsar.schema import Record, Bytes, String, Array, Long
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
-
9
- # add
10
- # -> (id, document)
11
- # <- ()
12
- # <- (error)
13
-
14
- # list
15
- # -> (user, collection?)
16
- # <- (info)
17
- # <- (error)
18
-
19
- # add(Metadata, Bytes) : error?
20
- # copy(id, user, collection)
21
- # move(id, user, collection)
22
- # delete(id)
23
- # get(id) : Bytes
24
- # reindex(id)
25
- # list(user, collection) : id[]
26
- # info(id[]) : DocumentInfo[]
27
- # search(<key,op,value>[]) : id[]
28
-
29
- class DocumentPackage(Record):
30
- id = String()
31
- document = Bytes()
32
- kind = String()
33
- user = String()
34
- collection = String()
35
- title = String()
36
- comments = String()
37
- time = Long()
38
- metadata = Array(Triple())
39
-
40
- class DocumentInfo(Record):
41
- id = String()
42
- kind = String()
43
- user = String()
44
- collection = String()
45
- title = String()
46
- comments = String()
47
- time = Long()
48
- metadata = Array(Triple())
49
-
50
- class Criteria(Record):
51
- key = String()
52
- value = String()
53
- operator = String()
54
-
55
- class LibrarianRequest(Record):
56
- operation = String()
57
- id = String()
58
- document = DocumentPackage()
59
- user = String()
60
- collection = String()
61
- criteria = Array(Criteria())
62
-
63
- class LibrarianResponse(Record):
64
- error = Error()
65
- document = DocumentPackage()
66
- info = Array(DocumentInfo())
67
-
68
- librarian_request_queue = topic(
69
- 'librarian', kind='non-persistent', namespace='request'
70
- )
71
- librarian_response_queue = topic(
72
- 'librarian', kind='non-persistent', namespace='response',
73
- )
74
-