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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ellama-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0077b5e1bc663549f9daa175bf2b47c4cd9d951fc508ba078a43489c18c8dd91
MD5 d8c3d63856057fc24f2479c8d6d47a58
BLAKE2b-256 d2b1c859aacb79b960fb940fa33ffaf5f1a1eb9986378c9baf3c67e8863e580e

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ellama-0.1.2-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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7de78b843be1e846a338c78119236e697211a5df716c7cfdbf6933565647c1f2
MD5 611662b29c319c7c3d260f24e950546d
BLAKE2b-256 09c644d88d89e3c71a0f965191be5411633999af41cff28e8a2e24654169b103

See more details on using hashes here.

Provenance

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