mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-06 03:42:11 +02:00
Add schema for querying graph embeddings
This commit is contained in:
parent
697214635b
commit
fc713057e3
1 changed files with 17 additions and 0 deletions
|
|
@ -71,6 +71,23 @@ graph_embeddings_store_queue = topic('graph-embeddings-store')
|
|||
|
||||
############################################################################
|
||||
|
||||
# Graph embeddings query
|
||||
|
||||
class GraphEmbeddingsQueryRequest(Record):
|
||||
vectors = Array(Array(Double()))
|
||||
|
||||
class GraphEmbeddingsQueryResponse(Record):
|
||||
vectors = Array(Value())
|
||||
|
||||
graph_embeddings_request_queue = topic(
|
||||
'graph-embeddings', kind='non-persistent', namespace='request'
|
||||
)
|
||||
graph_embeddings_response_queue = topic(
|
||||
'graph-embeddings-response', kind='non-persistent', namespace='response',
|
||||
)
|
||||
|
||||
############################################################################
|
||||
|
||||
# Graph triples
|
||||
|
||||
class Triple(Record):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue