select_table_rows
Filter and retrieve specific rows from a table in Baidu Vector Database using a custom expression, with options to limit results and select output fields.
Instructions
Select rows with a filter expression in the Mochow instance.
Args:
table_name (str): Name of the table.
filter_expr (str): Filter expression to select data. Defaults to None.
limit (int): Maximum number of results. Defaults to 10.
output_fields (Optional[list[str]]): Fields to return in the results. Defaults to None.
Returns:
str: A string containing the selected rows.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter_expr | No | ||
limit | No | ||
output_fields | No | ||
table_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"filter_expr": {
"default": null,
"title": "Filter Expr",
"type": "string"
},
"limit": {
"default": 10,
"title": "Limit",
"type": "integer"
},
"output_fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Output Fields"
},
"table_name": {
"title": "Table Name",
"type": "string"
}
},
"required": [
"table_name"
],
"title": "select_table_rowsArguments",
"type": "object"
}