Skip to main content

Embeddings interface for Ollama

Project description

Ellama

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

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"

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.2.1.tar.gz (5.3 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.2.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ellama-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d24e2bfc2b997de1809889f588c2e5dc8c281fdcb46f5dd68499b5f3428fbd3d
MD5 593f8ae24f9aef36d9133170dd4ad4ba
BLAKE2b-256 08cd7b3cc2ad8a99dbf3025eff00547988fb1f36361785a00bf1fa2353b90746

See more details on using hashes here.

Provenance

The following attestation bundles were made for ellama-0.2.1.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.2.1-py3-none-any.whl.

File metadata

  • Download URL: ellama-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fff026ed1d64ae93993a216ff2e53432fe164fb37199d9ee4568cb73ebc0dfa3
MD5 17646fcda3675a5229664b1beee767c3
BLAKE2b-256 dd3c6b7167c88f93f68b209c24ad4fd48238f0bf816d0eb5763e0db81f425fbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for ellama-0.2.1-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