feat: simplify retrieve_docs response and add score threshold filtering #43
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
| name: Functional Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test-unit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install -r test/requirements.txt | |
| - name: Run unit tests | |
| run: | | |
| pytest test/test_chunk_location.py -v | |
| test-incremental: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -r requirements.txt | |
| python -m pip install -r test/requirements.txt | |
| - name: Run incremental ingest test | |
| env: | |
| DATA_DIR: ./test_data_dummy | |
| STORAGE_DIR: ./test_storage_dummy | |
| run: | | |
| # Download models first so offline mode works in tests | |
| python ingest.py --download-models | |
| pytest test/test_incremental_ingest.py |