Abstraction layer for embeddings.
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file darca_embeddings-0.1.1.tar.gz.
File metadata
- Download URL: darca_embeddings-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90ee2136799a3e437768b0dea70177cc63fb097d23977432e2e7c88b6f269391
|
|
| MD5 |
70da3052dfcf8915c671ad90df11725f
|
|
| BLAKE2b-256 |
4a56137ea4b46e97e8629a13167766b758277113a159480a9dfb61940bced8b1
|
Provenance
The following attestation bundles were made for darca_embeddings-0.1.1.tar.gz:
Publisher:
cd.yml on roelkist/darca-embeddings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
darca_embeddings-0.1.1.tar.gz -
Subject digest:
90ee2136799a3e437768b0dea70177cc63fb097d23977432e2e7c88b6f269391 - Sigstore transparency entry: 189979893
- Sigstore integration time:
-
Permalink:
roelkist/darca-embeddings@bc920fb066743efbeaa8d9313c204abeddc75e47 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/roelkist
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@bc920fb066743efbeaa8d9313c204abeddc75e47 -
Trigger Event:
release
-
Statement type:
File details
Details for the file darca_embeddings-0.1.1-py3-none-any.whl.
File metadata
- Download URL: darca_embeddings-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
528211fb801cf915aded891577d7d031abf842b4aa26828a384a79a981bd03f1
|
|
| MD5 |
51dead2c77d357b3a4afc240e88f1e94
|
|
| BLAKE2b-256 |
c2006dc2cab7cf4b58cbd6ba9005fa5d8991a1efaf2479b5475210902399bcbb
|
Provenance
The following attestation bundles were made for darca_embeddings-0.1.1-py3-none-any.whl:
Publisher:
cd.yml on roelkist/darca-embeddings
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
darca_embeddings-0.1.1-py3-none-any.whl -
Subject digest:
528211fb801cf915aded891577d7d031abf842b4aa26828a384a79a981bd03f1 - Sigstore transparency entry: 189979894
- Sigstore integration time:
-
Permalink:
roelkist/darca-embeddings@bc920fb066743efbeaa8d9313c204abeddc75e47 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/roelkist
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
cd.yml@bc920fb066743efbeaa8d9313c204abeddc75e47 -
Trigger Event:
release
-
Statement type: