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("Greetings, Earth!", k=1)
assert len(docs) == 1
assert docs[0].id == "salutation"

install

pip (CPU)

pip install "ellama[cpu]"

conda (GPU)

name: ellama
channels: [pytorch, nvidia, conda-forge]
dependencies:
- langchain 1.*
- langchain-community
- faiss-gpu
- requests
- tqdm
- pip
- pip:
  - ellama 0.3.*

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.3.1.tar.gz (5.2 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.3.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ellama-0.3.1.tar.gz
Algorithm Hash digest
SHA256 53067298ab84a4b20af31b6105b75d403ca96fc81d61df3f75cba9d06276bcbf
MD5 12ab353c4aafdf1089fcfa947ca92375
BLAKE2b-256 bac9f6659125e64fa1e174ca514f486f3aaa238ac6ac1b22338ae15e7d936fa7

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: ellama-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 827defd9036d1fe8deaedbdfbc70d24967567fc95f2fed834c3d477ec70ca07d
MD5 669bc9371d9183e374a6e274d9fa7dea
BLAKE2b-256 bbcacc831729abd08c5b63d3dfc2ce40ee4878dd824660ab9201b64771e261c2

See more details on using hashes here.

Provenance

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