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写代码
相关推荐
Elasticsearch8 小时前
你的 SLO 已经告急;下面介绍如何在 Elastic Observability 中找出罪魁祸首
elasticsearch
ShiXZ21312 小时前
Docker 安装 Elasticsearch 7.17.6 完整教程
elasticsearch·docker·容器
Tattoo_Welkin14 小时前
IDEA 中常用操作记载
java·elasticsearch·intellij-idea
Elasticsearch15 小时前
Elastic 机器学习预测你的磁盘何时会填满:如何让它向你发出告警
elasticsearch
Elasticsearch15 小时前
500 个服务时快 6 倍:我们如何将 Kibana APM 服务地图从 Canvas 重构到 React DOM
elasticsearch
Ai拆代码的曹操1 天前
Git 集成:AI 代理中的版本控制工作流设计
大数据·git·elasticsearch
Elasticsearch1 天前
Elastic Observability 更新后的指标定价:业界领先的指标能力 —— 现在成本也更低!
elasticsearch
Elasticsearch1 天前
Elastic 新的指标能力将显著提升公共部门 IT 的正常运行时间
elasticsearch
Elasticsearch1 天前
Elastic 作为创始成员加入 Open Secure AI Alliance,与 NVIDIA 及行业领导者共同推动 AI 安全与保障
elasticsearch
Elasticsearch1 天前
你的 agents 一直在记录凭证:将 Elastic Agent Builder 内置的 OTel traces 转换为 Kibana 中的 token 成本
elasticsearch