mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-17 17:21:02 +02:00
Fix extraction bugs
This commit is contained in:
parent
c05ad5c215
commit
a8408f2c74
2 changed files with 4 additions and 4 deletions
|
|
@ -150,7 +150,7 @@ class Processor(FlowProcessor):
|
|||
o=Value(value=str(p), is_uri=False)
|
||||
))
|
||||
|
||||
if rel["o_entity"]:
|
||||
if rel["object-entity"]:
|
||||
# Label for o
|
||||
triples.append(Triple(
|
||||
s=o_value,
|
||||
|
|
@ -165,7 +165,7 @@ class Processor(FlowProcessor):
|
|||
o=Value(value=v.metadata.id, is_uri=True)
|
||||
))
|
||||
|
||||
if rel["o_entity"]:
|
||||
if rel["object-entity"]:
|
||||
# 'Subject of' for o
|
||||
triples.append(Triple(
|
||||
s=o_value,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ from .... schema import PromptRequest, PromptResponse, Error
|
|||
from .... schema import TextCompletionRequest, TextCompletionResponse
|
||||
|
||||
from .... base import FlowProcessor
|
||||
from .... base import ProducerSpec, ConsumerSpec, TextCompletionSpec
|
||||
from .... base import ProducerSpec, ConsumerSpec, TextCompletionClientSpec
|
||||
|
||||
from . prompt_manager import PromptConfiguration, Prompt, PromptManager
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ class Processor(FlowProcessor):
|
|||
)
|
||||
|
||||
self.register_specification(
|
||||
TextCompletionSpec(
|
||||
TextCompletionClientSpec(
|
||||
request_name = "text-completion-request",
|
||||
response_name = "text-completion-response",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue