mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-06-16 10:25:13 +02:00
Messaging fabric plugins (#592)
* Plugin architecture for messaging fabric * Schemas use a technology neutral expression * Schemas strictness has uncovered some incorrect schema use which is fixed
This commit is contained in:
parent
1865b3f3c8
commit
34eb083836
100 changed files with 2342 additions and 828 deletions
|
|
@ -284,7 +284,7 @@ class SocketFlowInstance:
|
|||
|
||||
def graph_rag(
|
||||
self,
|
||||
question: str,
|
||||
query: str,
|
||||
user: str,
|
||||
collection: str,
|
||||
max_subgraph_size: int = 1000,
|
||||
|
|
@ -295,7 +295,7 @@ class SocketFlowInstance:
|
|||
) -> Union[str, Iterator[str]]:
|
||||
"""Graph RAG with optional streaming"""
|
||||
request = {
|
||||
"question": question,
|
||||
"query": query,
|
||||
"user": user,
|
||||
"collection": collection,
|
||||
"max-subgraph-size": max_subgraph_size,
|
||||
|
|
@ -316,7 +316,7 @@ class SocketFlowInstance:
|
|||
|
||||
def document_rag(
|
||||
self,
|
||||
question: str,
|
||||
query: str,
|
||||
user: str,
|
||||
collection: str,
|
||||
doc_limit: int = 10,
|
||||
|
|
@ -325,7 +325,7 @@ class SocketFlowInstance:
|
|||
) -> Union[str, Iterator[str]]:
|
||||
"""Document RAG with optional streaming"""
|
||||
request = {
|
||||
"question": question,
|
||||
"query": query,
|
||||
"user": user,
|
||||
"collection": collection,
|
||||
"doc-limit": doc_limit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue