Access Jina AI embeddings via their API
Project description
llm-jina-api
Access Jina AI embeddings via their API
Installation
Install this plugin in the same environment as LLM.
llm install llm-jina-api
Usage
The plugin adds an embedding model called jina-clip-v1-api
. You'll need to set an API key first:
llm keys set jina
# paste API key here
Follow the LLM documentation using jina-clip-v1-api
as the model name. For example:
llm embed -m jina-clip-v1-api -c 'pelican'
# To embed an image file:
llm embed --binary -m jina-clip-v1-api -i pelican.jpg
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-jina-api
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
llm install -e '.[test]'
To run the tests:
python -m pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
llm_jina_api-0.1a0.tar.gz
(6.8 kB
view details)
Built Distribution
File details
Details for the file llm_jina_api-0.1a0.tar.gz
.
File metadata
- Download URL: llm_jina_api-0.1a0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 82e6f96733efb72a478a5d53b080918a9b5322ee7e67f226fe83c58e55a494da |
|
MD5 | 0d92ed157399b7af14bbd32c25d52888 |
|
BLAKE2b-256 | c30b43501628349bb8661aed1d8f6d59329f1673bc7daab17cc2dd4b253a659b |
File details
Details for the file llm_jina_api-0.1a0-py3-none-any.whl
.
File metadata
- Download URL: llm_jina_api-0.1a0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d0fd962f9b4197f49d3e6aa9bd1f4dbad49d4ed7d8d33ecffbd0fe500aba709 |
|
MD5 | 1b868fb50c0205f45697f306689168bc |
|
BLAKE2b-256 | a3a0c9f0b7f2f46a1ce42d6627423881e12e4a68702649102f889c9698e21493 |