Metadata-Version: 2.4
Name: ellama
Version: 0.0.0
Summary: Embeddings interface for Ollama
Author-email: Casper da Costa-Luis <casper.dcl@physics.org>
License-Expression: MPL-2.0
Keywords: vector,embedding,database,ollama,faiss,langchain
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: langchain-community
Requires-Dist: langchain-ollama
Requires-Dist: requests
Requires-Dist: tqdm
Provides-Extra: cpu
Requires-Dist: faiss-cpu; extra == "cpu"
Provides-Extra: gpu
Requires-Dist: faiss-gpu; extra == "gpu"
Provides-Extra: dev
Requires-Dist: pytest-cov; extra == "dev"

# Ellama

Embeddings library (i.e. vector database) built over [Ollama](https://ollama.com/search?c=embedding).

```sh
export OLLAMA_BASE_URL="http://localhost:11434"
export OLLAMA_MODEL="qwen3-embedding:0.6b"
export CACHE_ROOT=".cache"
```

```py
from ellama import EllamaDatabase, Document

db = EllamaDatabase("test")
db.add_documents([
    Document(page_content="hello world", id="one"),
    Document(page_content="goodbye and goodnight", id="two"),])
docs = db.similarity_search_with_relevance_scores("Hello, world!", k=1)
assert len(docs) == 1
assert docs[0].id == "one"
```
