Skip to main content

7. search_data — Search Data

Mode: Both · Category: Data Retrieval

Searches for record instances using keyword matching or semantic search. The LLM always provides the search query and keywords at runtime.

- id: search_data
  instance_limit: 10
- id: search_data
  unique_id: vendor_search
  description: Semantic search over vendor records.
  search_mode: semantic
  instance_limit: 10
  vector_store_id: my-vector-store-ref
  similarity_threshold: 0.7
  return_row_attributes:
    - id: VENDOR.VENDOR_NAME
    - id: VENDOR.VENDOR_COUNTRY
  filter:
    pql_template:
      pql: 'FILTER "VENDOR"."ACTIVE" = 1'
      name: Active Vendors Only
pc_at_search_data.png

Field

Type

Description

search_mode

string

"keyword" (default) or "semantic".

instance_limit

int

Max results per keyword/query (default: 5, max: 20).

vector_store_id

string

Vector store reference for semantic search.

similarity_threshold

float

Min similarity score for results (default: 0.0).

return_row_attributes

list

Attributes to include in result rows.

filter

object

Pre-filter applied before searching (filter ID or PQL template).

Related topics