Skip to content

atgreen/cl-embeddings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cl-embeddings

A Common Lisp embeddings library

Usage

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."))

Related Projects

Author and License

cl-embeddings was written by Anthony Green and is distributed under the terms of the MIT license.

About

A Common Lisp embeddings library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published