Elasticsearch:交易搜索 - Index search tool

在这篇文章中,我们来展示如何使用 Index search 类型的 tool 来针对交易进行搜索。这篇文章是之前文章 "Elasticsearch:交易搜索 - MCP" 的续篇。我们讲使用 AI Builder 来进行搜索,但是我们创建一个叫做 index search 的 tool 类型。

我们首先来创建一个叫做 Index search 类别的 tool:

sql 复制代码
`

1.  You are a helpful banking transaction agent. You help users search and analyze their banking transactions.

3.  Current date: {current_date}

5.  When users ask about transactions, use the appropriate tools:
6.  - Use trans-search for finding specific transactions

8.  For date references:
9.  - "last month" = past 30 days from today
10.  - "this month" = current month from 1st to today
11.  - "last week" = past 7 days
12.  - "this year" = January 1st of current year to today

14.  By default set the make the to date today and the from date 1 year ago
15.  Common categories: groceries, dining, gas, shopping, entertainment, utilities, healthcare, transportation, travel, subscriptions, insurance, phone, internet

`AI写代码![](https://csdnimg.cn/release/blogv2/dist/pc/img/runCode/icon-arrowwhite.png)

我们使用如下的工具:

我们使用如下的示例来进行搜索:

sql 复制代码
`Find all transactions over $100 in San Francisco`AI写代码
go 复制代码
`展示所有辛巴克的订单`AI写代码
相关推荐
菠萝猫yena28 分钟前
【git】git 命令常用组合
大数据·git·elasticsearch
Sayai3 小时前
Elasticsearch 压测利器 esrally 从安装到跑分全流程
大数据·elasticsearch·搜索引擎
Zach_菠萝侠4 小时前
【DeepSeek Harness 研究】进化方向3:插件生态治理 思考、设计与实现
elasticsearch·deepseek
Elasticsearch7 小时前
如何在 Workflow 里发送企业微信信息 - WeCom
elasticsearch
Elasticsearch8 小时前
IT 领导者使用可观测性监控 AI 应用的 7 条经验
elasticsearch
哭哭啼8 小时前
es ilm计算索引存在时间
大数据·elasticsearch·搜索引擎
SelectDB技术团队8 小时前
腾讯音乐内容库 ES 替代:从 Elasticsearch 到 Apache Doris 统一搜索分析引擎实践
elasticsearch·django·apache doris
Elastic 中国社区官方博客9 小时前
Elasticsearch:什么是向量数据库?
大数据·运维·数据库·人工智能·elasticsearch·搜索引擎·ai
旗开得胜马到成功10 小时前
AI编程智能体删库后,我把开发环境从每日备份换成中科热备CDP秒级回滚
大数据·elasticsearch·ai编程
阿里云大数据AI技术1 天前
从 VDBBench 到 MMEB 榜首:阿里云 AI Search 从引擎到模型的全栈优化
人工智能·elasticsearch·agent