diff --git a/openviking/prompts/templates/semantic/overview_generation.yaml b/openviking/prompts/templates/semantic/overview_generation.yaml index a57a99c8b..10ba285d9 100644 --- a/openviking/prompts/templates/semantic/overview_generation.yaml +++ b/openviking/prompts/templates/semantic/overview_generation.yaml @@ -62,6 +62,7 @@ template: | - Concise keyword descriptions 4. **Detailed Description** (H2): One H3 subsection for each file/subdirectory + - **H3 title MUST be the exact file or directory name only, with no additional description** - Use the file summaries or subdirectory summaries provided above as description content Total length: 400-800 words diff --git a/openviking/storage/queuefs/semantic_processor.py b/openviking/storage/queuefs/semantic_processor.py index 2a6e2653a..b471d79cc 100644 --- a/openviking/storage/queuefs/semantic_processor.py +++ b/openviking/storage/queuefs/semantic_processor.py @@ -975,7 +975,7 @@ def _parse_overview_md(self, overview_content: str) -> Dict[str, str]: file_name = header_match.group(1).strip() parts = file_name.split() - if len(parts) >= 2 and parts[0] == parts[1]: + if len(parts) >= 2 and parts[1].startswith(parts[0]): file_name = parts[0] current_file = file_name