Skip to main content

Embeddings interface for Ollama

Project description

Ellama

Embeddings library (i.e. vector database) built over Ollama.

export OLLAMA_BASE_URL="http://localhost:11434"
export OLLAMA_MODEL="qwen3-embedding:0.6b"
export CACHE_ROOT=".cache"
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"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ellama-0.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ellama-0.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file ellama-0.0.0.tar.gz.

File metadata

  • Download URL: ellama-0.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ellama-0.0.0.tar.gz
Algorithm Hash digest
SHA256 85b2dc328c6dd34c4aac97597562c4d09d4fb6c27ac0ff1548c1fd24182bec05
MD5 e5c749a4ff9f3c6b436254f5d514926c
BLAKE2b-256 dac10f48e5cee213c1006ae80e19a744574272b1871976fccc7cfd4ef684ff06

See more details on using hashes here.

Provenance

The following attestation bundles were made for ellama-0.0.0.tar.gz:

Publisher: test.yml on casperdcl/ellama

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ellama-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: ellama-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for ellama-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 884c5867c5431f35ce5680c20f1241762bbde463f2f82bb272bbc2b8d08a6495
MD5 fdd26694ce53172eada26c1387692135
BLAKE2b-256 3b4b9712ca09f4aaa0160f9592a7561d885db01a6221449dccfdc79af04869a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for ellama-0.0.0-py3-none-any.whl:

Publisher: test.yml on casperdcl/ellama

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page