Skip to main content

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 without web.

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: a Secret. It defaults to the environment variable POLIAS_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.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for polias-haystack 0.1.0
File Size Uploaded Provenance Actions
polias_haystack-0.1.0.tar.gz 6.2 kB With provenance Details for polias_haystack-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for polias-haystack 0.1.0
File Interpreter ABI Platform Actions
polias_haystack-0.1.0-py3-none-any.whl Python 3 none any Details for polias_haystack-0.1.0-py3-none-any.whl

Total release size: 12.4 kB

Release files / polias_haystack-0.1.0.tar.gz

Download URL polias_haystack-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
939cab55c38a23c7b18527654f97498dcd8acbef86034fed6efaf3620c621152
BLAKE2b-256 checksum
How to use checksums
4ab09947d72e2b73c0643b3a43c6467b2d960a24633fba7c623176fa68c83919
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 log

Release files / polias_haystack-0.1.0-py3-none-any.whl

Download URL polias_haystack-0.1.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8152b93753b9540f2a06f3e2524860f4951410f4dbb28442cdba594990479a4a
BLAKE2b-256 checksum
How to use checksums
26b01528ee95d136ea041b13023b9ff0262aae8ba5e04e582898670b2475d658
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 log

Security for polias-haystack 0.1.0

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.

Select from 2 files

Attestation for polias_haystack-0.1.0.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 log

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page