Keep provenance attached to every chunk.
A retrieval pipeline fails quietly when Boilerplate HTML pollutes embeddings or when a chunk loses the URL it came from. Every Vera extraction returns data.url (the canonical resolved address), data.title, main-content Markdown and a heuristic quality score in the same JSON envelope.
Splitting Markdown on heading boundaries preserves section context while keeping the original source URL and fetch timestamp in your vector metadata so downstream answers can cite exact pages.
Reject thin or broken pages before embedding.
Pass markdown: true and a min_quality_score threshold on /api/vera/v1/scrape. When a public page returns an empty shell, an error screen or thin boilerplate below your threshold, Vera rejects the read and refunds the reserved credit.
import os, requests
resp = requests.post(
"https://vera.waggle.ae/api/vera/v1/scrape",
headers={"Authorization": f"Bearer {os.environ['VERA_API_KEY']}"},
json={"url": "https://example.com/docs", "markdown": True, "min_quality_score": 45},
timeout=30,
)
resp.raise_for_status()
payload = resp.json()["data"]
chunk_meta = {"source_url": payload["url"], "title": payload["title"]}Batch URL lists or bounded crawls with Collections.
When your index covers an entire documentation section, create a collection of up to 1,000 URLs or run a bounded same-origin crawl at 1 credit per completed page, then export JSON with main_content.markdown intact.
- Static HTML extraction uses 1 credit; isolated browser rendering uses 5 credits when JavaScript is required.
- Failed, blocked or quality-rejected requests cost zero credits.
- Vera reads permitted public pages only, honours robots.txt, and offers no login, paywall or CAPTCHA bypass.
- Vera has no residential or rotating proxies and cannot route requests through a country you choose.