Skip to main content

langchain-polias

This package connects LangChain to Polias, a search engine with its own index, hosted in the EU. Agents can use it to search the web, news, official sources and law.

Installation

pip install -U langchain-polias

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_..."

Tools

from langchain_polias import PoliasAISearch, PoliasLegalSearch, PoliasSearch

search = PoliasSearch()
search.invoke({"query": "Kündigung Eigenbedarf", "areas": ["web", "legal"], "count": 5})
  • PoliasSearch returns results with title, URL and a short snippet. The areas are web, news (last 30 days), legal (court decisions and legislation) and official (websites of public authorities in Germany, Austria, Switzerland and the EU). The optional town field focuses local results, e.g. "Köln".
  • PoliasAISearch returns results for AI answers. Each result carries licence details and, where the licence allows, a longer excerpt. For legal results, the full text is included where the licence allows it.
  • PoliasLegalSearch searches court decisions and legislation from the EU and European countries. It returns court, case number, date, ECLI and source. Please show the source notice (notice) with the result.

With an agent:

from langchain.agents import create_agent

agent = create_agent(model, tools=[PoliasSearch(), PoliasLegalSearch()])  # any chat model with tool calling

Retriever

from langchain_polias import PoliasRetriever

retriever = PoliasRetriever(k=3, areas=["web", "legal"])
docs = retriever.invoke("Mietminderung Schimmel")

Options

All classes take these 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: use this instead of the environment variable.

Documentation: api.polias.eu · Questions: hallo@polias.eu

Metadata

Release files for langchain-polias 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 langchain-polias 0.1.0
File Size Uploaded Provenance Actions
langchain_polias-0.1.0.tar.gz 7.2 kB With provenance Details for langchain_polias-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 15.6 kB

Release files / langchain_polias-0.1.0.tar.gz

Download URL langchain_polias-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
31b45a0fc4b1a7251544f813a01e1290389824e44ddb26c8c16235d1f366d5f6
BLAKE2b-256 checksum
How to use checksums
593f2feb5cc2f437a373bde5404f5cf676b1583df381d3763294405b6f2036a4
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 / langchain_polias-0.1.0-py3-none-any.whl

Download URL langchain_polias-0.1.0-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24e39563af8df0672a82b62ae52c37203275682072332f0efa2922bbf3ee8fc4
BLAKE2b-256 checksum
How to use checksums
8fc6cf7af42854cc6d2b76717280ae977ff0439324f978ecf13c5382841b2a6d
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 langchain-polias 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 langchain_polias-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