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.0.tar.gz (4.9 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.0-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ellama-0.2.0.tar.gz
  • Upload date:
  • Size: 4.9 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.0.tar.gz
Algorithm Hash digest
SHA256 3c55295a3966f2a46f5e09d399b4fb7927e5db3513201959336c8a3ec15445a6
MD5 ec5d907b081e0169fde00b227c818cf5
BLAKE2b-256 847ccb13634d59a29d07e728e68e34b4025b986b2336c94511852ae31d8ba10b

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ellama-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 961bd516b16c2e53ebacf7e4bea3ddad841eceef820b71109a1541126ecc5720
MD5 88b436f9344e4ae80847cbf9b2cebb0e
BLAKE2b-256 80df77db994fd210cb33519f21ce688ddff660ab1d3c4fad2a35896ad66de8fc

See more details on using hashes here.

Provenance

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