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写代码
相关推荐
春日见8 小时前
拉取与合并:如何让个人分支既包含你昨天的修改,也包含 develop 最新更新
大数据·人工智能·深度学习·elasticsearch·搜索引擎
Elastic 中国社区官方博客10 小时前
如何防御你的 RAG 系统免受上下文投毒攻击
大数据·运维·人工智能·elasticsearch·搜索引擎·ai·全文检索
Elastic 中国社区官方博客12 小时前
Elasticsearch:交易搜索 - AI Agent builder
大数据·人工智能·elasticsearch·搜索引擎·ai·全文检索
摇滚侠13 小时前
IDEA invalidate caches 中每个勾选项是什么
java·elasticsearch·intellij-idea
历程里程碑14 小时前
矩阵----=矩阵置零
大数据·线性代数·算法·elasticsearch·搜索引擎·矩阵·散列表
SelectDB15 小时前
日志成本降低 83%:云上 Elasticsearch 和 SelectDB 的基准测试及成本分析
数据库·elasticsearch·apache
Ghost Face...16 小时前
嵌入式Linux开发Git实战:从认证到Gerrit推送
linux·git·elasticsearch
历程里程碑18 小时前
Linux 24 进程通信及管道(附上源码实现)
大数据·linux·运维·服务器·算法·elasticsearch·搜索引擎
Elasticsearch18 小时前
易捷问数(NewmindExAI)平台解决 ES 升级后 AI 助手与 Attack Discovery 不正常问题
elasticsearch
fireworks9920 小时前
ELK技术栈监控SQL调用
elasticsearch·kibana