Skip to content

Commit db20ff1

Browse files
MkDev11Wendong-Fan
andauthored
feat: add RAG toolkit for knowledge base queries (#1003)
Co-authored-by: mkdev11 <MkDev11@users.noreply.github.com> Co-authored-by: Wendong-Fan <w3ndong.fan@gmail.com> Co-authored-by: Wendong-Fan <133094783+Wendong-Fan@users.noreply.github.com>
1 parent b474fe3 commit db20ff1

16 files changed

Lines changed: 1004 additions & 16 deletions

File tree

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,22 @@ our coding standards.
9292
#### Code Review Checklist
9393

9494
- Functionality
95+
9596
- Correctness: Does the code perform the intended task? Are edge cases handled?
9697
- Testing: Is there sufficient test coverage? Do all tests pass?
9798
- Security: Are there any security vulnerabilities introduced by the change?
9899
- Performance: Does the code introduce any performance regressions?
99100

100101
- Code Quality
102+
101103
- Readability: Is the code easy to read and understand? Is it well-commented where necessary?
102104
- Maintainability: Is the code structured in a way that makes future changes easy?
103105
- Style: Does the code follow the project’s style guidelines?
104106
Currently we use Ruff for format check and take [Google Python Style Guide](%22https://google.github.io/styleguide/pyguide.html%22) as reference.
105107
- Documentation: Are public methods, classes, and any complex logic well-documented?
106108

107109
- Design
110+
108111
- Consistency: Does the code follow established design patterns and project architecture?
109112
- Modularity: Are the changes modular and self-contained? Does the code avoid unnecessary duplication?
110113
- Dependencies: Are dependencies minimized and used appropriately?

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Built on [CAMEL-AI][camel-site]'s acclaimed open-source project, our system intr
7575
- [📄 Open Source License](#-open-source-license)
7676
- [🌐 Community & contact](#-community--contact)
7777

78-
####
78+
####
7979

8080
<br/>
8181

README_CN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
- [📄 开源许可证](#-%E5%BC%80%E6%BA%90%E8%AE%B8%E5%8F%AF%E8%AF%81)
7575
- [🌐 社区与联系](#-%E7%A4%BE%E5%8C%BA%E4%B8%8E%E8%81%94%E7%B3%BB)
7676

77-
####
77+
####
7878

7979
<br/>
8080

README_JA.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
- [📄 オープンソースライセンス](#-%E3%82%AA%E3%83%BC%E3%83%97%E3%83%B3%E3%82%BD%E3%83%BC%E3%82%B9%E3%83%A9%E3%82%A4%E3%82%BB%E3%83%B3%E3%82%B9)
7474
- [🌐 コミュニティ & お問い合わせ](#-%E3%82%B3%E3%83%9F%E3%83%A5%E3%83%8B%E3%83%86%E3%82%A3--%E3%81%8A%E5%95%8F%E3%81%84%E5%90%88%E3%82%8F%E3%81%9B)
7575

76-
####
76+
####
7777

7878
<br/>
7979

README_PT-BR.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Construído sobre o aclamado projeto open source da [CAMEL-AI][camel-site], noss
7474
- [📄 Licença Open Source](#-licen%C3%A7a-open-source)
7575
- [🌐 Comunidade & Contato](#-comunidade--contato)
7676

77-
####
77+
####
7878

7979
<br/>
8080

backend/app/agent/tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from app.utils.toolkit.notion_mcp_toolkit import NotionMCPToolkit
3636
from app.utils.toolkit.openai_image_toolkit import OpenAIImageToolkit
3737
from app.utils.toolkit.pptx_toolkit import PPTXToolkit
38+
from app.utils.toolkit.rag_toolkit import RAGToolkit
3839
from app.utils.toolkit.reddit_toolkit import RedditToolkit
3940
from app.utils.toolkit.search_toolkit import SearchToolkit
4041
from app.utils.toolkit.slack_toolkit import SlackToolkit
@@ -67,6 +68,7 @@ async def get_toolkits(tools: list[str], agent_name: str, api_task_id: str):
6768
"mcp_search_toolkit": McpSearchToolkit,
6869
"notion_mcp_toolkit": NotionMCPToolkit,
6970
"pptx_toolkit": PPTXToolkit,
71+
"rag_toolkit": RAGToolkit,
7072
"reddit_toolkit": RedditToolkit,
7173
"search_toolkit": SearchToolkit,
7274
"slack_toolkit": SlackToolkit,

0 commit comments

Comments
 (0)