mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-20 02:31:02 +02:00
Make schema changes
This commit is contained in:
parent
9942f63773
commit
61a3e45e70
2 changed files with 13 additions and 7 deletions
|
|
@ -37,12 +37,15 @@ chunk_ingest_queue = topic('chunk-load')
|
||||||
|
|
||||||
# Chunk embeddings are an embeddings associated with a text chunk
|
# Chunk embeddings are an embeddings associated with a text chunk
|
||||||
|
|
||||||
class ChunkEmbeddings(Record):
|
class EntityContext(Record):
|
||||||
metadata = Metadata()
|
entity = Value()
|
||||||
vectors = Array(Array(Double()))
|
context = String()
|
||||||
chunk = Bytes()
|
|
||||||
|
|
||||||
chunk_embeddings_ingest_queue = topic('chunk-embeddings-load')
|
class EntityContexts(Record):
|
||||||
|
metadata = Metadata()
|
||||||
|
entities = Array(EntityContext())
|
||||||
|
|
||||||
|
entity_contexts_ingest_queue = topic('entity-contexts-load')
|
||||||
|
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,13 @@ from . metadata import Metadata
|
||||||
|
|
||||||
# Graph embeddings are embeddings associated with a graph entity
|
# Graph embeddings are embeddings associated with a graph entity
|
||||||
|
|
||||||
|
class EntityEmbeddings(Record):
|
||||||
|
entity = Value()
|
||||||
|
vectors = Array(Array(Double()))
|
||||||
|
|
||||||
class GraphEmbeddings(Record):
|
class GraphEmbeddings(Record):
|
||||||
metadata = Metadata()
|
metadata = Metadata()
|
||||||
vectors = Array(Array(Double()))
|
entities = Array(EntityEmbeddings())
|
||||||
entity = Value()
|
|
||||||
|
|
||||||
graph_embeddings_store_queue = topic('graph-embeddings-store')
|
graph_embeddings_store_queue = topic('graph-embeddings-store')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue