babylon-mcp/examples/audioEngine
Michael Mainguy d747c2ce7c Fix pathToDocId to match actual database ID format
Root cause analysis revealed the previous fix used wrong casing and prefix.

Investigation findings:
- Queried database and found actual IDs use lowercase "documentation_" prefix
- Example: "documentation_features_featuresDeepDive_audio_v2_playingSoundsMusic"
- Previous fix incorrectly used "Documentation_content_" (wrong case + extra "content")

How indexing works:
- Source name: "documentation" (lowercase)
- Source path: ends at .../Documentation/content
- Indexer strips path up to and including /content/
- Prepends source name with underscore: "documentation_"

Correct implementation:
- Strip /content/ from input path (handles both full and relative paths)
- Replace slashes with underscores
- Prepend "documentation_" (lowercase, no "content")

Verified with test:
- Input: "features/featuresDeepDive/audio/v2/playingSoundsMusic"
- Output: "documentation_features_featuresDeepDive_audio_v2_playingSoundsMusic"
- Successfully retrieves document from database

All 152 tests passing.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-23 07:57:43 -06:00
..
with_mcp.md Fix pathToDocId to match actual database ID format 2025-11-23 07:57:43 -06:00
without_mcp.md Fix pathToDocId to match actual database ID format 2025-11-23 07:57:43 -06:00