1. Tool Calling & RAG Pipeline
工具调用和 RAG 管道
构建 RAG 管道,设计确定性工作流程和灵活的代理系统
2. 学习目标
- 向 Claude 模型提出 API 请求并处理响应
- 多轮交谈
multi-turn conversation
、streaming
流、结构化输出structured output generation
大家一来一回地说很多句话,互相记住前面说过的内容,然后接着往下聊,这就叫 multi-turn conversation(多轮对话)。
👧 你:妈妈,我饿了。
👩 妈妈:你想吃什么?
👧 你:我想吃面条。
👩 妈妈:要不要加鸡蛋?
👧 你:要!
- 使用自动测试管道,对于提示词进行系统化构建与评估
- 创建自定义工具,将 Claude 与外部服务相集成
- RAG 系统:
hybrid search
&reranking
混合搜索,参加红心排列 MCP Model Context Protocol
:模型上下文协议:将 Claude 连接到各种数据源- 了解常见的工作流程和代理体系结构
课程总览
- 如何使用 Claude API Key
-
Install the Anthropic Python SDK and 'python-dotenv'
-
`use ‘python-dotenv’