This documentation covers the Clojure client library for Jina AI APIs.
- Embeddings - Convert text/images to fixed-length vectors
- Rerank - Re-rank search results for relevance
- Classify - Zero-shot classification for text or images
- Search Web - Search the web for information
- Read URL - Retrieve and parse content from URLs
- Segment Text - Tokenize and segment text into chunks
- Deep Search - Comprehensive web searching with reasoning
All API functions follow a similar pattern:
(require '[jina.core :as jina])
;; Basic usage
(jina/embeddings ["Hello, world!"])
;; With options
(jina/embeddings ["Hello, world!"] {:dimensions 512})
;; main API functions
jina/embeddings
jina/rerank
jina/classify
jina/deep-search
jina/read-url
jina/search-web
jina/segment-text Most APIs accept an optional map of parameters as the last argument. Refer to individual API documentation for specific parameters.
Make sure you have your Jina AI API key configured in your environment or application settings.