Skip to main content

EigenDB's Official Python SDK 🐍

OpenAI Ollama

A Python client for EigenDB's REST API.

Installation

pip install eigen-client

Example usage:

import os
from eigen_client.client import Client
from eigen_client.data_types import Document

client = Client(
    url="http://localhost:8080",
    api_key="eigendb-***",
)

index = client.create_index_from_model(
    index_name="food-facts",
    model_name="text-embedding-3-small",
    model_provider="openai",
    model_provider_api_key="your openai api key..."
)

documents = [
    Document(id=1, data="Fresh herbs boost flavor.", metadata={"recipe_id": "123"}),
    Document(id=2, data="Slow simmer blends soup.", metadata={"recipe_id": "456"}),
    Document(id=3, data="Homemade bread smells great.", metadata={"recipe_id": "789"}),
    Document(id=4, data="Grilled veggies taste sweeter.", metadata={"recipe_id": "987"}),
    Document(id=5, data="Cast iron sears steak well.", metadata={"recipe_id": "654"})
]

index.upsert_docs(documents)

results = index.search_docs(
    string="Baking",
    k=3
)

print(results)

Documentation

Documentation can be found here!

Made with ❤️ by developers, for developers.

Metadata

Release files for eigen-client 1.0.4

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

Source distribution (sdist)

Source distribution for eigen-client 1.0.4
File Size Uploaded
eigen_client-1.0.4.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for eigen-client 1.0.4
File Interpreter ABI Platform
eigen_client-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / eigen_client-1.0.4.tar.gz

Download URL eigen_client-1.0.4.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
0784d9cd32c2e7129c1a6eacc9a8b7422f4ba379afe6947d49fc166084611860
BLAKE2b-256 checksum
How to use checksums
bbb3167e8e44d248a948e33d79365e3a497daaae7898892084588748d1dfe4ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.5

Release files / eigen_client-1.0.4-py3-none-any.whl

Download URL eigen_client-1.0.4-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1b98ec5d4b87cf64689e7149f17a8fc307a2d365e25118a4d5ee76fd5634e7b0
BLAKE2b-256 checksum
How to use checksums
abbb05b6f9d74991257e47cf66c1f61236435518112ffbd6261e3fd2cdcb451b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.5

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

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