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

# Tuning Recall and Latency

> Trade recall against latency for vector search

Vector search is approximate: it probes a subset of the index's vector clusters rather than scanning every vector. Probing more clusters improves recall (i.e. how often the true nearest neighbors are returned) at the cost of higher latency. One session-level setting controls this tradeoff:

```sql theme={null}
SET paradedb.vector_cluster_max_probe = 0.02;
```

**paradedb.vector\_cluster\_max\_probe** (default: 0.02)

Controls the probe-work budget as a fraction of each segment's capacity.
Must be between `0.000001` and `1.0`. The budget is checked between clusters
and subject to a minimum probe floor.

The router's requested cluster count follows this budget and the filter's
selectivity. Adaptive probing uses the same router request and work ceiling.
A value of `1.0` allows probing the full index, but adaptive stopping can
still end the scan early.

**paradedb.vector\_adaptive\_probing** (default: on)

Stop opening clusters early when competitive-candidate admission has
sufficiently decayed. This does not widen routing or change the work ceiling.
The stopping rule is a heuristic, so measure recall for your workload. Set to
`off` to probe until the work budget or the router's candidate list is
exhausted.

> [!NOTE]
>
> Recall also depends on the index's `training_sample_ratio` and
> `max_leaf_size`, applied whenever a segment is clustered. See [Index
> Options](https://www.paradedb.com/docs/reference/indexing/indexing-vectors.md#index-options).

## Inspecting Vector Indexes

Use `vector_info` to inspect vector storage and `vector_config` to check build settings. These examples inspect the `embedding` field of `search_idx`:

```sql SQL theme={null}
SELECT * FROM paradedb.vector_info('search_idx'::regclass, 'embedding');
SELECT * FROM paradedb.vector_config('search_idx'::regclass, 'embedding');
```

```ts Drizzle theme={null}
import { diagnostics } from "@paradedb/drizzle-paradedb";

await db.execute(diagnostics.vectorInfo("search_idx", "embedding"));
await db.execute(diagnostics.vectorConfig("search_idx", "embedding"));
```

```python Django theme={null}
from paradedb import paradedb_vector_info, paradedb_vector_config

paradedb_vector_info('search_idx', 'embedding')
paradedb_vector_config('search_idx', 'embedding')
```

```python SQLAlchemy theme={null}
from paradedb.sqlalchemy import diagnostics

diagnostics.paradedb_vector_info(engine, "search_idx", "embedding")
diagnostics.paradedb_vector_config(engine, "search_idx", "embedding")
```

```ruby Rails theme={null}
ParadeDB::Diagnostics.vector_info("search_idx", "embedding")
ParadeDB::Diagnostics.vector_config("search_idx", "embedding")
```

```cs EF Core theme={null}
await dbContext.Database.VectorInfo("search_idx", "embedding").ToListAsync();
await dbContext.Database.VectorConfig("search_idx", "embedding").ToListAsync();
```


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