Skip to content
All features
AI runtimepackages/ai/document-pipeline

document-pipeline package

Ingestion for PDF / docx / markdown — chunk, table-aware extract, embed, route to @nebutra/knowledge-base. OCR fallback for image-only pages.

Open docs
Stability
Stable
Scope
Global
Boundary
packages/ai/document-pipeline

document-pipeline

packages/ai/document-pipeline

AI runtime · tool registry · MCP boundary

Ready

Capability graph

ai/document-pipeline
document-pipeline
Tool policy
Stream UI
Output

Run ledger

  1. 1
    Input
    packages/ai/document-pipeline/request
  2. 2
    Plan
    message reducer -> model turn
  3. 3
    Tool policy
    tool schema · auth scope · rate limit
  4. 4
    Stream UI
    events -> UI state machine
  5. 5
    Output
    @nebutra/agents response envelope
p50 latency
56 ms
events/sec
495/s
providers
3
eval score
91
Usagedocument-pipeline.ts
typescript
document-pipeline.ts
1import { documentPipeline } from "@nebutra/document-pipeline";
2
3const result = await documentPipeline.run({
4  tenantId: org.id,
5  // document-pipeline is part of the AI runtime — composable with other AI primitives.
6  input: payload,
7});