0xPlaygrounds / 0xPlaygrounds/rig-docs

Feedback for “Build an AI Discord Bot with Rust and Rig: Step-by-Step Guide”

未关闭
#13 2 条评论 1 个 reaction 已指派 1 人 已指派给 @joshua-mo-143 在 GitHub 查看
主要语言
MDX
星标
20
派生
24
PR 合并指标
30 天内没有已合并 PR

描述

This tutorial probably needs updating. I was not able to find rig::rag::RagAgent and then I see in the [CHANGELOG](https://github.com/0xPlaygrounds/rig/blob/6f12c974b2eac7d7bb1f7ac94445bd6e726d737b/rig-core/CHANGELOG.md?plain=1#L226) that it has been deprecated:

- Deprecate RagAgent and Model in favor of versatile Agent

I am not sure how to make the adjustment from RagAgent to versatile Agent.

There are also a few other items I had to change. I had to add these two imports:

use rig::vector_store::in_memory_store::InMemoryVectorIndex;
use rig::vector_store::VectorStore;

And I was not able to get the \`\`\` to compile so I have to wrap the string with r#...#.

I was not able to complete the tutorial because of the RagAgent issue, so I look forward to an update soon.

贡献指南

打开贡献指南

调研方向

The tutorial is at 'Build an AI Discord Bot with Rust and Rig: Step-by-Step Guide'. Start by reading the CHANGELOG link to understand the deprecation of RagAgent. Look for examples of the new versatile Agent in the rig repository. Update the tutorial code to use Agent, add the necessary imports (InMemoryVectorIndex, VectorStore), and fix the string literal syntax. Test the updated steps by trying to run the bot.

由索引模型根据 Issue 内容生成。

评估

技术栈
rust
领域
documentation
Issue 类型
文档
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。