trustgraph

trustgraph-aiApache-2.0活跃维护

面向 Agent 的 AI 治理平台,用上下文图谱管理知识、上下文和 Agent 运行时,让 Agent 行为可追溯、可管控。

The AI Governance Platform for Agents, Knowledge, and Context

v2.8.17发布于 2026-09-08 20:38 UTC2,905star +7 / 7 天340fork同步于 2026-11-10 11:42 UTC

怎么上手

由 README 提炼,执行前请确认
npx @trustgraph/config
硬件要求按 README 说明

README 未说明具体显存或 GPU 型号要求;支持 vLLM、TGI、Ollama、LM Studio、llama.cpp 等推理后端,可对接本地开源模型或第三方 LLM 服务。

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

把企业知识与业务逻辑构建成本体上下文图,并治理 AI 智能体行为的平台

面向 Agent 的 AI 治理平台,用上下文图谱管理知识、上下文和 Agent 运行时,让 Agent 行为可追溯、可管控。

核心能力

  • 从文档和系统构建实体、关系、策略与证据的连通图
  • 在动作执行点按权限、范围、风险、时间等规则约束智能体
  • 保留证据与策略版本以复现和解释每次决策
  • 单一平台集成三种 RAG 技术与 GraphRAG 图遍历
  • 内置 Cassandra、Qdrant、Garage、Pulsar 等存储与消息组件

容易踩的坑

需先安装 Node.js 才能运行 npx 配置命令;部署依赖 Docker、Podman 或 Minikube 环境;使用第三方 LLM 或 OCR 服务时需自备对应 API Key。

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

1 个版本v2.8.17
  1. v2.8.17TrustGraph 2.8最新正式版2026-09-08 · 2026-09-08 20:38 UTC

    San Francisco, CA — TrustGraph 2.8 is here. This release delivers a foundational platform upgrade for teams deploying knowledge-driven AI systems at enterprise scale: fully asynchronous messaging infrastructure, hybrid Document RAG retrieval, native LLM structured output, image understanding, comprehensive auditability, and a redesigned extensible UI platform.

    TrustGraph 2.8 removes a major scaling constraint in multi-workspace deployments while expanding the ways developers can ingest, retrieve, govern, observe, and present contextual AI applications.

    Whether you are operating GraphRAG across dozens of workspaces, building multimodal enterprise search, enforcing reliable JSON outputs from LLMs, or tailoring an investigation interface to your domain, TrustGraph 2.8 provides a faster and more composable foundation.

    Major Features & Platform Upgrades

    Async Pub/Sub Infrastructure for Enterprise Scale

    TrustGraph has completed its migration from a thread-per-consumer messaging model to an asynchronous pub/sub architecture.

    The previous model could create hundreds of threads as workspace and flow counts increased. TrustGraph 2.8 replaces that approach with configurable async receive and send pools, dramatically reducing resource pressure while supporting larger deployments.

    • Async implementations are now available across Pulsar, RabbitMQ, and Kafka.
    • The API gateway and reverse gateway now run on async infrastructure.
    • The migration removes approximately 7,600 lines of synchronous pub/sub code.
    • Deployments that previously faced thread exhaustion at 40 or more workspaces can now use pooled async consumers and producers instead.

    This is a foundational change for organizations operating TrustGraph as a multi-tenant or high-workspace platform.

    Hybrid Retrieval for Document RAG

    Document RAG now combines semantic vector search with BM25 keyword search through Reciprocal Rank Fusion (RRF).

    Vector retrieval is strong at finding conceptually similar material. Keyword retrieval is strong when exact terms, identifiers, error codes, names, and specialist vocabulary matter. Hybrid retrieval combines both signals so that retrieval can better handle real enterprise content.

    TrustGraph 2.8 introduces:

    • A pluggable KeywordIndexService.
    • SQLite FTS5 as the initial keyword-index backend.
    • Index scoping per workspace and collection.
    • Text sanitisation for safe and reliable BM25 indexing.
    • Graceful fallback when the keyword-retrieval path is unavailable.

    The result is more resilient document retrieval across both semantic questions and exact-term queries.

    LLM-Native Structured Output

    TrustGraph 2.8 brings JSON-schema enforcement directly into the LLM generation path.

    Schemas can now flow from prompt definitions through the text-completion service to supported providers’ native structured-output APIs. A runtime compatibility check determines whether a prompt and backend can use native schema enforcement.

    Structured output support now spans:

    • OpenAI, including the vLLM variant.
    • Ollama.
    • Anthropic Claude.
    • Mistral.
    • Llamafile and LM Studio.
    • Azure OpenAI and Azure serverless.
    • Text Generation Inference.
    • Vertex AI Gemini and Google AI Studio.
    • Amazon Bedrock.

    This makes it easier to build dependable agents, extraction pipelines, and user interfaces that consume typed LLM responses rather than parsing unpredictable free-form text.

    Image-to-Text Service

    TrustGraph now includes a pluggable image description service for multimodal applications.

    The first implementation includes an OpenAI vision backend, gateway dispatch, REST and WebSocket clients, IAM capability integration, and a new tg-describe-image command-line tool.

    Teams can use the service to turn visual content into text that can be stored, indexed, queried, or incorporated into downstream knowledge and AI workflows.

    Docling Document Decoder

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Docker Pulls PyPI version License E2E Tests Discord

    Playground | Self-Host | Docs | YouTube | Discord | Website

    The AI Governance Platform for Agents, Knowledge, and Context


    TrustGraph turns enterprise knowledge, systems, and business logic into a unified ontology-grounded context graph and policy runtime that governs what AI agents can do.

    Understand. Govern. Verify.

    • Understand your business: Build a connected graph of entities, relationships, policies, and evidence from documents and systems, using your own or domain-standard ontologies.
    • Govern agent actions: Enforce explicit rules for authority, scope, risk, uncertainty, time, and value at the point of action.
    • Verify decisions: Retain the evidence and policy versions needed to explain and reproduce each outcome.

    The Platform

    Ontologies Made Easy

    Understand Your Knowledge

    3 RAG Techniques in a Single Platform

    Advanced Agentic Graph Traversal

    Semantic Policy Enforcement

    Provenance for Knowledge and Agent Actions

    Decisions without LLMs

    No API Keys Required

    How many times have you cloned a repo and opened the .env.example to see the dozens of API keys for 3rd party dependencies needed to make the services work? There are only 3 things in TrustGraph that might need an API key:

    • 3rd party LLM services like Anthropic, Cohere, Gemini, Mistral, OpenAI, etc.
    • 3rd party OCR like Mistral OCR
    • The API key you set for the TrustGraph API gateway

    Everything else is included.

    Quickstart

    No need to clone the repo unless you are building from source. TrustGraph deploys as a set of Docker containers. Configure it on the command line in one step:

    npx @trustgraph/config
    

    The config process will generate an app config that can be run locally with Docker, Podman, or Minikube. The process will output:

    • deploy.zip with either a docker-compose.yaml file for a Docker/Podman or resources.yaml for Kubernetes
    • Deployment instructions as INSTALLATION.md

    For a browser based configuration, try the Configuration Terminal.

    Getting Started with TrustGraph

    TypeScript Library for UIs

    There are TS libraries for quick UI integration of TrustGraph services.

    PackageDescription
    @trustgraph/trustkitShared component library and design system
    @trustgraph/clientTypeScript client for TrustGraph APIs
    @trustgraph/react-providerReact provider for TrustGraph WebSocket connections
    @trustgraph/react-stateReact state management hooks
    @trustgraph/portalPortal application showcasing all workflows

    Contributing

    Developer's Guide

    License

    TrustGraph is licensed under Apache 2.0.

    Copyright 2024-2026 TrustGraph

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0
    

    Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

    Support & Community

    • Bug Reports & Feature Requests: Discord
    • Discussions & Questions: Discord
    • Documentation: Docs