mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-01 09:29:38 +02:00
Document Pipeline (Team A): - LibrarianService: document storage with filesystem backend, metadata persistence, child document hierarchy, collection management - ChunkingService: recursive character text splitter with configurable chunk size/overlap, FlowProcessor pattern - KnowledgeExtractService: combined relationship + definition extraction using prompt service and LLM, emits RDF triples and entity contexts - KnowledgeCoreService: knowledge core CRUD with streaming export and flow-based loading ReAct Agent (Team B): - StreamingReActParser: state machine for parsing LLM output into Thought/Action/ActionInput/FinalAnswer sections - Three MVP tools: KnowledgeQuery (GraphRAG), DocumentQuery (DocRAG), TriplesQuery with RequestResponse clients - AgentService FlowProcessor with ReAct loop, tool execution, and streaming chunk responses (thought/observation/answer) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
15 lines
385 B
TypeScript
15 lines
385 B
TypeScript
/**
|
|
* Start the knowledge core service.
|
|
*
|
|
* Usage: pnpm tsx scripts/run-knowledge.ts
|
|
*
|
|
* Env:
|
|
* NATS_URL (default: nats://localhost:4222)
|
|
* KNOWLEDGE_DATA_DIR (optional, e.g., ./data/knowledge)
|
|
*/
|
|
import { run } from "../packages/flow/src/cores/service.js";
|
|
|
|
run().catch((err) => {
|
|
console.error("Knowledge core service failed:", err);
|
|
process.exit(1);
|
|
});
|