2026-04-05 21:09:33 -05:00
|
|
|
// @trustgraph/flow — processing services
|
|
|
|
|
|
|
|
|
|
export { createGateway, type GatewayConfig } from "./gateway/index.js";
|
|
|
|
|
export { OpenAIProcessor } from "./model/text-completion/openai.js";
|
|
|
|
|
export { ClaudeProcessor } from "./model/text-completion/claude.js";
|
|
|
|
|
export { GraphRag, type GraphRagConfig, type GraphRagClients } from "./retrieval/graph-rag.js";
|
|
|
|
|
export { DocumentRag, type DocumentRagClients } from "./retrieval/document-rag.js";
|
2026-04-05 22:44:45 -05:00
|
|
|
export { FalkorDBTriplesStore, type FalkorDBConfig } from "./storage/triples/falkordb.js";
|
|
|
|
|
export { FalkorDBTriplesQuery, type FalkorDBQueryConfig } from "./query/triples/falkordb.js";
|
|
|
|
|
|
|
|
|
|
// Qdrant embeddings storage
|
|
|
|
|
export {
|
|
|
|
|
QdrantDocEmbeddingsStore,
|
|
|
|
|
type QdrantDocEmbeddingsConfig,
|
|
|
|
|
type DocEmbeddingsMessage,
|
|
|
|
|
type DocEmbeddingChunk,
|
|
|
|
|
} from "./storage/embeddings/qdrant-doc.js";
|
|
|
|
|
export {
|
|
|
|
|
QdrantGraphEmbeddingsStore,
|
|
|
|
|
type QdrantGraphEmbeddingsConfig,
|
|
|
|
|
type GraphEmbeddingsMessage,
|
|
|
|
|
type GraphEmbeddingEntity,
|
|
|
|
|
} from "./storage/embeddings/qdrant-graph.js";
|
|
|
|
|
|
|
|
|
|
// Qdrant embeddings query
|
|
|
|
|
export {
|
|
|
|
|
QdrantDocEmbeddingsQuery,
|
|
|
|
|
type QdrantDocQueryConfig,
|
|
|
|
|
type ChunkMatch,
|
|
|
|
|
type DocEmbeddingsQueryRequest,
|
|
|
|
|
} from "./query/embeddings/qdrant-doc.js";
|
|
|
|
|
export {
|
|
|
|
|
QdrantGraphEmbeddingsQuery,
|
|
|
|
|
type QdrantGraphQueryConfig,
|
|
|
|
|
type EntityMatch,
|
|
|
|
|
type GraphEmbeddingsQueryRequest,
|
|
|
|
|
} from "./query/embeddings/qdrant-graph.js";
|
|
|
|
|
|
|
|
|
|
// Embeddings services
|
|
|
|
|
export { OllamaEmbeddingsProcessor, type OllamaEmbeddingsConfig } from "./embeddings/ollama.js";
|
|
|
|
|
|
|
|
|
|
// Prompt template service
|
|
|
|
|
export { PromptTemplateService, type PromptTemplate, type PromptTemplateConfig } from "./prompt/template.js";
|
|
|
|
|
|
|
|
|
|
// Config service
|
|
|
|
|
export { ConfigService, type ConfigServiceConfig } from "./config/service.js";
|
feat: add document pipeline, ReAct agent, and knowledge core services
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>
2026-04-06 00:19:37 -05:00
|
|
|
|
|
|
|
|
// ReAct agent
|
|
|
|
|
export { AgentService } from "./agent/react/index.js";
|
|
|
|
|
|
|
|
|
|
// Librarian service
|
|
|
|
|
export { LibrarianService, type LibrarianServiceConfig } from "./librarian/service.js";
|
|
|
|
|
export { CollectionManager, type CollectionEntry } from "./librarian/collection-manager.js";
|
|
|
|
|
|
|
|
|
|
// Chunking service
|
|
|
|
|
export { recursiveSplit } from "./chunking/recursive-splitter.js";
|
|
|
|
|
export { ChunkingService } from "./chunking/service.js";
|
|
|
|
|
|
|
|
|
|
// Knowledge extraction service
|
|
|
|
|
export { KnowledgeExtractService } from "./extract/knowledge-extract.js";
|
|
|
|
|
|
|
|
|
|
// Knowledge core service
|
|
|
|
|
export { KnowledgeCoreService, type KnowledgeCoreServiceConfig } from "./cores/service.js";
|