Streaming rag responses (#568)

* Tech spec for streaming RAG

* Support for streaming Graph/Doc RAG
This commit is contained in:
cybermaggedon 2025-11-26 19:47:39 +00:00 committed by GitHub
parent b1cc724f7d
commit 1948edaa50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
20 changed files with 3087 additions and 94 deletions

29
tests/utils/__init__.py Normal file
View file

@ -0,0 +1,29 @@
"""Test utilities for TrustGraph tests"""
from .streaming_assertions import (
assert_streaming_chunks_valid,
assert_streaming_sequence,
assert_agent_streaming_chunks,
assert_rag_streaming_chunks,
assert_streaming_completion,
assert_streaming_content_matches,
assert_no_empty_chunks,
assert_streaming_error_handled,
assert_chunk_types_valid,
assert_streaming_latency_acceptable,
assert_callback_invoked,
)
__all__ = [
"assert_streaming_chunks_valid",
"assert_streaming_sequence",
"assert_agent_streaming_chunks",
"assert_rag_streaming_chunks",
"assert_streaming_completion",
"assert_streaming_content_matches",
"assert_no_empty_chunks",
"assert_streaming_error_handled",
"assert_chunk_types_valid",
"assert_streaming_latency_acceptable",
"assert_callback_invoked",
]