mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-21 11:11:03 +02:00
Fix some typos
This commit is contained in:
parent
9ec76a0bd1
commit
793f986b06
5 changed files with 11 additions and 7 deletions
|
|
@ -83,7 +83,8 @@ class Consumer:
|
|||
topic = self.topic,
|
||||
subscription_name = self.subscriber,
|
||||
schema = JsonSchema(self.schema),
|
||||
initial_position = pos
|
||||
initial_position = pos,
|
||||
consumer_type = pulsar.ConsumerType.Shared,
|
||||
)
|
||||
|
||||
except Exception as e:
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class ConsumerSpec(Spec):
|
|||
flow = flow,
|
||||
client = processor.client,
|
||||
topic = definition[self.name],
|
||||
subscriber = flow.id,
|
||||
subscriber = flow.id + "---" + self.name,
|
||||
schema = self.schema,
|
||||
handler = self.handler,
|
||||
metrics = consumer_metrics,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,8 @@ class Processor(DocumentEmbeddingsStoreService):
|
|||
|
||||
dim = len(vec)
|
||||
collection = (
|
||||
"d_" + message.metadata.user + "_" + message.metadata.collection + "_" +
|
||||
"d_" + message.metadata.user + "_" +
|
||||
message.metadata.collection + "_" +
|
||||
str(dim)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -68,7 +68,7 @@ class Processor(GraphEmbeddingsStoreService):
|
|||
dim = len(vec)
|
||||
|
||||
collection = self.get_collection(
|
||||
dim, v.metadata.user, v.metadata.collection
|
||||
dim, message.metadata.user, message.metadata.collection
|
||||
)
|
||||
|
||||
self.qdrant.upsert(
|
||||
|
|
|
|||
|
|
@ -50,13 +50,15 @@ class Processor(TriplesStoreService):
|
|||
if self.username and self.password:
|
||||
self.tg = TrustGraph(
|
||||
hosts=self.graph_host,
|
||||
keyspace=v.metadata.user, table=v.metadata.collection,
|
||||
keyspace=message.metadata.user,
|
||||
table=message.metadata.collection,
|
||||
username=self.username, password=self.password
|
||||
)
|
||||
else:
|
||||
self.tg = TrustGraph(
|
||||
hosts=self.graph_host,
|
||||
keyspace=v.metadata.user, table=v.metadata.collection,
|
||||
keyspace=message.metadata.user,
|
||||
table=message.metadata.collection,
|
||||
)
|
||||
except Exception as e:
|
||||
print("Exception", e, flush=True)
|
||||
|
|
@ -65,7 +67,7 @@ class Processor(TriplesStoreService):
|
|||
|
||||
self.table = table
|
||||
|
||||
for t in v.triples:
|
||||
for t in message.triples:
|
||||
self.tg.insert(
|
||||
t.s.value,
|
||||
t.p.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue