From 188d39f61eef1ceb550ef2593c6dbe7681869a46 Mon Sep 17 00:00:00 2001 From: Florents Tselai Date: Sun, 30 Jun 2024 21:42:38 +0300 Subject: [PATCH] 16 binary embedding for blob types eg using llm clip (#21) * Test binary with hazo * Add image embedding example --- README.md | 17 +++++++++++++++++ setup.py | 2 +- tests/test_tsellm.py | 17 +++++++++++------ 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cdfe13c..c9a993e 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,8 @@ pip install tsellm Behind the scenes, **tsellm** is based on the beautiful [llm](https://llm.datasette.io) library, so you can use any of its plugins: +## Generative + For example, to access `gpt4all` models ```shell @@ -33,6 +35,21 @@ llm sentence-transformers register all-MiniLM-L12-v2 tsellm :memory: "select embed('Hello', 'sentence-transformers/all-MiniLM-L12-v2')" ``` +### Embeddings for binary (`BLOB`) columns + +```shell +wget https://tselai.com/img/flo.jpg +sqlite3 images.db <