1. Tool Calling & RAG Pipeline

工具调用和 RAG 管道

构建 RAG 管道,设计确定性工作流程和灵活的代理系统

2. 学习目标

  1. 向 Claude 模型提出 API 请求并处理响应
  2. 多轮交谈 multi-turn conversationstreaming 流、结构化输出 structured output generation

大家一来一回地说很多句话,互相记住前面说过的内容,然后接着往下聊,这就叫 multi-turn conversation(多轮对话)

👧 :妈妈,我饿了。
👩 妈妈:你想吃什么?
👧 :我想吃面条。
👩 妈妈:要不要加鸡蛋?
👧 :要!

  1. 使用自动测试管道,对于提示词进行系统化构建评估
  2. 创建自定义工具,将 Claude 与外部服务相集成
  3. RAG 系统: hybrid search & reranking 混合搜索,参加红心排列
  4. MCP Model Context Protocol:模型上下文协议:将 Claude 连接到各种数据源
  5. 了解常见的工作流程和代理体系结构

课程总览

  1. 如何使用 Claude API Key
  • Install the Anthropic Python SDK and 'python-dotenv'

  • `use ‘python-dotenv’