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写代码
相关推荐
ybwycx2 小时前
springboot之集成Elasticsearch
spring boot·后端·elasticsearch
@PHARAOH5 小时前
WHAT - git worktree 开发的并发模型
大数据·git·elasticsearch
历程里程碑7 小时前
Proto3 三大高级类型:Any、Oneof、Map 灵活解决复杂业务场景
java·大数据·开发语言·数据结构·elasticsearch·链表·搜索引擎
Elastic 中国社区官方博客11 小时前
使用 TypeScript 创建 Elasticsearch MCP 服务器
大数据·服务器·数据库·人工智能·elasticsearch·搜索引擎·全文检索
逸Y 仙X11 小时前
文章十三:ElasticSearch数据更新实战
java·大数据·elasticsearch·搜索引擎·jenkins
WongLeer11 小时前
Elasticsearch 从入门到实战(含 IK 分词器 + 完整查询示例)
elasticsearch·中文分词·ik
无忧.芙桃11 小时前
基础开发工具(下)
大数据·elasticsearch·搜索引擎
尽兴-1 天前
Elasticsearch Query DSL 进阶:高频查询范式与实战排坑
大数据·elasticsearch·jenkins·向量检索·去哪嗯检索·模糊匹配·地理空间查询
Elasticsearch1 天前
使用 TypeScript 创建 Elasticsearch MCP 服务器
elasticsearch
Elastic 中国社区官方博客1 天前
Elasticsearch BBQ:一场教科书式的向量搜索 “弯道超车”
大数据·数据库·人工智能·elasticsearch·搜索引擎·ai·全文检索