> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Reducto database

> Reducto local sync in Corsair: the entities stored in your database, the `.search()` filters each one accepts, and the filter operators.

The Reducto plugin syncs data locally. Use `corsair.reducto.db.<entity>.search({ data, limit?, offset? })` with the filters listed per entity.

> [!NOTE]
>
> **New to Corsair?** See [database operations](https://docs.corsair.dev/concepts/database.md), [data synchronization](https://docs.corsair.dev/concepts/integrations.md), and [multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md).

## Classify Outputs

Path: `reducto.db.classifyOutputs.search`

```ts theme={null}
const rows = await corsair.reducto.db.classifyOutputs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `resultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `category` | `string` | equals, contains, startsWith, endsWith, in |
| `resultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `resultId` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Edit Form Fields

Path: `reducto.db.editFormFields.search`

```ts theme={null}
const rows = await corsair.reducto.db.editFormFields.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `fieldIndex` | `number` | equals, gt, gte, lt, lte, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Edit Outputs

Path: `reducto.db.editOutputs.search`

```ts theme={null}
const rows = await corsair.reducto.db.editOutputs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `documentUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Extract Citations

Path: `reducto.db.extractCitations.search`

```ts theme={null}
const rows = await corsair.reducto.db.extractCitations.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `citationIndex` | `number` | equals, gt, gte, lt, lte, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Extract Outputs

Path: `reducto.db.extractOutputs.search`

```ts theme={null}
const rows = await corsair.reducto.db.extractOutputs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `resultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `resultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `resultId` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Extract Records

Path: `reducto.db.extractRecords.search`

```ts theme={null}
const rows = await corsair.reducto.db.extractRecords.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `recordIndex` | `number` | equals, gt, gte, lt, lte, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Jobs

Path: `reducto.db.jobs.search`

```ts theme={null}
const rows = await corsair.reducto.db.jobs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `status` | `string` | equals, contains, startsWith, endsWith, in |
| `type` | `string` | equals, contains, startsWith, endsWith, in |
| `numPages` | `number` | equals, gt, gte, lt, lte, in |
| `totalPages` | `number` | equals, gt, gte, lt, lte, in |
| `duration` | `number` | equals, gt, gte, lt, lte, in |
| `providerCreatedAt` | `string` | equals, contains, startsWith, endsWith, in |
| `studioLink` | `string` | equals, contains, startsWith, endsWith, in |
| `responseType` | `string` | equals, contains, startsWith, endsWith, in |
| `pdfUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `parseResultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `parseResultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `parseResultId` | `string` | equals, contains, startsWith, endsWith, in |
| `extractResultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `splitResultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `splitResultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `splitResultId` | `string` | equals, contains, startsWith, endsWith, in |
| `classifyResultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `pipelineResultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `pipelineResultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `pipelineResultId` | `string` | equals, contains, startsWith, endsWith, in |
| `progress` | `number` | equals, gt, gte, lt, lte, in |
| `reason` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Parse Blocks

Path: `reducto.db.parseBlocks.search`

```ts theme={null}
const rows = await corsair.reducto.db.parseBlocks.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `chunkIndex` | `number` | equals, gt, gte, lt, lte, in |
| `blockIndex` | `number` | equals, gt, gte, lt, lte, in |
| `type` | `string` | equals, contains, startsWith, endsWith, in |
| `content` | `string` | equals, contains, startsWith, endsWith, in |
| `confidence` | `string` | equals, contains, startsWith, endsWith, in |
| `imageUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Parse Chunks

Path: `reducto.db.parseChunks.search`

```ts theme={null}
const rows = await corsair.reducto.db.parseChunks.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `chunkIndex` | `number` | equals, gt, gte, lt, lte, in |
| `content` | `string` | equals, contains, startsWith, endsWith, in |
| `embed` | `string` | equals, contains, startsWith, endsWith, in |
| `enriched` | `string` | equals, contains, startsWith, endsWith, in |
| `enrichmentSuccess` | `boolean` | equals |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Parse Ocr Items

Path: `reducto.db.parseOcrItems.search`

```ts theme={null}
const rows = await corsair.reducto.db.parseOcrItems.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `kind` | `string` | equals, contains, startsWith, endsWith, in |
| `ocrIndex` | `number` | equals, gt, gte, lt, lte, in |
| `text` | `string` | equals, contains, startsWith, endsWith, in |
| `confidence` | `number` | equals, gt, gte, lt, lte, in |
| `chunkIndex` | `number` | equals, gt, gte, lt, lte, in |
| `rotation` | `number` | equals, gt, gte, lt, lte, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Pipeline Outputs

Path: `reducto.db.pipelineOutputs.search`

```ts theme={null}
const rows = await corsair.reducto.db.pipelineOutputs.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `resultKind` | `string` | equals, contains, startsWith, endsWith, in |
| `resultUrl` | `string` | equals, contains, startsWith, endsWith, in |
| `resultId` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***

## Split Segments

Path: `reducto.db.splitSegments.search`

```ts theme={null}
const rows = await corsair.reducto.db.splitSegments.search({
    data: { /* filters below */ },
    limit: 100,
    offset: 0,
});
```

### Searchable filters

| Field | Type | Operators |
| - | - | - |
| `entity_id` | `string` | equals, contains, startsWith, endsWith, in |
| `id` | `string` | equals, contains, startsWith, endsWith, in |
| `jobId` | `string` | equals, contains, startsWith, endsWith, in |
| `splitIndex` | `number` | equals, gt, gte, lt, lte, in |
| `name` | `string` | equals, contains, startsWith, endsWith, in |
| `partitionKey` | `string` | equals, contains, startsWith, endsWith, in |
| `updatedAt` | `date` | equals, before, after, between |

*Every `.search()` also accepts `limit` and `offset` for pagination. `.list()` is available on the same path without the `.search` suffix in code — see [database operations](https://docs.corsair.dev/concepts/database.md).*

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.