https://github.com/atgreen/cl-embeddings
A Common Lisp embeddings library
https://github.com/atgreen/cl-embeddings
Last synced: about 2 months ago
JSON representation
A Common Lisp embeddings library
- Host: GitHub
- URL: https://github.com/atgreen/cl-embeddings
- Owner: atgreen
- Created: 2024-03-27T00:50:25.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-06T17:41:15.000Z (about 1 year ago)
- Last Synced: 2024-04-06T18:36:59.570Z (about 1 year ago)
- Language: Common Lisp
- Size: 6.84 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- trackawesomelist - cl-embeddings (⭐10) - LLM embeddings. (Recently Updated / [Mar 08, 2025](/content/2025/03/08/README.md))
README
# cl-embeddings
> A Common Lisp embeddings libraryUsage
------`cl-embeddings` is available via [ocicl](https://github.com/ocicl/ocicl). Install it like so:
```
$ ocicl install embeddings
````cl-embeddings` supports both [ollama](https://ollama.com/) and [OpenAI](https://openai.com/blog/openai-api) 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
-----------------* [cl-text-splitter](https://github.com/atgreen/cl-text-splitter): a text splitting library
* [cl-completions](https://github.com/atgreen/cl-completions): an LLM completions library
* [cl-chroma](https://github.com/atgreen/cl-chroma): for a Lisp interface to the [Chroma](https://www.trychroma.com/) vector database.
* [cl-chat](https://github.com/atgreen/cl-chat): a wrapper around `completions` to maintain chat history,Author and License
-------------------``cl-embeddings`` was written by [Anthony
Green](https://github.com/atgreen) and is distributed under the terms
of the MIT license.