mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41:02 +02:00
Structure query processor to be runnable
This commit is contained in:
parent
818dcb31f4
commit
c9c8d50871
4 changed files with 9 additions and 5 deletions
|
|
@ -88,12 +88,12 @@ librarian = "trustgraph.librarian:run"
|
|||
mcp-tool = "trustgraph.agent.mcp_tool:run"
|
||||
metering = "trustgraph.metering:run"
|
||||
objects-write-cassandra = "trustgraph.storage.objects.cassandra:run"
|
||||
objects-query-cassandra = "trustgraph.query.objects.cassandra:run"
|
||||
oe-write-milvus = "trustgraph.storage.object_embeddings.milvus:run"
|
||||
pdf-decoder = "trustgraph.decoding.pdf:run"
|
||||
pdf-ocr-mistral = "trustgraph.decoding.mistral_ocr:run"
|
||||
prompt-template = "trustgraph.prompt.template:run"
|
||||
rev-gateway = "trustgraph.rev_gateway:run"
|
||||
rows-write-cassandra = "trustgraph.storage.rows.cassandra:run"
|
||||
run-processing = "trustgraph.processing:run"
|
||||
text-completion-azure = "trustgraph.model.text_completion.azure:run"
|
||||
text-completion-azure-openai = "trustgraph.model.text_completion.azure_openai:run"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
from . service import *
|
||||
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
from . service import run
|
||||
|
||||
run()
|
||||
run()
|
||||
|
||||
|
|
|
|||
|
|
@ -243,11 +243,11 @@ class Processor(FlowProcessor):
|
|||
# Create resolver function for this schema
|
||||
def make_resolver(schema_name, row_schema, graphql_type):
|
||||
async def resolver(
|
||||
self_query,
|
||||
self_query: Any,
|
||||
info: Info,
|
||||
collection: str,
|
||||
limit: Optional[int] = 100,
|
||||
**filters
|
||||
**filters: Any
|
||||
) -> List[Any]:
|
||||
# Get the processor instance from context
|
||||
processor = info.context["processor"]
|
||||
|
|
@ -507,4 +507,5 @@ class Processor(FlowProcessor):
|
|||
|
||||
def run():
|
||||
"""Entry point for objects-query-graphql-cassandra command"""
|
||||
Processor.launch(default_ident, __doc__)
|
||||
Processor.launch(default_ident, __doc__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue