mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-27 06:01:01 +02:00
Change librarian from a single shared client to per-workspace clients, ensuring knowledge core get/put operations use workspace-scoped queues. LibrarianClient is now created in on_workspace_created and cleaned up in on_workspace_deleted. Fix term_to_tuple/tuple_to_term to handle TRIPLE and BLANK term types. Previously only IRI and LITERAL were supported, causing ~1000 edges (ns/contains with quoted triple objects) to be silently lost during Cassandra storage. TRIPLE terms are now JSON-serialized with a <<TRIPLE>> marker prefix, BLANK terms with <<BLANK>>. Make document tree export recursive via _stream_doc_tree so that grandchild documents (chunks under pages) are included in knowledge core export. Without this, explainability source links break after a get/put/load round-trip because chunk documents are not restored. Add error response encoding to KnowledgeResponseTranslator.encode() and fix encode_with_completion to treat error responses as non-final. Change KnowledgeResponse.ids from list[str] with default factory to Optional[list[str]] so list responses can be distinguished from empty responses. Add error display to get_kg_core CLI. |
||
|---|---|---|
| .. | ||
| trustgraph | ||
| pyproject.toml | ||
| README.md | ||