Installation¶
FlowRoute requires Python 3.10 or newer.
Core router¶
Create an isolated environment and install the published package:
On Windows PowerShell, activate the environment with:
The core install provides:
- the
flowroutePython package; - the
flowroute routeandflowroute evaluatecommands; - the local TF-IDF retriever and lexical verifier; and
- YAML catalog validation.
It does not include the demo catalog, fixtures, or training scripts. Those live in the repository; see From source if you need them.
Optional extras¶
Adds the learned inference backends. This install is significantly larger because it includes Torch.
Adds Datasets and Accelerate to the learned-backend dependencies. The training scripts themselves ship only in the repository.
Adds pytest, Ruff, mypy, build, and HTTPX. Run this from a clone, not against the published package.
From source¶
Work from a clone when you need the demo catalog, the fixture suite, the training scripts, or a development install:
git clone https://github.com/open-first/FlowRoute.git
cd FlowRoute
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
An editable install points the flowroute command at your working tree, so source edits take
effect without reinstalling.
Verify the install¶
From a clone, also run the test suite:
Dependency groups¶
| Install | Main dependencies | Intended use |
|---|---|---|
pip install flowroute |
NumPy, Pydantic, PyYAML, regex, scikit-learn | Local baseline and library |
pip install "flowroute[api]" |
FastAPI, Uvicorn | HTTP service |
pip install "flowroute[hf]" |
Torch, Transformers, Sentence Transformers | Learned inference backends |
pip install "flowroute[training]" |
Datasets, Accelerate, and learned-backend dependencies | Dataset processing and training |
pip install -e ".[dev]" |
pytest, Ruff, mypy, build, HTTPX | Development and tests (clone only) |
Next: route the first request.