An open API service indexing awesome lists of open source software.

https://github.com/docling-project/docling-metrics

Core package for type and interface definitions of docling metric implementations
https://github.com/docling-project/docling-metrics

Last synced: 4 months ago
JSON representation

Core package for type and interface definitions of docling metric implementations

Awesome Lists containing this project

README

          

# docling-metrics

Monorepo for Docling metric packages — types, evaluators, and scoring utilities for document processing evaluation.

## Packages

| Package | Description |
|---------|-------------|
| [docling-metrics-core](packages/docling-metrics-core/) | Base metric types and abstract interfaces |

## Development

This repository uses [uv workspaces](https://docs.astral.sh/uv/concepts/workspaces/). All packages are developed in a single virtual environment with compatible dependencies.

```bash
# Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install all packages (editable) + dev tools
uv sync

# Run tests for a specific package
uv run pytest packages/docling-metrics-core/tests

# Run all tests
uv run pytest packages/*/tests

# Run linting and formatting
pre-commit run --all-files
```

Changes to any workspace package are immediately available to all other packages in the same environment — no reinstall needed.

## Adding a New Package

1. Create `packages//` with a `pyproject.toml`, source directory, and `tests/`
2. If it depends on another workspace package, add it to `[project] dependencies` and declare `[tool.uv.sources]`:
```toml
[project]
dependencies = ["docling-metrics-core"]

[tool.uv.sources]
docling-metrics-core = { workspace = true }
```
3. Run `uv sync` to regenerate the lock file

## License

MIT