Skip to content

Commit 0d441c6

Browse files
larryroclaude
andcommitted
refactor(rag): remove rag_write tool
The rag_write tool for updating the knowledge base is being removed as it's not currently needed in the agent workflow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 40d8308 commit 0d441c6

5 files changed

Lines changed: 2 additions & 169 deletions

File tree

‎services/platform/app/(app)/dashboard/[id]/chat/components/chat-interface.tsx‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ function ThinkingAnimation({
133133
customer_read: t('tools.customerRead'),
134134
product_read: t('tools.productRead'),
135135
rag_search: t('tools.ragSearch'),
136-
rag_write: t('tools.ragWrite'),
137136
web_read: t('tools.webRead'),
138137
pdf: t('tools.pdf'),
139138
image: t('tools.image'),

‎services/platform/convex/agent_tools/rag/rag_write_tool.ts‎

Lines changed: 0 additions & 155 deletions
This file was deleted.

‎services/platform/convex/agent_tools/tool_registry.ts‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import type { ToolDefinition } from './types';
99
import { customerReadTool } from './customers/customer_read_tool';
1010
import { productReadTool } from './products/product_read_tool';
1111
import { ragSearchTool } from './rag/rag_search_tool';
12-
import { ragWriteTool } from './rag/rag_write_tool';
1312
import { webReadTool } from './crawler/web_read_tool';
1413
import { workflowReadTool } from './workflows/workflow_read_tool';
1514
import { workflowExamplesTool } from './workflows/workflow_examples_tool';
@@ -37,7 +36,6 @@ export const TOOL_NAMES = [
3736
'customer_read',
3837
'product_read',
3938
'rag_search',
40-
'rag_write',
4139
'web_read',
4240
'pdf',
4341
'image',
@@ -63,7 +61,6 @@ export const TOOL_REGISTRY = [
6361
customerReadTool,
6462
productReadTool,
6563
ragSearchTool,
66-
ragWriteTool,
6764
webReadTool,
6865
workflowReadTool,
6966
workflowExamplesTool,

‎services/platform/convex/lib/create_chat_agent.ts‎

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export function createChatAgent(options?: {
2727
// If no specific Convex tools are requested, use a focused default tool set
2828
const defaultToolNames: ToolName[] = [
2929
'rag_search',
30-
'rag_write',
3130
'web_read',
3231
'pdf',
3332
'image',
@@ -95,21 +94,15 @@ Available integrations are listed in the [INTEGRATIONS] context section. Workflo
9594
9695
See the integration and verify_approval tool descriptions for detailed write operation workflows.
9796
98-
3) KNOWLEDGE MANAGEMENT
99-
100-
Use rag_write when users provide new info or corrections:
101-
• "Our store hours are 9am-5pm" → Add to knowledge base
102-
• "That's wrong, the correct answer is..." → Correct the knowledge base
103-
104-
4) NO HALLUCINATIONS
97+
3) NO HALLUCINATIONS
10598
10699
You must NEVER fabricate facts, data, or URLs. Only use:
107100
• Tool results (database, RAG, web, integrations)
108101
• User-provided information in this conversation
109102
110103
If you don't have information after using tools, say so clearly.
111104
112-
5) CONVERSATION STYLE
105+
4) CONVERSATION STYLE
113106
114107
• Be DIRECT: Answer what's asked, then STOP
115108
• Only ask for clarification when genuinely ambiguous

‎services/platform/messages/en.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1229,7 +1229,6 @@
12291229
"customerRead": "Reading customer data",
12301230
"productRead": "Reading product catalog",
12311231
"ragSearch": "Searching knowledge base",
1232-
"ragWrite": "Updating knowledge base",
12331232
"webRead": "Fetching web content",
12341233
"pdf": "Processing PDF",
12351234
"image": "Analyzing image",

0 commit comments

Comments
 (0)