@superinstance/plato-neural
v0.1.0
Published
PLATO neural inference engine — heuristic scoring, tile generation, gap analysis
Maintainers
Readme
@superinstance/plato-neural
PLATO neural inference engine — heuristic tile scoring, gap analysis, and quality metrics. No GPU required.
Install
npm install @superinstance/plato-neuralQuick Start
const { PlatoScorer, GapAnalysis } = require("@superinstance/plato-neural");
// Score a single tile
const result = PlatoScorer.score(
"What is PLATO?",
"PLATO is a knowledge management system. It uses tiles, rooms, and fleet intelligence."
);
console.log(result);
// { quality: 0.723, tier: "good", details: { ... } }
// Batch score
const batch = PlatoScorer.batchScore([
{ question: "What is PLATO?", answer: "Knowledge system." },
{ question: "How does deadband work?", answer: "It blocks dangerous patterns." },
]);
console.log(batch.avgQuality, batch.tierDistribution);
// Find knowledge gaps
const gaps = GapAnalysis.findGaps([
{ question: "weak q", answer: "a", room: "plato" },
{ question: "What is the constraint manifold?", answer: "Detailed answer with code examples and domain terms like plato, tile, fleet.", room: "ct" },
]);API
| Class | Purpose |
|-------|---------|
| PlatoScorer | Heuristic tile quality scoring (no GPU). Evaluates length, vocabulary, structure, question quality, domain relevance. |
| GapAnalysis | Find knowledge gaps across rooms. Per-room aggregation, weak tile detection. |
Tiers
excellent(quality ≥ 0.8)good(≥ 0.6)fair(≥ 0.4)weak(≥ 0.2)poor(< 0.2)
Zero dependencies. Works in Node.js and browser.
License
MIT © Cocapn
