SIE integration for Haystack
Project description
sie-haystack
SIE integration for Haystack.
Installation
pip install sie-haystack
Usage
from haystack import Document
from sie_haystack import SIETextEmbedder, SIEDocumentEmbedder, 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
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.1.10.tar.gz.
File metadata
- Download URL: sie_haystack-0.1.10.tar.gz
- Upload date:
- Size: 16.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
390b2d58f65a3dc6c452377b7976d4275a9182b3d5443973032dd092d12fd808
|
|
| MD5 |
767d6eb9ffd7340a7ca2a2c8c018e672
|
|
| BLAKE2b-256 |
b7f7488078fb2e423209c9b91a8e00ca9c4419caf6c97a551bfd0f00f51d5a31
|
Provenance
The following attestation bundles were made for sie_haystack-0.1.10.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.1.10.tar.gz -
Subject digest:
390b2d58f65a3dc6c452377b7976d4275a9182b3d5443973032dd092d12fd808 - Sigstore transparency entry: 1261918523
- Sigstore integration time:
-
Permalink:
superlinked/sie-internal@53f995076cbc369696d8f8e19df00783967e7593 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/superlinked
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-python.yml@53f995076cbc369696d8f8e19df00783967e7593 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sie_haystack-0.1.10-py3-none-any.whl.
File metadata
- Download URL: sie_haystack-0.1.10-py3-none-any.whl
- Upload date:
- Size: 9.0 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 |
a4d740dd5871f79320265cd03248dc0e4abb7851396969fbf80abdfa04d6c101
|
|
| MD5 |
3c8fca7f42ad8c63d4b455000bcabb11
|
|
| BLAKE2b-256 |
9cc1a5d9c9505bba6c20e26bcd83b82b847ca4a443266b8be7379f2efdf595ea
|
Provenance
The following attestation bundles were made for sie_haystack-0.1.10-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.1.10-py3-none-any.whl -
Subject digest:
a4d740dd5871f79320265cd03248dc0e4abb7851396969fbf80abdfa04d6c101 - Sigstore transparency entry: 1261918542
- Sigstore integration time:
-
Permalink:
superlinked/sie-internal@53f995076cbc369696d8f8e19df00783967e7593 -
Branch / Tag:
refs/tags/v0.1.10 - Owner: https://github.com/superlinked
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-python.yml@53f995076cbc369696d8f8e19df00783967e7593 -
Trigger Event:
push
-
Statement type: