mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-05-05 21:32:37 +02:00
Flow management API + various flow management commands trustgraph-cli/scripts/tg-delete-flow-class trustgraph-cli/scripts/tg-get-flow-class trustgraph-cli/scripts/tg-put-flow-class trustgraph-cli/scripts/tg-show-flow-classes trustgraph-cli/scripts/tg-show-flows trustgraph-cli/scripts/tg-start-flow trustgraph-cli/scripts/tg-stop-flow
31 lines
746 B
Python
31 lines
746 B
Python
|
|
from pulsar.schema import Record, Bytes, String, Boolean, Integer, Array
|
|
from pulsar.schema import Double, Map
|
|
|
|
from . metadata import Metadata
|
|
from . types import Value, RowSchema
|
|
from . topic import topic
|
|
|
|
############################################################################
|
|
|
|
# Object embeddings are embeddings associated with the primary key of an
|
|
# object
|
|
|
|
class ObjectEmbeddings(Record):
|
|
metadata = Metadata()
|
|
vectors = Array(Array(Double()))
|
|
name = String()
|
|
key_name = String()
|
|
id = String()
|
|
|
|
############################################################################
|
|
|
|
# Stores rows of information
|
|
|
|
class Rows(Record):
|
|
metadata = Metadata()
|
|
row_schema = RowSchema()
|
|
rows = Array(Map(String()))
|
|
|
|
|
|
|