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

# Vector DB Query

> Search for similar documents using semantic/vector search

# Vector DB Query

Search for similar documents using semantic/vector search

## Properties

| Property   | Value           |
| ---------- | --------------- |
| **Type**   | vector-db-query |
| **Family** | Actions         |
| **Group**  | Database        |

## Parameters

| Name     | Label              | Type   | Description                                                     | Required |
| -------- | ------------------ | ------ | --------------------------------------------------------------- | -------- |
| provider | Vector DB Provider | Select | Choose the vector database provider                             | Yes      |
| query    | Search Query       | String | Text query to search for similar documents                      | Yes      |
| topK     | Top K Results      | Number | Number of similar documents to return                           | No       |
| filter   | Metadata Filter    | JSON   | Optional filter to apply on metadata (provider-specific format) | No       |

## Outputs

| Name    | Label   | Type   | Description                             |
| ------- | ------- | ------ | --------------------------------------- |
| results | results | array  | Array of matching documents with scores |
| count   | count   | number | Number of results returned              |
