From 8e84c00771294f282fe180efd06445266f7c3d0a Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 27 Oct 2023 07:40:33 -0700 Subject: [PATCH] Link to blog post about building Jina embeddings plugin --- docs/embeddings/writing-plugins.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/embeddings/writing-plugins.md b/docs/embeddings/writing-plugins.md index 7095c4d..0e5cd0f 100644 --- a/docs/embeddings/writing-plugins.md +++ b/docs/embeddings/writing-plugins.md @@ -48,6 +48,8 @@ cat file.txt | llm embed -m all-MiniLM-L6-v2 ``` [llm-sentence-transformers](https://github.com/simonw/llm-sentence-transformers) is a complete example of a plugin that provides an embedding model. +[Execute Jina embeddings with a CLI using llm-embed-jina](https://simonwillison.net/2023/Oct/26/llm-embed-jina/#how-i-built-the-plugin) talks through a similar process to add support for the [Jina embeddings models](https://jina.ai/news/jina-ai-launches-worlds-first-open-source-8k-text-embedding-rivaling-openai/). + ## Embedding binary content If your model can embed binary content, use the `supports_binary` property to indicate that: @@ -63,4 +65,4 @@ class ClipEmbeddingModel(llm.EmbeddingModel): If your model accepts binary, your `.embed_batch()` model may be called with a list of Python bytestrings. These may be mixed with regular strings if the model accepts both types of input. -[llm-clip](https://github.com/simonw/llm-clip) is an example of a model that can embed both binary and text content. \ No newline at end of file +[llm-clip](https://github.com/simonw/llm-clip) is an example of a model that can embed both binary and text content.