Sen descrición

Lukas Goldschmidt 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
app 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
ontology 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
scripts 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
tests 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
.env.example 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
.gitignore 00c5616db0 initial commit, scaffolding hai 1 mes
COARSE_TYPES.txt 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
PROJECT.md 480cef2fe5 docs update hai 1 mes
README.md 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
TODO.md 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
killserver.sh 00c5616db0 initial commit, scaffolding hai 1 mes
maintenance.sh d7c46a8fec basic maintenance hai 1 mes
ontology_suggestions.txt 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
requirements.txt d7c46a8fec basic maintenance hai 1 mes
resolve_scheme.md 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
restart.sh 00c5616db0 initial commit, scaffolding hai 1 mes
run.sh 6d58e75824 storage bug fixed hai 1 mes
test_resolve.sh 8ff17fe8fb atlas2-mcp: resolver strategies, confidence-aware cache, embeddings ranking, tests hai 1 mes
tests.sh 00c5616db0 initial commit, scaffolding hai 1 mes

README.md

atlas2-mcp

Python FastMCP server for the atlas2 resolution flow.

Current status

  • Exposes one tool: resolve()
  • resolve() now performs the working path:
    • store lookup (label/alias)
    • Wikidata fallback using wikidata.reconci.link quick-resolve (single-candidate)
    • minimal persist to Virtuoso via MCP
    • cache hits return the stored result when confidence is sufficient
  • Resolve supports strategy modes:
    • quick
    • ranked
    • interactive
    • hybrid
    • llm_select
  • Ranking can use embeddings via Ollama when strategy.use_embeddings=true
  • confidence controls cache reuse and re-resolution, not just the resolved/not-found status
  • Store lookup was debugged and made robust by splitting label-first then alias.
  • Maintenance scaffolding (dry-run CLI) exists to upgrade atlas:needsCuration true entities using:
    • ontology/wikidata_subclassof.ttl
    • Wikidata entity dumps
    • Atlas type bucket inference (Person/Organization/Location/etc.)

Resolver tests

  • ./test_resolve.sh runs resolver-focused tests only
  • It prints the subjects under test and a per-test timing table

How to run

1) Create config:

cp .env.example .env

2) Install dependencies:

pip install -r requirements.txt

3) Start:

./run.sh

Server runs on port 8550 and mounts the MCP endpoint at /mcp.