SIE integration for Haystack
Project description
sie-haystack
SIE integration for Haystack.
Installation
pip install sie-haystack
Imports
Preferred import paths follow Haystack's namespace convention:
from haystack_integrations.components.embedders.sie import (
SIEDocumentEmbedder,
SIETextEmbedder,
)
from haystack_integrations.components.rankers.sie import SIERanker
from haystack_integrations.components.extractors.sie import SIEExtractor
The legacy flat imports remain supported for compatibility:
from sie_haystack import SIEDocumentEmbedder, SIEExtractor, SIERanker, SIETextEmbedder
Usage
from haystack import Document
from haystack_integrations.components.embedders.sie import SIEDocumentEmbedder, SIETextEmbedder
from haystack_integrations.components.rankers.sie import SIERanker
# Embed a query
text_embedder = SIETextEmbedder(base_url="http://localhost:8080", model="BAAI/bge-m3")
result = text_embedder.run(text="What is machine learning?")
query_embedding = result["embedding"]
# Embed documents
doc_embedder = SIEDocumentEmbedder(base_url="http://localhost:8080", model="BAAI/bge-m3")
docs = [Document(content="Python is a programming language.")]
result = doc_embedder.run(documents=docs)
embedded_docs = result["documents"]
# Rerank documents
ranker = SIERanker(
base_url="http://localhost:8080",
model="jinaai/jina-reranker-v2-base-multilingual"
)
result = ranker.run(query="What is Python?", documents=embedded_docs, top_k=3)
ranked_docs = result["documents"]
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 sie_haystack-0.3.0.tar.gz.
File metadata
- Download URL: sie_haystack-0.3.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7450df95b79ee68b10e8b38c9a9a35c824208de7caa85f9f39859bcf27458520
|
|
| MD5 |
8eae0ca8e7eeac9c88809395fff3f00e
|
|
| BLAKE2b-256 |
132816389bd67f5f20fb691a297b930530c279f1316b383f1d3cc2a6648c7988
|
Provenance
The following attestation bundles were made for sie_haystack-0.3.0.tar.gz:
Publisher:
release-python.yml on superlinked/sie-internal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sie_haystack-0.3.0.tar.gz -
Subject digest:
7450df95b79ee68b10e8b38c9a9a35c824208de7caa85f9f39859bcf27458520 - Sigstore transparency entry: 1400372014
- Sigstore integration time:
-
Permalink:
superlinked/sie-internal@6460f8bc0a9709957c4e9263dc08f0e70868a083 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/superlinked
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-python.yml@6460f8bc0a9709957c4e9263dc08f0e70868a083 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sie_haystack-0.3.0-py3-none-any.whl.
File metadata
- Download URL: sie_haystack-0.3.0-py3-none-any.whl
- Upload date:
- Size: 10.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1de0c10245fb5fa8989696325adcdad18d3e09ffe3c6d30bbd6821e68b2c805e
|
|
| MD5 |
48608cbdca28907066f3cd198ad74819
|
|
| BLAKE2b-256 |
f890abcefa4dbb6fba873ec582eac6ea92f5f08abef534333a569f1a9b9bf9af
|
Provenance
The following attestation bundles were made for sie_haystack-0.3.0-py3-none-any.whl:
Publisher:
release-python.yml on superlinked/sie-internal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sie_haystack-0.3.0-py3-none-any.whl -
Subject digest:
1de0c10245fb5fa8989696325adcdad18d3e09ffe3c6d30bbd6821e68b2c805e - Sigstore transparency entry: 1400372141
- Sigstore integration time:
-
Permalink:
superlinked/sie-internal@6460f8bc0a9709957c4e9263dc08f0e70868a083 -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/superlinked
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-python.yml@6460f8bc0a9709957c4e9263dc08f0e70868a083 -
Trigger Event:
push
-
Statement type: