Baidu Vector Database MCP Server

by baidu
Apache 2.0
1
  • Apple

vector_search

Use vector similarity search combined with scalar attribute filtering to retrieve relevant results from a specified table. Define search parameters, such as the target vector field, output fields, and filter expressions, to refine and optimize database query results.

Instructions

Perform vector similarity search combining vector similarity and scalar attribute filtering in the Mochow instance. Args: table_name (str): Name of the table to search. vector (list[float]): Search vector. vector_field (str): Target field containing vectors to search. Defaults to "vector". limit (int): Maximum number of results. Defaults to 10. output_fields (Optional[list[str]]): Fields to return in the results. Defaults to None. filter_expr (Optional[str]): Filter expression for scalar attributes. Defaults to None. params: Additional vector search parameters Returns: str: A string containing the vector search results.

Input Schema

NameRequiredDescriptionDefault
filter_exprNo
limitNo
output_fieldsNo
table_nameYes
vectorYes
vector_fieldNovector

Input Schema (JSON Schema)

{ "properties": { "filter_expr": { "anyOf": [ { "type": "string" }, { "type": "null" } ], "default": null, "title": "Filter Expr" }, "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" }, "vector": { "items": { "type": "number" }, "title": "Vector", "type": "array" }, "vector_field": { "default": "vector", "title": "Vector Field", "type": "string" } }, "required": [ "table_name", "vector" ], "title": "vector_searchArguments", "type": "object" }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/baidu/mochow-mcp-server-python'

If you have feedback or need assistance with the MCP directory API, please join our Discord server