# Groundwork > Connect sources, index them, ask with cited answers, and measure answers with evals. For language models: https://groundwork.computer/llms.md ## Docs - [Answer format](https://groundwork.computer/docs/answer-format.md): This page describes the XML answer document, its elements, its Markdown form, and the citation check that runs on every answer. - [API and MCP](https://groundwork.computer/docs/api-and-mcp.md): Ask your files from code over the API, or from an agent over MCP, with the key the demo gives you. The samples on this page name this site, so they work as you copy them. - [Ask and search](https://groundwork.computer/docs/ask.md): This page covers how a question becomes an answer: the three answer paths, automatic routing, the options you can set, and what comes back. - [Concepts](https://groundwork.computer/docs/concepts.md): This page defines the terms used across the Groundwork docs and points at the code or spec behind each one. - [Evals and golden sets](https://groundwork.computer/docs/evals.md): This page covers the golden set format, how answers are scored against it, the eval runner and its output files, and the sweeps that are planned on top. - [Freshness](https://groundwork.computer/docs/freshness.md): This page covers how soon new or changed data becomes searchable: the two indexing lanes, the proposed guarantee, and what is measured today. - [Introduction](https://groundwork.computer/docs/introduction.md): This page explains what Groundwork does, how its parts fit together, and where to read next. - [Labeling](https://groundwork.computer/docs/labeling.md): This page covers the labeling and data review tool: what can be labeled, the queue built today, the label data model, and how labels feed evals. - [Pipeline and adapters](https://groundwork.computer/docs/adapters.md): This page covers the ports a Groundwork pipeline is made of, the adapters available for each, how adapters are named and versioned, and the benchmark each port runs. - [Projects and keys](https://groundwork.computer/docs/projects-and-keys.md): This page describes the planned account model for the hosted service (organizations, projects, API keys, members and roles) and how the control plane and data plane divide the work. - [Quickstart](https://groundwork.computer/docs/quickstart.md): Run the San Francisco demo on your own machine: fetch public data, ask a question, read the cited answer and run an eval. You need [Deno](https://deno.com) 2 and [uv](https://docs.astral.sh/uv/), and every command runs from the root of the Groundwork repository. Everything runs locally except the written answer, which goes through a local Claude subscription. - [Scorecard](https://groundwork.computer/docs/scorecard.md): This page explains how the scorecard is built, what each row measures, the thresholds behind each light, and where each cell's value comes from. - [Sources](https://groundwork.computer/docs/sources.md): This page lists the source kinds Groundwork can read today, those that are planned, and how ingest and in-place sources differ. - [Try your own files](https://groundwork.computer/docs/your-files.md): Add files to the demo at [/demo/start](/demo/start), watch them build into an index, and ask them questions with citations. You can then reach the same index from a terminal or an agent with a key. Everything you add is private to your browser and deleted after three hours. ## API OpenAPI: https://groundwork.computer/openapi.json. Web: an id.orgsoft.org key, `Authorization: Bearer om_sk_…`, or a Greenfield license token. Each call is charged to its account. - `POST https://groundwork.computer/v1/web/fetch`: Read a public web page and return its main text, without menus or ads, up to 60,000 characters. Takes an id.orgsoft.org key and is charged to its account; `meta.charge_usd` says what it cost. - `POST https://groundwork.computer/v1/web/search`: Search the web and return the top results, each with its title, link and snippet. Takes an id.orgsoft.org key and is charged to its account; `meta.charge_usd` says what it cost. Projects: an organization key, `Authorization: Bearer gwo_…`, or an id.orgsoft.org key, `om_sk_…`, makes projects and keys. A project key, `gwp_…`, opens one project. - `POST https://groundwork.computer/v1/projects`: Make an empty project. Each project is isolated: its own files, index and build, and nothing it holds is read by another project. Make one for each of your clients. Takes the organization key. - `GET https://groundwork.computer/v1/projects`: The organization's projects. Takes the organization key. - `DELETE https://groundwork.computer/v1/projects/{project}`: Delete a project with all its files and its index, and revoke every key that opened it. Takes the organization key. - `POST https://groundwork.computer/v1/keys`: Make a key. With `project`, it opens only that project, for `read` (search and ask), `write` (add and build) or both. Without one, it is another organization key. The key is in the reply once and never stored; keep it on your server. To rotate, make a new key, switch to it, then revoke the old one. - `GET https://groundwork.computer/v1/keys`: Every key the organization has made, revoked ones included, without their secrets. Takes the organization key. - `DELETE https://groundwork.computer/v1/keys/{id}`: Revoke a key. It stops working at once. Takes the organization key. - `POST https://groundwork.computer/v1/projects/{project}/add`: Add one of: plain text, such as notes or a transcript, kept as a Markdown file named for its title; a public web page by its `url`, read as text; or a small file as base64 `file` with its `name`. Tags let search and ask read some files only. Build the project once you have added everything. - `PUT https://groundwork.computer/v1/projects/{project}/files`: Add one file up to 100 MB, its bytes as the body: a PDF, Word, PowerPoint, Excel, CSV, Markdown, text or captions file. Build the project once you have added everything. - `GET https://groundwork.computer/v1/projects/{project}/files`: The project's files. - `DELETE https://groundwork.computer/v1/projects/{project}/files/{id}`: Remove a file, and its passages from the index. - `POST https://groundwork.computer/v1/projects/{project}/build`: Build what was added, so search and ask read it. A build already queued or running is the one you get. - `GET https://groundwork.computer/v1/projects/{project}/build`: Where the build stands: `none`, `queued`, `run`, `done` or `err`, with its steps and files. - `POST https://groundwork.computer/v1/projects/{project}/search`: The passages that best match a query, best first. No model call. - `POST https://groundwork.computer/v1/projects/{project}/ask`: A prompt answered from the project's files, citing each claim with `[^s1]` markers. `mode` is `chat` (one search, then an answer), `agent` (plans, searches, queries tables and draws charts) or `auto`, which picks agent only for counting or charting over tables. Search reads the prompt alone, so put the words that find the evidence there, and how the answer should read in `instructions`. Send earlier turns as `messages`; nothing is stored. With `format` of `json` or `csv`, the answer also comes back in that shape as `data`, matching `schema` or `columns`. Sessions, for trying it out: every call sends `Authorization: Bearer gwd_…`, a key from `POST https://groundwork.computer/v1/sessions` or the get started page at https://groundwork.computer/demo/start. - `POST https://groundwork.computer/v1/sessions`: Start an empty session and get its key, with no page and no files yet. Then add files and sources, wait for `GET /v1/build`, and ask. The key is shown once. A session holds the same files, bytes and answers as one made on the get started page, is deleted after three idle hours, and each client address may start a few an hour. - `GET https://groundwork.computer/v1/build`: Where the session's build stands: `none` before any file, `queued` or `run` while it builds, then `done` or `err`. `built` is true once there is an index to ask, which can be while a newer build runs. Adding a file or source starts a build on its own. - `POST https://groundwork.computer/v1/ask`: Answer a question from your files. The answer is Markdown with `[^s1]` markers, each naming one of `sources` by its id. Each source gives the uploaded `file` it came from, a short `excerpt`, and its `page` or `start` in seconds. `instructions` shape the answer's form and voice and never change what counts as evidence. `thread` holds the earlier turns of a conversation, so a follow-up such as "and then?" is read in context; reading it counts as one more answer. - `POST https://groundwork.computer/v1/search`: The passages that best match a query, best first. No model call, so it costs nothing and keeps working after the key's answers are used up. - `POST https://groundwork.computer/v1/agent`: Run Groundwork's agent over your files as the product `instructions` describe: it searches, queries tables and draws charts, then answers with citations. Charts come back as data in `figures`, and diagrams as SVG. - `POST https://groundwork.computer/v1/sources`: Add a web page, a YouTube video, a Google Drive file shared by link, or a service by name: `notion`, `slack` or `drive`. A service you haven't signed in to answers `wait` with a `signIn` link; open it, then send the same call again. The files build again on their own. - `PUT https://groundwork.computer/v1/files`: Add one file, its bytes as the body: a PDF, Word, PowerPoint, Excel, CSV, Markdown, text or captions file. The files build again on their own. - `POST https://groundwork.computer/mcp`: Model Context Protocol over streamable HTTP, one JSON-RPC message at a time, with the `ask`, `search` and `add` tools.