<br />

Options for configuring retrieval queries in SemanticRetriever.

**Signature:**

```typescript
export declare interface RetrievalOptions 
```

## Properties

| Property | Modifiers | Type | Description |
|---|---|---|---|
| [limit](https://developers.google.com/edge/api/mediapipe/js/tasks-retrieval.retrievaloptions.md.txt#retrievaloptionslimit) |   | number | The maximum number of results to return. Defaults to 5. |
| [metadataFilter](https://developers.google.com/edge/api/mediapipe/js/tasks-retrieval.retrievaloptions.md.txt#retrievaloptionsmetadatafilter) |   | Record\<string, string\> | Key-value metadata filter to restrict matching records. |

## RetrievalOptions.limit

The maximum number of results to return. Defaults to 5.

**Signature:**

```typescript
readonly limit?: number;
```

## RetrievalOptions.metadataFilter

Key-value metadata filter to restrict matching records.

**Signature:**

```typescript
readonly metadataFilter?: Record<string, string>;
```