mirror of
https://github.com/eznix86/ollama-venue-extractor.git
synced 2026-07-25 21:19:02 +00:00
No description
- Python 92.1%
- Makefile 7.9%
| src/venue_extractor | ||
| templates | ||
| tests | ||
| .gitignore | ||
| Makefile | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Venue Extractor
Extracts a venue name from markdown text using an Ollama.
Prerequisites
- Python 3.10+ (the project uses
uvto manage the virtual environment) - Ollama running locally on
http://localhost:11434 - The model
granite4:3binstalled (ollama pull granite4:3b)
Install / sync dependencies
make sync # installs runtime + dev (pytest) deps via uv
Run the tests
make test # runs the integration suite against the templates/ files
CLI usage (single entry‑point with sub‑commands)
# Fetch Meetup iCal and write template files
make fetch URL="https://www.meetup.com/<group>/events/ical" # optional OUT=templates
# Extract a venue from stdin (or pipe a file)
cat templates/1.txt | make extract
# Or directly with the console script:
uv run venue-extractor extract < templates/1.txt
Adding new templates
Add a new *.txt under the templates/ directory and update the param‑list in
tests/test_extract_venue_integration.py if you want the suite to check it.