Add Spec chunking (AsciiDoc + UDB) #1790
Open
ankit-cybertron wants to merge 11 commits intoriscv:mainfrom
Open
Add Spec chunking (AsciiDoc + UDB) #1790ankit-cybertron wants to merge 11 commits intoriscv:mainfrom
ankit-cybertron wants to merge 11 commits intoriscv:mainfrom
Conversation
Collaborator
|
This work looks very promising. Would you be able to attend a PR review meeting we have at 2pm Eastern Time (+4 UTC)? If not, let's try to schedule a time with the reviewers that works. |
Author
|
Hey @dhower-qc |
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.
Summary
This PR introduces the initial ingest layer for the RISC-V unified database RAG pipeline, focusing on extracting structured information from both specification text and parameter definitions. It implements an AsciiDoc-based chunker for parsing and processing ISA manual files, along with a YAML-based chunker for UDB parameter data. Both sources are normalized into a unified chunk schema to support downstream tasks such as classification and retrieval. The pipeline is designed to be config-driven and modular, allowing iterative refinement of filtering and chunking logic.
Note:- This is an early-stage implementation and is intended to evolve based on feedback and validation.
Ingestion — Input Coverage
chunker_udb.py.adoc)chunker_adoc.pyNotes
spec/std/isa/).adocfiles are cloned at runtime and removed after processingStatus — Current Extraction
chunks_repo.jsonparameter_dataset.csvsrc__v-st-ext.jsonChunkers
chunker_adoc.py.adocspecification fileschunker_udb.pyTasks
Completed
json,csv)Pending
schema_rulesvalidationObservations
Concerns
Testing
Expected Outcome
Status
In progress (#1779)