Files
compounding-intelligence/scripts/test_entity_extractor.py
Step35 60889f4720
Some checks failed
Test / pytest (pull_request) Failing after 8s
feat: add entity_extractor for NER (8.1 Entity Extractor)
Add scripts/entity_extractor.py — LLM-based named entity recognition from session transcripts, READMEs, and issues. Extracts people, projects, tools, concepts, and repos. Outputs to knowledge/entities.json.

Includes:
- templates/entity-extraction-prompt.md — extraction prompt
- tests/test_entity_extractor.py — unit tests for dedup/merge logic
- scripts/test_entity_extractor.py — smoke test (mocked pipeline)

Accepts --file, --dir, --session, --batch modes. Deduplicates by name+type, merges with existing entities.json. Designed to yield 100+ entities per batch run.

Closes #144
2026-04-26 00:18:37 -04:00

4.5 KiB
Executable File