Modular, backend-agnostic interface for generating text embeddings. Provides a consistent Pythonic API for embedding text using various underlying providers.
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
Install (using Make + Poetry):
make installSet your environment variables (for example, OPENAI_API_KEY for OpenAI).
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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| darca_embeddings-0.1.1.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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