How czyssrs/convfinqa works
Main Components of the System
• Data Sources: Although not directly part of the code directory, the README explains that the project uses JSON datasets (train, dev, test files in both conversation and turn level formats). Represent these as “Dataset (Conversation & Turn Level)” components.
• Finqanet Retriever:
• Contains key files: Main.py, Model.py, Test.py, config.py, and various utility files.
• Handles both training and inference for retrieving the relevant information from the datasets.
• Uses external dependencies (PyTorch and Hugging Face Transformers).
• Finqanet Generator:
• Contains files like Convert.py, Main.py, Model_new.py, Test.py, config.py, and related utility files.
• Converts the outputs from the retriever into training inputs for the generator model.
• Also supports training and inference of the generation model.
• Shared Utilities:
• A separate “utils” folder exists, indicating common functions possibly used by both retriever and generator.
• External Services & Libraries:
• The system relies on PyTorch and Huggingface Transformers.
• Workflow Scripts:
• There are shell scripts (e.g., run_model.sh) included in both retriever and generator folders. They signify the execution triggers for training and inference.
Relationships and Data Flow
• Finally, from the “Finqanet Generator”, show flows both to a training process component and an inference output component.
• Additionally, highlight that both modules depend on configuration files that guide model training/inference (for example, config.py in each module).
Detail Architectural Patterns and Design Principles
• The design exhibits separation of concerns: the retriever and generator modules have dedicated directories and functionalities.
• Usage of configuration files and script-based execution for modularity and easy adaptation of parameters.
• That the shared utilities folder signals a DRY (Don’t Repeat Yourself) principle by centralizing common functions.
Specific Technologies and Dependencies
• Python for core development.
• PyTorch 1.7.1 and Huggingface Transformers 4.4.2 for model implementation.
• You may also include that the dataset is in JSON format and structured for conversation and turn-level processing.