Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,6 @@ jobs:
# Optional dependencies need to be installed in separate command.
uv pip install 'sieves[ingestion,distill,test]'

- name: Create and enable 4 GB swap
run: |
sudo fallocate -l 4G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
free -h

- name: Build docs
run: |
source .venv/bin/activate
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies = [
"json-repair>=0.48.0",
"openai>=1.109.1,<2",
"langchain-openai>=1.1.6,<2",
"pydantic-ai>=0.0.31,<0.0.32",
"pydantic-ai>=1,<2",
"scikit-learn>=1.6,<2",
]
classifiers = [
Expand All @@ -56,7 +56,6 @@ Repository = "https://github.com/MantisAI/sieves"
[project.optional-dependencies]
ingestion = [
"docling>=2,<3",
"marker-pdf[full]>=1.6.1,<2",
"nltk>=3.9.1",
]
distill = [
Expand Down
2 changes: 1 addition & 1 deletion sieves/tasks/predictive/bridges.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

with warnings.catch_warnings():
warnings.simplefilter("ignore", category=DeprecationWarning)
from pydantic_ai.format_as_xml import format_as_xml
from pydantic_ai.format_prompt import format_as_xml

from sieves.data import Doc
from sieves.model_wrappers.types import ModelSettings
Expand Down
8 changes: 6 additions & 2 deletions sieves/tests/tasks/preprocessing/ingestion/test_marker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
from pathlib import Path

import pytest
from marker.converters.pdf import PdfConverter
from marker.models import create_model_dict

try:
from marker.converters.pdf import PdfConverter
from marker.models import create_model_dict
except ImportError:
pass

from sieves import Doc, Pipeline, tasks
from sieves.serialization import Config
Expand Down
Loading