Strict Frog's Blog

企业级AIAgent:ReAct + Function Calling

ReAct框架

背景 在完整的AI Agent中,工具的调用这里采用ChatGPT的Function Calling的思想,通过定义“Tools Schema”来连接LLM和Tools的调用. 架构结构 User Query     ↓ Agent (LLM with tool access)     ↓ Decide:     - Call Tool?     - Or Final Answe...

企業向けAIAgent:ReAct + 関数呼び出し

ReActフレームワーク

背景 完全なAIエージェントでは、ツールの呼び出しにChatGPTのFunction Callingのコンセプトを採用し、「Tools Schema」を定義してLLMとツールの呼び出しを連携させています。 アーキテクチャ構成 User Query     ↓ Agent (LLM with tool access)     ↓ Decide:     - Call Tool?  ...

Enterprise-level AI Agent for ReAct + Function Calling

ReAct Framework

Background In a complete AI Agent, tool invocation adopts the Function Calling concept from ChatGPT, connecting LLM and tool calls through defining a “Tools Schema.” Architecture User Query  ...

企业级AIAgent:Plan-and-Execute + Function Calling

Plan-and-Execute框架

背景 在完整的AI Agent中,工具的调用这里采用ChatGPT的Function Calling的思想,通过定义“Tools Schema”来连接LLM和Tools的调用. 1,先定义Tools Schema 这里用到的工具: Search Database, Send Mail, Get Weather等等. 这些工具也就是自定义工具方法的名字. tools =...

企業向けAIエージェント:計画と実行 + 関数呼び出し

Plan-and-Executeフレームワーク

背景 完全なAIエージェントでは、ツールの呼び出しにChatGPTのFunction Callingの考え方を採用し、「Tools Schema」を定義することでLLMとツールの連携を実現しています。 1, まずTools Schemaを定義する ここで使うツール:Search Database、Send Mail、Get Weatherなど。これらのツールはカスタムツー...

Enterprise-level AI Agent for Plan-and-Execute + Function Calling

Plan-and-Execute Framework

Background In a complete AI Agent, the invocation of tools here follows the concept of ChatGPT’s Function Calling, connecting the LLM with tool calls by defining a “Tools Schema.” 1. Define t...

Plan-and-Execute框架思路与应用

Plan-and-Solve

背景 LangChain的Plan-and-Execute框架受到关于Plan-and-Solve的论文的启发.Plan-and-Execute非常适合更复杂的长期规划,把复杂问题拆分成一个个子任务,逐个击破. 这会频繁的的调用大模型,但可以避免ReAct Agent循环过程中产生提示词过长的问题. Plan-and-Solve 策略 上图是无样本COT和Plan-and-...

Plan-and-Executeフレームワークの考え方と応用

計画と解決

背景 LangChainのPlan-and-Executeフレームワークは、Plan-and-Solveに関する論文に触発されています。Plan-and-Executeは、複雑な長期計画に非常に適しており、複雑な問題を複数のサブタスクに分解して一つずつ解決します。これにより大規模モデルの呼び出しは頻繁に行われますが、ReActエージェントのループ中に発生するプロンプトの長さ超過問題を...

Plan-and-Execute Framework for Concepts and Applications

Plan-and-Solve

Background LangChain’s Plan-and-Execute framework is inspired by the Plan-and-Solve paper. Plan-and-Execute is well-suited for more complex long-term planning by breaking down complicated probl...

RAG检索之QueryReWrite和Reranker

Query ReWriting

背景 在设计RAG系统的过程中,我通过设计了Structural Chunks和Structural Prompt后, 检索出来的结果是符合理想的准确性. 但我想更加提高准确率,需要Query Rewrite和Reranker双重检索. Query Rewrite 方案1: 同义词扩展 例如: 用户query: python 改写成: python语言 python开发...

RAG検索におけるQueryReWriteとReranker

クエリの書き換え

背景 RAGシステムを設計する中で、Structural ChunksとStructural Promptを設計した後、検索結果は理想的な精度に達しました。しかし、さらに精度を向上させるには、Query RewriteとRerankerによる二段階検索が必要でした。 Query Rewrite 方法1: 同義語拡張 例: ユーザークエリ: python 書き換え: py...

RAG Retrieval for Query ReWrite and Reranker

Query ReWriting

Background In designing the RAG system, after implementing Structural Chunks and Structural Prompt, the retrieval results achieved the desired accuracy. However, to further improve accuracy, du...

ReAct框架详解与思考

ReAct提示词

背景 在各种论文中, 有多种智能Agent的推理逻辑(也称框架):CoT, ToT, LLM+P等, 其中ReAct框架被LanggChain和LlamaIndex等多种AI应用开发工具作为推理引擎. ReAct框架 ReAct: Synergizing Reasoning and Acting in Language Models PromptTemplate(...

ReActフレームワーク詳細解説と考察

ReActプロンプト

背景 論文において、さまざまなスマートエージェントの推論ロジック(フレームワークとも呼ばれる)が提案されています:CoT、ToT、LLM+Pなど。その中で、ReActフレームワークはLangChainやLlamaIndexなど、複数のAIアプリケーション開発ツールで推論エンジンとして利用されています。 ReActフレームワーク ReAct: Synergizing Rea...

Detailed Explanation and Insights on the ReAct Framework

ReAct Prompt

Background Various papers propose multiple reasoning frameworks for intelligent agents (also called frameworks): CoT, ToT, LLM+P, etc. Among them, the ReAct framework is used as the reasoning e...