Elasticsearch:交易搜索 - Index search tool

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

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

复制代码
You are a helpful banking transaction agent. You help users search and analyze their banking transactions.

Current date: {current_date}

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

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

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

我们使用如下的工具:

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

复制代码
Find all transactions over $100 in San Francisco
复制代码
展示所有辛巴克的订单
相关推荐
圊妖3 小时前
Claude Code 一些进阶用法
人工智能·ai编程·claude
颜酱4 小时前
从零实现「拍照记单词」小应用(可复刻版)
前端·javascript·人工智能
kishu_iOS&AI4 小时前
深度学习 —— 神经网络(1)
人工智能·深度学习·神经网络
MOON404☾4 小时前
Chapter 001. Machine Learning Fundamentals
人工智能·机器学习
jingqingdai34 小时前
微信小程序 Canvas 2D 踩坑指南:如何优雅地导出高清长图?(附 AI 辅助实录)
人工智能·微信小程序·小程序
用户5191495848454 小时前
Apache安全漏洞测试工具 - CVE-2024-38475利用脚本
人工智能·aigc
深念Y4 小时前
AI 写代码总跑偏?我逼它回到“函数级颗粒度”
ai·软件工程·agent·函数·coding·vibe coding·代码补全
2503_928411564 小时前
AI 行业正在重塑每个人的工作方式,而你需要一个更轻松的入口
人工智能·小程序
AC赳赳老秦4 小时前
程序员面试:OpenClaw生成面试题、模拟面试,高效备战面试
人工智能·python·机器学习·面试·职场和发展·deepseek·openclaw