A Common Lisp embeddings library
cl-embeddings
is available via ocicl. Install it like so:
$ ocicl install embeddings
cl-embeddings
supports both ollama and OpenAI APIs.
Use ollama models like so:
(let ((embedder (make-instance 'ollama-embeddings :model "mistral:latest")))
(get-embeddings embedder "This is some text."))
And use OpenAI models like so:
(let ((embedder (make-instance 'openai-embeddings :api-key OPENAI-API-KEY)))
(get-embeddings embedder "This is some text."))
- cl-text-splitter: a text splitting library
- cl-completions: an LLM completions library
- cl-chroma: for a Lisp interface to the Chroma vector database.
- cl-chat: a wrapper around
completions
to maintain chat history,
cl-embeddings
was written by Anthony
Green and is distributed under the terms
of the MIT license.