Skip to main content

EigenLake Python Client

Python SDK for EigenLake Cloud.

Install

pip install eigenlake

Quickstart

import eigenlake
from eigenlake import schema as s

with eigenlake.connect(
    url="https://api.eigenlake.dev",
    api_key="<sk_sbx_your_api_key_here>",
) as client:
    schema, index_options = (
        s.SchemaBuilder(additional_properties=False)
        .add("document_id", s.string(required=True, filterable=True))
        .add("text", s.string(filterable=False))
        .add("created_at", s.datetime(filterable=True))
        .build()
    )

    idx = client.indexes.create_or_get(
        namespace="demo-namespace",
        index="demo-index",
        dimensions=128,
        schema=schema,
        index_options=index_options,
    )

    record_id = idx.records.add(
        properties={"document_id": "doc-1", "text": "hello"},
        vector=[0.1] * 128,
    )

    result = idx.search.nearest(
        vector=[0.1] * 128,
        limit=3,
    )
    print(record_id, result)

Agent Query

import eigenlake

with eigenlake.connect(url="https://api.eigenlake.dev", api_key="<sk_sbx_your_api_key_here>") as client:
    idx = client.indexes.open(namespace="demo-automotive", index="automotive-fault-clustering")
    result = idx.agent.query("show me recent battery failures")
    print(result["filter"])

Docs

  • Documentation source: docs/
  • Docs site config: mkdocs.yml
pip install -e ".[docs]"
mkdocs serve

Docs will be available at http://127.0.0.1:8000.

Metadata

Release files for eigenlake 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eigenlake 0.2.3
File Size Uploaded Provenance Actions
eigenlake-0.2.3.tar.gz 13.7 kB Without provenance Details for eigenlake-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for eigenlake 0.2.3
File Interpreter ABI Platform Actions
eigenlake-0.2.3-py3-none-any.whl Python 3 none any Details for eigenlake-0.2.3-py3-none-any.whl

Total release size: 22.3 kB

Release files / eigenlake-0.2.3.tar.gz

Download URL eigenlake-0.2.3.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fc4578a38f74415ad8e60c2a3372ffda647e46833141a182078027e0f4063df6
BLAKE2b-256 checksum
How to use checksums
642603d7e5650b5944328e529ed78132c219e87400cbd9699203159a752ae34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / eigenlake-0.2.3-py3-none-any.whl

Download URL eigenlake-0.2.3-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca4dc25445a6e3ba068f7f761c305718c06e452555e27a0c81837860a489949d
BLAKE2b-256 checksum
How to use checksums
23bc27d2f792979b9bd4111764940b96b6179a29901d3830c2d296828efb9a0a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for eigenlake 0.2.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page