webcite-haystack
Haystack components for Webcite, one evidence suite for AI apps and agents: document parsing and OCR to Markdown, claim verification with verdicts, citations bound to source passages, and source search.
| Component | Import | What it does | Credits |
|---|---|---|---|
WebciteDocumentConverter |
haystack_integrations.components.converters.webcite |
PDFs, scans, images, spreadsheets and office files (paths, ByteStreams or https:// URLs) to Markdown Documents |
Per page, at cost; upload is free |
WebciteWebSearch |
haystack_integrations.components.websearch.webcite |
Sources for a query as Documents (passage as content; URL, title, stance in meta) and links |
2 per search |
WebciteClaimVerifier |
haystack_integrations.components.verifiers.webcite |
A verdict per claim, with the citations it rests on as Documents |
4 per claim |
Prices are on webcite.co/pricing. The Free plan includes 100 credits, renewing every 30 days while credits remain.
Install
pip install webcite-haystack
export WEBCITE_API_KEY=... # create one at https://webcite.co/api-keys
Python 3.10 or newer, Haystack 2.x. The key is read through a Haystack Secret
(Secret.from_env_var("WEBCITE_API_KEY") by default), so pipelines serialize without it.
Convert documents to Markdown
from haystack_integrations.components.converters.webcite import WebciteDocumentConverter
converter = WebciteDocumentConverter() # mode="lite" for the faster, cheaper read
docs = converter.run(sources=["https://www.irs.gov/pub/irs-pdf/fw9.pdf"])["documents"]
print(docs[0].meta)
print(docs[0].content.splitlines()[0])
Output for page 1 of the form, from the response recorded from the API (webcite.co/samples/doc-irs-w9.json):
{'source': 'https://www.irs.gov/pub/irs-pdf/fw9.pdf', 'state': 'complete', 'pages': 1, 'credits': 0.4966}
Form **W-9**
Check meta["state"]: anything other than complete comes with meta["reason"] naming what was
not read. The request stays open until every page is read; there is no job to poll.
Verify claims
from haystack_integrations.components.verifiers.webcite import WebciteClaimVerifier
verifier = WebciteClaimVerifier(max_citations=2)
out = verifier.run(claims=["The Great Wall of China is visible from the Moon with the naked eye."])
print(out["verdicts"][0]["result"], out["verdicts"][0]["credits"])
for doc in out["documents"]:
print(doc.meta["stance"], doc.meta["url"])
Output, from the response recorded from the API on 24 November 2026 (webcite.co/samples/claim-great-wall.json):
contradicted 4
contradicts https://www.nasa.gov/image-article/great-wall/
inconclusive https://www.britannica.com/question/Can-you-see-the-Great-Wall-of-China-from-space
Each document's content is the source passage the citation is bound to. Pass source_urls to
check claims against given pages instead of a web search. verdicts[i]["response"] keeps the full
API response.
Search sources
from haystack_integrations.components.websearch.webcite import WebciteWebSearch
search = WebciteWebSearch(top_k=3)
result = search.run(query="Apple total net sales fiscal 2024")
print(result["links"])
In a pipeline
See examples/pipeline.py. All three components support to_dict and
from_dict, so pipelines round-trip through YAML.
The same capabilities are also available to any MCP client from the hosted server at
https://api.webcite.co/mcp (OAuth or API key).
Development
make install # uv sync --all-groups
make check # ruff, mypy, pytest
make build # wheel and sdist in dist/
Tests run against recorded API responses in tests/fixtures with sockets disabled, so no test
reaches the network or spends credits.
Links
- Webcite API reference
- Webcite Python SDK
- Issues: https://github.com/strategyconnect/webcite-haystack/issues
- Support: support@webcite.co
MIT licensed.
Metadata
Release files for webcite-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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| webcite_haystack-0.1.0.tar.gz | 22.9 kB | Without provenance | Details for webcite_haystack-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| webcite_haystack-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for webcite_haystack-0.1.0-py3-none-any.whl |
Total release size: 32.9 kB
Release files / webcite_haystack-0.1.0.tar.gz
| Download URL | webcite_haystack-0.1.0.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6b5dea6061ac1d71dfbb7d844fafa47710b6b7cac530d6b5bb793ca384ffe981
|
|
BLAKE2b-256 checksum How to use checksums |
3e10697a5e6eb94401989ab16f6376117500dcc32c0a98b8ffba6d5b32aaa3ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / webcite_haystack-0.1.0-py3-none-any.whl
| Download URL | webcite_haystack-0.1.0-py3-none-any.whl |
|---|---|
| Size | 10.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6209bb43cc5444f28bf3192d668eadd4ed76a2d590af825383fb2fa5d00cb76
|
|
BLAKE2b-256 checksum How to use checksums |
edbe8eb0f5d17103d28bc53f1304bb2e4049388b221ae5bd04e44a0af51074df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for webcite-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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.