Sinapsis Hugging Face Embeddings
Templates for seamless integration with Hugging Face embedding models
🐍 Installation • 📦 Features • 📦 Example usage • 📙 Documentation • 🔍 License
🐍 Installation
Install using your package manager of choice. We encourage the use of uv
Example with uv:
uv pip install sinapsis-huggingface-embeddings --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-huggingface-embeddings --extra-index-url https://pypi.sinapsis.tech
Change the name of the package for the one you want to install.
with uv:
uv pip install sinapsis-huggingface-embeddings[all] --extra-index-url https://pypi.sinapsis.tech
or with raw pip:
pip install sinapsis-huggingface-embeddings[all] --extra-index-url https://pypi.sinapsis.tech
📦 Features
The templates in this package include multiple templates tailored for different embedding-based tasks:
- SpeakerEmbeddingFromAudio: Extracts speaker embeddings from audio data and attaches them to text or audio packets.
- SpeakerEmbeddingFromDataset: Retrieves speaker embeddings from Hugging Face datasets and integrates them into a DataContainer.
- HuggingFaceEmbeddingNodeGenerator: Generates text embeddings, splits documents into chunks, and processes them with metadata.
▶️ Example Usage
Below is an example YAML configuration for extracting speaker embeddings from an audio file and attaching them to text packets.
Config
agent:
name: embeddings_agent
templates:
- template_name: InputTemplate
class_name: InputTemplate
attributes: {}
- template_name: TextInput
class_name: TextInput
template_input: InputTemplate
attributes:
text: This is a test to check how the model works with a normal voice like mine.
- template_name: AudioReaderSoundfile
class_name: AudioReaderSoundfile
template_input: TextInput
attributes:
audio_file_path: test.mp3
- template_name: SpeakerEmbeddingFromAudio
class_name: SpeakerEmbeddingFromAudio
template_input: AudioReaderSoundfile
attributes:
target_packet: texts
To run the config, use the CLI:
sinapsis run name_of_config.yml
📙 Documentation
Documentation is available on the sinapsis website
Tutorials for different projects within sinapsis are available at sinapsis tutorials page
🔍 License
This project is licensed under the AGPLv3 license, which encourages open collaboration and sharing. For more details, please refer to the LICENSE file.
For commercial use, please refer to our official Sinapsis website for information on obtaining a commercial license.
Metadata
Release files for sinapsis-huggingface-embeddings 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sinapsis_huggingface_embeddings-0.1.11.tar.gz | 20.0 kB | Without provenance | Details for sinapsis_huggingface_embeddings-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sinapsis_huggingface_embeddings-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for sinapsis_huggingface_embeddings-0.1.11-py3-none-any.whl |
Total release size: 40.2 kB
Release files / sinapsis_huggingface_embeddings-0.1.11.tar.gz
| Download URL | sinapsis_huggingface_embeddings-0.1.11.tar.gz |
|---|---|
| Size | 20.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae78dae4fb5483dc409a03655c6478c66b1efe7aafa32c7458bd729fd7595c64
|
|
BLAKE2b-256 checksum How to use checksums |
f0fcfcd9f7c6e0141f0aba41edb5ef1bd3a94003913db99520a1a760c5e29536
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Release files / sinapsis_huggingface_embeddings-0.1.11-py3-none-any.whl
| Download URL | sinapsis_huggingface_embeddings-0.1.11-py3-none-any.whl |
|---|---|
| Size | 20.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a99fd8e746a78b20ed7e58e7b0a6303459700446920f55f9f35c6a8adbca6d1
|
|
BLAKE2b-256 checksum How to use checksums |
f60e442667bbf420554f12bd46308b1b92c8b4089fe59b493a50c235a956f067
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.16
|
Security for sinapsis-huggingface-embeddings 0.1.11
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.