Skip to content

[问题/Issue] Chapter8: 使用本地嵌入创建RAG工具报错 #109

@frr163

Description

@frr163

1. 遇到问题的章节 / Affected Chapter

Chapter8

2. 问题类型 / Issue Type

代码错误 / Code Error

3. 具体问题描述 / Problem Description

代码运行时报错:
RAGTool.init() got an unexpected keyword argument 'embedding_model'
请检查依赖是否正确安装
Traceback (most recent call last):
File "/root/HelloAgents/examples/chapter08_memory_rag.py", line 856, in main
demo_simple_agent_with_rag()
File "/root/HelloAgents/examples/chapter08_memory_rag.py", line 97, in demo_simple_agent_with_rag
rag_tool = RAGTool(
TypeError: RAGTool.init() got an unexpected keyword argument 'embedding_model'

4. 问题重现材料 / Reproduction Materials

Image

5. 补充信息 / Additional Information

No response

确认事项 / Verification

  • 我已阅读过相关章节的文档 / I have read the relevant chapter documentation
  • 我已搜索过现有的Issues,确认此问题未被报告 / I have searched existing Issues and confirmed this hasn't been reported
  • 我已尝试过基本的故障排除(如重启、重新安装依赖等) / I have tried basic troubleshooting (restart, reinstall dependencies, etc.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions