Use open-source AI in your Node.js apps, up to 67x faster.
EnergeticAI is TensorFlow.js, optimized for serverless environments, with fast cold-start, small module size, and pre-trained models.
Install in seconds, and scale with business-friendly licensing.
import { initModel, distance } from "@energetic-ai/embeddings";
import { modelSource } from '@energetic-ai/model-embeddings-en';
(async () => {
const model = await initModel(modelSource);
const [hello, world] = await model.embed([
"hello",
"world"
]);
console.log(distance(hello, world));
})();
Models & Libraries
Hit the ground running with pre-trained models.
Semantic SearchEnglishPlanned
Provide answers based on meaning with question-answering models.
Performance
EnergeticAI maximizes cold-start performance while minimizing module size.
- Cold-Start Speed
- Warm-Start Speed
- Module Size
Up to
67x faster
Compared to Tensorflow.js
Inference speed in serverless functions is dominated by cold-start speed.
This benchmark initializes the model and computes an embedding for a 5-sentence paragraph, on an M1 Max Macbook Pro.
Usability
Install in seconds, and scale with business-friendly licensing.
Download EnergeticAI from NPM:
npm install @energetic-ai/core
Requires Node 18+. EnergeticAI is Apache 2.0 licensed, though dependencies may differ.
Get Started →