Metadata-Version: 2.4
Name: ellama
Version: 0.1.3
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).

```py
from ellama import EllamaDB, Document

db = EllamaDB("test")
db.add_documents([
    Document(page_content="hello world", id="salutation"),
    Document(page_content="goodbye and goodnight", id="farewell")])
docs = db.similarity_search_with_relevance_scores("Greetings, Earth!", k=1)
assert len(docs) == 1
assert docs[0].id == "salutation"
```
