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写代码
相关推荐
Elastic 中国社区官方博客7 小时前
使用 Lucene 搜索你的 Bean —— Elasticsearch
大数据·开发语言·人工智能·elasticsearch·搜索引擎·全文检索·lucene
闲蛋小超人笑嘻嘻7 小时前
Git Worktree 详解
大数据·elasticsearch·搜索引擎
MayBaymax8 小时前
Elasticsearch 原理与用法
java·elasticsearch
IT大白鼠8 小时前
搜索系列 · 第 01 篇——认知入门:Elasticsearch 是什么
elasticsearch·nosql
Elasticsearch9 小时前
14 个 alerts,1 个 incident:使用 Elasticsearch 中的 ES|QL 衡量 alerting rule 噪声
elasticsearch
Elasticsearch9 小时前
Kubernetes attributes processor v1:它对 EDOT Collector 意味着什么
elasticsearch
Elasticsearch10 小时前
Elasticsearch Serverless 如何通过 hollow shards 将索引节点关闭次数降低 30%
elasticsearch
SelectDB技术团队11 小时前
Agent Trace 数据底座建设:宽表建模、全文检索与成本聚合的配置与验证步骤
大数据·python·clickhouse·elk·elasticsearch·全文检索·复杂查询
Zhu75811 小时前
快速测试-ZLMediaKit
大数据·elasticsearch·搜索引擎
Elastic 中国社区官方博客11 小时前
使用 NVIDIA cuVS 在 Elasticsearch 中实现 GPU 加速的向量索引:在 10 分钟内处理 1.38 亿个向量
大数据·数据库·elasticsearch·搜索引擎·全文检索·安全威胁分析