Skip to content

test: ask for a precise count in test_count_batiment_vendee to avoid a bbox fallback - #61

Merged
mborne merged 1 commit into
masterfrom
42-count-batiment-vendee
Oct 20, 2026
Merged

mborne merged 1 commit into
masterfrom
42-count-batiment-vendee

Conversation

@mborne

@mborne mborne commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Refs #42

Changes

  • test_count_batiment_vendee.py: the question now asks for a precise count on the exact department footprint:
    "Combien y a-t-il de bâtiments dans le département de la Vendée ? Je veux un comptage précis sur l'emprise exacte du département, pas une approximation."

Motivation

With ignfab/geocontext#216, the too large ADMINEXPRESS-COG.LATEST:departement geometry is rejected and the error message suggests either the -CARTO-PE layer or a bbox filter. With the original question, the model followed the bbox hint and answered 1 111 470 buildings (neighbouring departments included).

Testing

GEOCONTEXT_DEV=1 MCP_SERVERS_PATH=config/mcp-servers-dev.json SKIP_TEST_COUNT_BATIMENT_VENDEE=0 uv run pytest test_count_batiment_vendee.py

Against a local geocontext built from ignfab/geocontext#216, with claude-haiku-4-5: passed 2/2, answer 854 362. The model still tries the bbox first, then switches to ADMINEXPRESS-COG-CARTO-PE.LATEST:departement.

Not done

🤖 Generated with Claude Code

…a bbox fallback (refs #42)

With ignfab/geocontext#216, the too large Vendée geometry is rejected and the
error message suggests a bbox filter, which overcounts (~1 111 000 buildings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mborne
mborne merged commit 0f32b39 into master Oct 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant