Files
doczyai-pipelines/fieldExtraction
Mayank Aamseek 6f1d7d90b4 Merged in hotfix/methodology_breakout_issue_fixes (pull request #456)
Hotfix/methodology breakout issue fixes

* Merge branch 'hotfix/methodology_breakout_issue_fixes' of https://bitbucket.org/aarete/doczy.ai into hotfix/methodology_breakout_issue_fixes
merged with current local changes

* opps methodology added

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes
merged changes from main

* Merged main into hotfix/methodology_breakout_issue_fixes

* duplicate N/A fixed

* Merge branch 'hotfix/methodology_breakout_issue_fixes' of https://bitbucket.org/aarete/doczy.ai into hotfix/methodology_breakout_issue_fixes
merged changes from main

* updated AARETE_DERIVED_REIMB_METHOD prompt

* fee schedule prompt change

* REIMB_PCT_RATE prompt updated

* Merged main into hotfix/methodology_breakout_issue_fixes

* opps moved to grouper

* fee rate format fixed

* removed incentives

* removed funding and additional reimbursement

* separate invalid reimb

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* merged main into current branch

* updated valid reimb and fee_schedule_version

* code structure fix

* code structure fix 2

* Merge branch 'main' into hotfix/methodology_breakout_issue_fixes

* updated methodology breakout fields

* test notebook updated

* Merged main into hotfix/methodology_breakout_issue_fixes


Approved-by: Katon Minhas
2025-04-10 21:59:17 +00:00
..

Field Extraction

Running the Code

This project uses Python's module system for imports. To run the code properly:

  1. DO NOT run files directly like this:

    python src/client/main.py  # ❌ This won't work
    
  2. INSTEAD, use Python's module flag (-m) from the project root:

    python -m src.client.main  # ✅ This is correct
    

Why?

The code uses absolute imports (e.g., from src.utils import llm_utils) to maintain a clear and consistent package structure. Running with python -m ensures Python can properly resolve these imports.

Development

  • All imports should use the src. prefix (e.g., from src.utils import llm_utils)
  • Always run code from the project root directory using the -m flag
  • Tests are configured to handle these imports automatically via pytest settings in pyproject.toml

Configuration

The project uses poetry for dependency management and pytest for testing. Key configurations in pyproject.toml:

[tool.pytest.ini_options]
pythonpath=["."]
testpaths = [
    "tests"
]

Dependencies

To install dependencies:

poetry install

To run tests:

poetry run pytest

To run type checking:

poetry run mypy .