LLM plugin for Jina AI
Project description
llm-jina Plugin
LLM Plugin for Jina AI: Powerful AI-powered interactions across multiple domains.
Overview
The llm-jina plugin integrates Jina AI services with Simon Willison's llm CLI tool, providing a comprehensive set of AI-powered capabilities directly accessible from the command line.
Features
- Web Search - Search the web with options for domain filtering
- URL Content Reading - Extract and process content from URLs
- Fact Checking - Verify the factual accuracy of statements
- Text Embeddings - Generate vector embeddings for text analysis
- Document Reranking - Reorder documents based on relevance to a query
- Text Segmentation - Split text into manageable chunks
- Classification - Categorize text or images into specified labels
- Metaprompt Access - Access Jina's metaprompt system
Installation
pip install llm-jina
# or
llm install llm-jina
Configuration
Set your Jina AI API key:
export JINA_API_KEY=your_api_key_here
You can get a Jina AI API key from jina.ai.
Usage Examples
Search
llm jina search "AI technology trends"
llm jina search "machine learning papers" --site arxiv.org
llm jina search "news today" --links --images
Read URL
llm jina read https://example.com/article
llm jina read https://blog.jina.ai --links
llm jina read https://docs.python.org/3/ --format markdown
Embed Text
llm jina embed "Your text here"
llm jina embed "Compare similarity using embeddings" --model jina-embeddings-v3
Rerank Documents
llm jina rerank "machine learning" "Document about NLP" "Paper on computer vision" "Article about ML"
Segment Text
llm jina segment "Long text to be split into chunks" --return-chunks
Classify
llm jina classify "I love this product!" --labels positive,negative,neutral
llm jina classify --image cat.jpg dog.jpg --labels cat,dog
Ground (Fact Checking)
llm jina ground "The Earth orbits the Sun" --sites nasa.gov,space.com
Metaprompt
llm jina metaprompt
Contributing
Contributions welcome! Please read the contributing guidelines.
Testing
Run the test suite:
pip install -e ".[dev]"
pytest
License
Apache 2.0
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_jina-0.3.0.tar.gz.
File metadata
- Download URL: llm_jina-0.3.0.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2436ea069d63dae9d122e02ad411fef7f47483d3cf46fdf75f77574707d1eb12
|
|
| MD5 |
0543a028adbb99a952745e7e3e3e3a07
|
|
| BLAKE2b-256 |
a4855cf5cb7c445fde6e8e5ca4b0f3e60679da78c6e5148606d8b818902019b3
|
File details
Details for the file llm_jina-0.3.0-py3-none-any.whl.
File metadata
- Download URL: llm_jina-0.3.0-py3-none-any.whl
- Upload date:
- Size: 21.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d9f266ede04f83e177418cfeed7b3c43251a7fd17c026fcf49ba0a0758c50c9
|
|
| MD5 |
7fd4c92b4bbb786472355926b2f306a5
|
|
| BLAKE2b-256 |
82fe47eaa3050c3670ad09db11b6992d1a1db27f8cd7a7647eebfc2c251cb98f
|