Skip to main content

Embedding models from Jina AI

Project description

llm-embed-jina

PyPI Changelog Tests License

Embedding models from Jina AI

Background

Jina AI Launches World's First Open-Source 8K Text Embedding, Rivaling OpenAI introduces these models.

See also Embeddings: What they are and why they matter for background on embeddings and an explanation of the LLM embeddings tool.

Installation

Install this plugin in the same environment as LLM.

llm install llm-embed-jina

Usage

This plugin adds support for three new embedding models:

The models will be downloaded the first time you try to use them.

See the LLM documentation for everything you can do.

To get started embedding a single string, run the following:

llm embed -m jina-embeddings-v2-small-en -c 'Hello world'

This will output a JSON array of 512 floating point numbers to your terminal.

Development

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

cd llm-embed-jina
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


Download files

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

Source Distribution

llm-embed-jina-0.1.2.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_embed_jina-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file llm-embed-jina-0.1.2.tar.gz.

File metadata

  • Download URL: llm-embed-jina-0.1.2.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for llm-embed-jina-0.1.2.tar.gz
Algorithm Hash digest
SHA256 73d7e31775cb0b85b4eea6ff1e6ab58c7c43c09804fa6555015a82fefb385739
MD5 45a4e0d766e76e2117288e9ae715d6ed
BLAKE2b-256 a0078f007599ba9cbd00a031b09e4e7109da20d8e0f8503e3fd5569287a84d36

See more details on using hashes here.

File details

Details for the file llm_embed_jina-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: llm_embed_jina-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for llm_embed_jina-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86df8af03955ef4c1bac250b69c572a6f984219c655c1b071a96a4e37ca63391
MD5 4011b80460d282b9e323164a3c10df96
BLAKE2b-256 4c100332ef43aa532cd1bdab8195174641454da52de008e03c031f6e3a6719a0

See more details on using hashes here.

Supported by

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