Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autobot-backend/constants/path_constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class PathConstants:
PROJECT_ROOT: Path = Path(__file__).parent.parent.parent

# Prompt templates (#793)
PROMPTS_DIR: Path = PROJECT_ROOT / "prompts"
PROMPTS_DIR: Path = Path(__file__).parent.parent / "resources" / "prompts"

# Core directories (updated for #781 reorganization)
CONFIG_DIR: Path = PROJECT_ROOT / "infrastructure" / "shared" / "config"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async def _add_documentation_to_kb_block_5():
"README.md",
"CLAUDE.md",
"docs/**/*.md",
"prompts/**/*.md",
"autobot-backend/resources/prompts/**/*.md",
"*.md", # Any markdown files in root
]

Expand Down Expand Up @@ -77,7 +77,7 @@ def determine_category(rel_path: str) -> str:
("docs/developer", "developer-docs"),
("docs/user_guide", "user-guide"),
("docs/reports", "reports"),
("prompts", "prompts"),
("autobot-backend/resources/prompts", "prompts"),
]
# Check exact matches first
if rel_path == "README.md":
Expand Down
8 changes: 4 additions & 4 deletions docs/developer/THINKING_TOOLS_CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ This guide explains how to ensure these tools are ALWAYS used for complex reason

### Step 1: System Prompt Configuration

**File**: `prompts/chat/system_prompt.md`
**File**: `autobot-backend/resources/prompts/chat/system_prompt.md`

The system prompt has been updated to include mandatory thinking tool usage instructions. Section added:

Expand Down Expand Up @@ -473,7 +473,7 @@ def _ensure_thinking_tools(self, available_tools):
## References

### Documentation Files:
- System Prompt: `prompts/chat/system_prompt.md`
- System Prompt: `autobot-backend/resources/prompts/chat/system_prompt.md`
- Sequential Thinking API: `autobot-backend/api/sequential_thinking_mcp.py`
- Structured Thinking API: `autobot-backend/api/structured_thinking_mcp.py`
- LLM Interface: `src/llm_interface.py`
Expand All @@ -484,7 +484,7 @@ def _ensure_thinking_tools(self, available_tools):

### Configuration:
- Environment: `.env` (AUTOBOT_DEFAULT_LLM_MODEL)
- Prompts: `prompts/chat/system_prompt.md`
- Prompts: `autobot-backend/resources/prompts/chat/system_prompt.md`
- Backend: `backend/main.py` (router registration)

---
Expand All @@ -494,7 +494,7 @@ def _ensure_thinking_tools(self, available_tools):
For issues or questions about thinking tools configuration:

1. Check this guide first
2. Review system prompt: `prompts/chat/system_prompt.md`
2. Review system prompt: `autobot-backend/resources/prompts/chat/system_prompt.md`
3. Check backend logs: `logs/backend.log`
4. Test MCP endpoints with curl
5. Verify model is Mistral 7B or better
Expand Down
10 changes: 5 additions & 5 deletions docs/fixes/CONVERSATION_TERMINATION_REPORT.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def detect_exit_intent(message: str) -> bool:
- ✅ Ignores exit words in questions (e.g., "how do I exit vim?")

#### Layer 2: Enhanced System Prompt
**File**: `prompts/chat/system_prompt.md`
**File**: `autobot-backend/resources/prompts/chat/system_prompt.md`

**Key Sections**:
```markdown
Expand Down Expand Up @@ -192,7 +192,7 @@ TestSystemPromptLoading::test_conversation_continuation_rules_in_prompt PASSED
- Added fallback prompt for safety

### Created Files
1. **`prompts/chat/system_prompt.md`**
1. **`autobot-backend/resources/prompts/chat/system_prompt.md`**
- Comprehensive AutoBot system prompt
- Explicit conversation continuation rules
- Examples of correct behavior
Expand Down Expand Up @@ -235,7 +235,7 @@ python -m pytest tests/test_conversation_handling_fix.py::TestRegressionPreventi

### Production Deployment Steps
1. Sync `src/chat_workflow_manager.py` to AI Stack VM (172.16.168.24)
2. Sync `prompts/chat/` directory to AI Stack VM
2. Sync `autobot-backend/resources/prompts/chat/` directory to AI Stack VM
3. Sync `tests/` directory for validation
4. Run test suite on production
5. Monitor logs for exit intent detection
Expand All @@ -245,7 +245,7 @@ python -m pytest tests/test_conversation_handling_fix.py::TestRegressionPreventi
Watch for these log messages:
```
[ChatWorkflowManager] User explicitly requested to exit conversation: {session_id}
[ChatWorkflowManager] Loaded system prompt from prompts/chat/system_prompt.md
[ChatWorkflowManager] Loaded system prompt from autobot-backend/resources/prompts/chat/system_prompt.md
Exit intent detected: {phrase}
```

Expand Down Expand Up @@ -289,7 +289,7 @@ Exit intent detected: {phrase}
- **Memory MCP Entity**: "Conversation Termination Bug 2025-10-03"
- **Solution Entity**: "Conversation Handling Fix 2025-10-03"
- **Test File**: `tests/test_conversation_handling_fix.py`
- **System Prompt**: `prompts/chat/system_prompt.md`
- **System Prompt**: `autobot-backend/resources/prompts/chat/system_prompt.md`

## Conclusion

Expand Down
Loading
Loading