trustgraph/ts/scripts/run-ollama.ts
elpresidank 8f7008822a feat: add document pipeline — PDF decoder, Ollama LLM, storage services
Add end-to-end document processing pipeline:
- PDF decoder service (pdfjs-dist) extracts text per page from librarian docs
- Ollama native LLM service for local model inference
- FalkorDB triples store FlowProcessor consumer
- Qdrant graph embeddings store FlowProcessor consumer
- Fix spec name collisions in chunker/extractor (input→chunk-input, etc.)
- Gateway /load endpoint to trigger document processing
- Align flow manager blueprint and seed config with full pipeline topics
- Add runner scripts and test coverage for document load

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-06 23:47:43 -05:00

16 lines
428 B
TypeScript

/**
* Start the Ollama text-completion service.
*
* Usage: pnpm tsx scripts/run-ollama.ts
*
* Env:
* NATS_URL (default: nats://localhost:4222)
* OLLAMA_URL (default: http://localhost:11434)
* OLLAMA_MODEL (default: qwen2.5:0.5b)
*/
import { run } from "../packages/flow/src/model/text-completion/ollama.js";
run().catch((err) => {
console.error("Ollama LLM service failed:", err);
process.exit(1);
});