Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@energetic-ai/model-embeddings-en

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@energetic-ai/model-embeddings-en

Pre-trained English-language model weights for `@energetic-ai/embeddings`.

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
744
increased by77.14%
Maintainers
1
Weekly downloads
 
Created
Source

EnergeticAI

Pre-trained English-language model weights for @energetic-ai/embeddings.

EnergeticAI Embedding Model Weights (English)

This package contains pre-trained English-language model weights for @energetic-ai/embeddings.

Install

npm install @energetic-ai/model-embeddings-en

Usage

To use this, simply import modelSource from this package and pass it to initModel() in @energetic-ai/embeddings:

import { initModel } from "@energetic-ai/embeddings";
import { modelSource } from "@energetic-ai/model-embeddings-en";
(async () => {
  const model = await initModel(modelSource);
  const embeddings = await model.embed(["hello", "world"]);
  console.log(embeddings);
})();

Examples

See the examples directory for examples.

Development

This repository uses Lerna to manage packages, and Vitest to run tests.

Run tests with this method:

npm run test

License

Apache 2.0, except for dependencies.

Acknowledgements

This package is derived from the Universal Sentence Encoder Lite model weights, which are also Apache 2.0 licensed.

Keywords

FAQs

Package last updated on 11 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc