fulltext_search
Search text data in Baidu Vector Database using BM25 similarity and apply scalar attribute filters to refine results for precise, relevant outcomes in MCP applications.
Instructions
Perform full text search combining BM25 similarity and scalar attribute filtering in the Mochow instance.
Args:
table_name (str): Name of the table to search.
index_name (str): Name of the inverted index to perform full text search.
search_text (str): Text to search.
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 full text search results.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
filter_expr | No | ||
index_name | Yes | ||
limit | No | ||
output_fields | No | ||
search_text | Yes | ||
table_name | Yes |
Input Schema (JSON Schema)
{
"properties": {
"filter_expr": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Filter Expr"
},
"index_name": {
"title": "Index Name",
"type": "string"
},
"limit": {
"default": 10,
"title": "Limit",
"type": "integer"
},
"output_fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"default": null,
"title": "Output Fields"
},
"search_text": {
"title": "Search Text",
"type": "string"
},
"table_name": {
"title": "Table Name",
"type": "string"
}
},
"required": [
"table_name",
"index_name",
"search_text"
],
"title": "fulltext_searchArguments",
"type": "object"
}