Skip to main content

Modular, backend-agnostic interface for generating text embeddings. Provides a consistent Pythonic API for embedding text using various underlying providers.

Build Status Deploy Status Codecov Black code style License PyPi GitHub Pages

Key Features

  • Unified Embedding Interface: Use one client class for multiple backends.

  • Default OpenAI Support: Integrates seamlessly with OpenAI’s Embedding API.

  • Extensible Design: Easy to add new backends (e.g., Hugging Face).

Quick Start

  1. Install (using Make + Poetry):

    make install
  2. Set your environment variables (for example, OPENAI_API_KEY for OpenAI).

  3. Use the embedding client:

    from darca_embeddings import EmbeddingClient
    
    client = EmbeddingClient()
    embedding = client.get_embedding("Hello World!")
    print(embedding)

Documentation

We use Sphinx for building documentation. See docs/source/ for the reST files. You can build the docs locally by:

make docs

Contributing

Contributions are welcome! See the CONTRIBUTING.rst for more details.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Author

Roel Kist

Release files for darca-embeddings 0.1.1

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

Source distribution (sdist)

Source distribution for darca-embeddings 0.1.1
File Size Uploaded
darca_embeddings-0.1.1.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for darca-embeddings 0.1.1
File Interpreter ABI Platform
darca_embeddings-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / darca_embeddings-0.1.1.tar.gz

Download URL darca_embeddings-0.1.1.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
90ee2136799a3e437768b0dea70177cc63fb097d23977432e2e7c88b6f269391
BLAKE2b-256 checksum
How to use checksums
4a56137ea4b46e97e8629a13167766b758277113a159480a9dfb61940bced8b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2025.

Transparency log

Release files / darca_embeddings-0.1.1-py3-none-any.whl

Download URL darca_embeddings-0.1.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
528211fb801cf915aded891577d7d031abf842b4aa26828a384a79a981bd03f1
BLAKE2b-256 checksum
How to use checksums
c2006dc2cab7cf4b58cbd6ba9005fa5d8991a1efaf2479b5475210902399bcbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 30, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.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