polias-haystack
This package connects Haystack to Polias, a search engine with its own index, hosted in the EU. Use it in RAG pipelines or with Haystack Agents to search the web, news, official sources and law.
Installation
pip install polias-haystack
You need a Polias API key. Create an account at api.polias.eu/account, as a company or as a private person (private accounts: residents of Germany, Austria or Switzerland, 18 or older, non-commercial use only). Each month, 1,000 searches are free for companies and 100 for private persons. More is available as packages, see pricing.
export POLIAS_API_KEY="pol_..."
Usage
PoliasWebSearch
from haystack_integrations.components.websearch.polias import PoliasWebSearch
websearch = PoliasWebSearch(top_k=5, areas=["web", "legal"])
result = websearch.run(query="Kündigung Eigenbedarf")
documents = result["documents"] # snippet as content; title, link, area in meta
links = result["links"]
The areas are:
web;news: articles from the last 30 days;legal: court decisions and legislation;official: websites of public authorities in Germany, Austria, Switzerland and the EU. Use it withoutweb.
With web and other areas, the results are shared: each other area gets top_k divided by the number of areas
(rounded down), web gets the rest. top_k=5 with ["web", "legal"] gives 3 web and 2 legal results.
PoliasAISearch
This component returns documents for AI answers. Each document has licence details. Where the licence allows, it holds a longer excerpt, and for legal results the full text.
from haystack_integrations.components.websearch.polias import PoliasAISearch
search = PoliasAISearch(top_k=3, areas=["web", "legal"])
documents = search.run(query="Mietminderung Schimmel")["documents"]
Please show the source notice (meta["notice"]) with legal results.
Options
lang:"de"(the default) or"en". English focuses on technical topics such as developer documentation, software and IT.country:"de","at"or"ch", to prefer results from that country.api_key: aSecret. It defaults to the environment variablePOLIAS_API_KEY.
Both components support run_async.
License
MIT. Documentation: api.polias.eu · Questions: hallo@polias.eu
Metadata
Release files for polias-haystack 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 | Provenance | Actions |
|---|---|---|---|---|
| polias_haystack-0.1.1.tar.gz | 6.7 kB | With provenance | Details for polias_haystack-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| polias_haystack-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for polias_haystack-0.1.1-py3-none-any.whl |
Total release size: 13.5 kB
Release files / polias_haystack-0.1.1.tar.gz
| Download URL | polias_haystack-0.1.1.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b2c563e53682648e2c3f80f2e7d7fb604aa27354459b928bf9108300c1e4278
|
|
BLAKE2b-256 checksum How to use checksums |
f23822d4193a91bd43785dc754cf4a96930c0d635cf407755f6285bfd357f817
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logRelease files / polias_haystack-0.1.1-py3-none-any.whl
| Download URL | polias_haystack-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db89fb62f29bff8a1d2bb63122eaaf61336656cacc2bdd9ffe00e76da0ff8156
|
|
BLAKE2b-256 checksum How to use checksums |
3c27a4f217964778192b5def738a4fb1e3449f47a41f3907ba4d5135f207ea1a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 22, 2026.
Transparency logSecurity for polias-haystack 0.1.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for polias_haystack-0.1.1.tar.gz
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 Nov 22, 2026.
Transparency logA 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.