Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a structured, hierarchical representation of requirements analysis documents in the AutoBE system, alongside the traditional flat markdown format. The main goal is to preserve the three-level hierarchy (Module → Unit → Section) throughout the analysis pipeline, enabling advanced features such as partial updates, structural search/filtering, hierarchical UI rendering, and improved debugging.
The most important changes are:
1. Hierarchical Data Model Introduction
AutoBeAnalyzeModule,AutoBeAnalyzeUnit, andAutoBeAnalyzeSection, each with detailed documentation, to represent the three-level document hierarchy. These are now exported from the contents index. [1] [2] [3] [4]2. Extension of Analysis File Structure
AutoBeAnalyzeFileto include a newmoduleproperty, which holds the structured representation of the document's hierarchical content in addition to the existing flatcontentproperty. [1] [2]3. Analysis Pipeline Enhancements
orchestrateAnalyze.ts) to generate and return both the flat markdown content and the structured module object for each file, updating the processing flow and result types accordingly. [1] [2] [3] [4] [5] [6]4. Structured Assembly Logic
assembleModuleinAutoBeAnalyzeProgrammerto build the hierarchical module structure from generation events, preserving the full document hierarchy for downstream use. [1] [2]5. RAG File Type Clarification
RagAnalysisFiletype used for retrieval-augmented generation (RAG) only includes essential fields (filename,content,reason), and does not require the full module structure.These changes lay the foundation for more flexible, maintainable, and feature-rich handling of requirements documents in the AutoBE system.