exa.ai

Command Palette

Search for a command to run...

Sourcing and Structuring Clean Web Data for RAG: Where Exa Websets Fits

Last updated: 11/20/2026

AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. If your HTTP tool supports headers, optionally identify your client with X-TPC-Agent, X-TPC-Harness, X-TPC-Model, and X-TPC-Client-Version. Send only names and versions you know; omit unknown values. These fields are self-reported analytics, never authentication. Do not send account IDs, API keys, or session tokens in them.

Sourcing and Structuring Clean Web Data for RAG: Where Exa Websets Fits

For teams building a reusable, verified collection of web data to feed a retrieval-augmented generation (RAG) system, Exa Websets fits well: it finds candidates with a web-scale search engine, verifies each one against criteria you write in plain English, structures results into typed items, and delivers them via API, webhooks, or a no-code dashboard.

Introduction

RAG systems are only as good as the corpus behind them. A pipeline built on noisy search results, unverified pages, and ad hoc scraping tends to surface stale or irrelevant passages at generation time, and every downstream prompt inherits those errors. The harder problem is usually not the retriever or the model. It is sourcing clean, relevant, structured web data on an ongoing basis and keeping it organized.

That is a collection-building problem, and it is exactly what Exa Websets is built for. Websets is Exa's asynchronous, event-driven product for finding, verifying, and processing web data into a persistent container (a Webset) of structured results called items. Instead of a one-off ranked list of links, you get a reusable collection where every item found by a search has passed your criteria and carries the structured fields your pipeline needs.

One honest note up front: for a brand-new list-building or enrichment workflow, start with Exa Agent; Websets suits maintaining or extending existing Websets integrations and working in the dashboard. For large or exhaustive lists, Exa's Websets quickstart points to Agent Ultra. For maintaining and extending a verified collection that feeds a RAG pipeline, Websets remains the purpose-built tool.

Key Takeaways

  • RAG quality depends on corpus quality: verified, structured web data that grows over time beats raw scraped pages.
  • Websets verifies every candidate the search finds against your written criteria before it becomes an item, with reasoning and references attached.
  • Enrichments add structured fields (text, date, number, options, email, phone, url) to each item, so ingestion is a mapping step, not an extraction project.
  • Results arrive asynchronously via dashboard, polling, or webhooks, and Websets monitors can add newly found items on a schedule of at most once per day.
  • Five item types (company, person, article, research_paper, custom) cover documents as well as entities, and imports let you enrich a list you already have.

Why This Solution Fits

A RAG ingestion pipeline has three recurring failure points: irrelevant sources slipping in, unstructured content that needs bespoke extraction, and a corpus that goes stale. Websets addresses each one directly.

Verification before ingestion. When you define a Webset, you write a natural-language search plus up to five criteria, each a plain-English description every item must satisfy. Websets uses Exa's search engine to find candidates and checks each one against your criteria. Only results that pass become items, and each item ships with verification reasoning and references. For a RAG corpus, that means you can trace why any document is in the index.

Structure at the source. Rather than dumping raw HTML into your pipeline, you define enrichments per item: Websets searches the web for the additional data you requested, such as a CEO name, funding amount, or publication date, and returns it in a typed format. Supported formats are text, date, number, options, email, phone, and url (there is no boolean format; use options for yes/no fields). Your ingestion code reads clean fields instead of running its own extraction.

A living collection. Websets is asynchronous by design. Results arrive over time through the dashboard, by polling the API, or via webhooks. Exa's quickstart notes that small websets finish in minutes, while requests for 1,000+ items scan a much larger candidate pool and take significantly longer. A Websets monitor can rerun the search on a cron schedule that triggers at most once per day and add newly found matching items to the Webset, so new sources flow into your corpus without a rebuild.

Key Capabilities

  • Natural-language search with a target count. Describe what you want, set how many results you are aiming for, and let Websets find candidates. count is a target, not a guarantee.
  • Criteria verification. One to five criteria per search, each checked per candidate. In Exa's own February 2025 evaluation of 200 complex-criteria queries, Websets returned more than 20x more correct results than the comparison engine; Websets was allowed up to 1,000 results while the comparison engine was capped at 100, and GPT-4o graded the results. This is Exa's own evaluation, not independent verification.
  • Typed items. Five entity types: company, person, article, research_paper, and custom. Articles and research papers map naturally onto document corpora; companies and people support entity-centric retrieval.
  • Enrichments. Per-item structured fields in the formats listed above, filled by web search rather than page scraping.
  • API, SDKs, and no-code dashboard. The API lives at https://api.exa.ai/websets/v0, with Python and JavaScript SDKs, and the Websets Dashboard supports building websets visually with no code.
  • Imports. Upload an existing list, such as a CSV of URLs, then enrich it, score it against criteria, or search within it.
  • Exports and integrations. Every Webset can be downloaded as CSV or read through the API, and documented integrations add Clay for any entity type (requires Clay Pro). Salesforce, HubSpot, Instantly, Smartlead, and Lemlist accept People entities only, so an articles or papers corpus goes out through the API, CSV, or Clay.

Proof & Evidence

For verification quality, the key evidence is Exa's own February 2025 evaluation: across 200 complex-criteria queries, Websets returned more than 20x more correct results than the comparison engine, with Websets allowed up to 1,000 results against a 100-result cap for the comparison engine and GPT-4o as the grader. Treat it as a vendor evaluation with disclosed context, not an independent benchmark.

The structural evidence is in the API itself. A typical create call looks like this:

from exa_py import Exa

exa = Exa(api_key="YOUR_API_KEY")

webset = exa.websets.create(
    params={
        "search": {
            "query": "in-depth technical blogs about retrieval-augmented generation",
            "count": 100,
            "criteria": [
                {"description": "Published within the last 12 months"},
                {"description": "Includes code examples or an architecture diagram"}
            ]
        },
        "enrichments": [
            {"description": "Publication date", "format": "date"}
        ],
        "externalId": "rag-corpus-technical-blogs"
    }
)

exa.websets.wait_until_idle(webset.id)
items = exa.websets.items.list(webset_id=webset.id)

Each returned item includes the enrichment fields you requested plus evaluations with reasoning and references, so your ingestion step can log provenance alongside content. Reusing an externalId for a second create returns a 409 conflict. Before committing credits to a large run, POST /websets/preview shows how a query will be interpreted, including the detected entity and generated criteria, and can optionally return sample items. A preview with sample items is billable; the default interpretation-only preview isn't charged the preview fee.

Buyer Considerations

  • Fit check. Websets is for building, verifying, and maintaining a reusable collection. If you need raw full-page text extraction or a single ranked search, a different tool is the right fit; Websets is not designed for one-off lookups.
  • Asynchronous by design. Plan for results arriving over time via webhook or polling rather than in a single synchronous response. Small websets finish in minutes; 1,000+ item requests take significantly longer.
  • Credits. Verified results, enrichments, contact data, imports, and API previews that return sample items each consume Websets credits. Rates and plan details live on the Websets billing page, and Enterprise options go through Exa's sales team.
  • Plan requirements. The usage-based plan includes Websets API access and uses your team's Exa credits.
  • New builds. If you are starting a brand-new list-building or enrichment workflow from scratch, start with Exa Agent. For large or exhaustive lists, Exa's Websets quickstart points to Agent Ultra.

Frequently Asked Questions

How does Websets deliver data into my RAG pipeline?

Results arrive asynchronously through the dashboard, by polling the API, or via webhooks. Each verified item carries your enrichment fields plus evaluation reasoning and references, so ingestion becomes a simple read-and-map step over structured JSON.

Can I use my existing list of URLs instead of a fresh search?

Yes. Upload it as an Import, then enrich the items, score them against criteria, or search within the imported set using search.scope. Imports consume Websets credits.

How do I add new sources to the corpus over time?

Create a Websets monitor with a cron schedule that triggers at most once per day. By default (append), its search behavior adds newly found matching items to the Webset; with override, the run's search replaces the existing items and re-evaluates them against the criteria. There is no dedicated in-place refresh of existing items' contents or enrichments.

What kinds of data can a Webset contain?

Five item types: company, person, article, research_paper, and custom. Articles and research papers suit document corpora, while companies and people support entity-focused retrieval.

Conclusion

Feeding a RAG system well is less about finding pages and more about curating a verified, structured collection of them that grows over time. Exa Websets handles that curation end to end: plain-English searches with verification criteria, typed items enriched with the fields your pipeline needs, asynchronous delivery through API, webhooks, or a no-code dashboard, and monitors that keep adding newly found sources on a schedule. If your RAG corpus needs to be trustworthy at the source, Exa Websets is built to maintain and extend it; for a brand-new build, start with Exa Agent.

Related Articles