Skip to main content

Create embeddings using the Nomic API

Project description

llm-nomic-api-embed

PyPI Changelog Tests License

Create embeddings using the Nomic API

Installation

Install this plugin in the same environment as LLM.

llm install llm-nomic-api-embed

Usage

This plugin requires a Nomic API key. These include a generous free allowance for their embedding API.

Configure the key like this:

llm keys set nomic
# Paste key here

You can then use the Nomic embedding models like this:

llm embed -m nomic-1.5 -c 'hello world'

This will return a 768 item floating point array as JSON.

See the LLM embeddings documentation for more you can do with the tool.

Models

Run llm embed-models for a full list. The Nomic models are:

nomic-embed-text-v1 (aliases: nomic-1)
nomic-embed-text-v1.5 (aliases: nomic-1.5)
nomic-embed-text-v1.5-512 (aliases: nomic-1.5-512)
nomic-embed-text-v1.5-256 (aliases: nomic-1.5-256)
nomic-embed-text-v1.5-128 (aliases: nomic-1.5-128)
nomic-embed-text-v1.5-64 (aliases: nomic-1.5-64)

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-nomic-api-embed
python3 -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

pytest

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm-nomic-api-embed-0.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

llm_nomic_api_embed-0.1-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file llm-nomic-api-embed-0.1.tar.gz.

File metadata

  • Download URL: llm-nomic-api-embed-0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for llm-nomic-api-embed-0.1.tar.gz
Algorithm Hash digest
SHA256 68e5d666c4ff71517572ab498cd583e54999a89e8b9f3a9e29a88338c1c41f5a
MD5 88529de1cd83e2928864f33fb6e8e996
BLAKE2b-256 7a13944f13761d2813c63ae2f20f5d037aac5941eec76b46d5d47308fb9d09e5

See more details on using hashes here.

File details

Details for the file llm_nomic_api_embed-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for llm_nomic_api_embed-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1f05aae55f0603dc18784bd872194200215faec13e08fbd4d33c080cab993886
MD5 84ae2de6fb7c69a307121d7c2cba01cd
BLAKE2b-256 a9b67032fb5d62f9606077c93ca59da75c460286680114a14e717ae0609d8fac

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page