MicroFish/backend/app/services
Ubuntu dfabab5343 feat(graph): expand ontology to 20 types, pass attributes to Graphiti, add retry
- ontology_generator: increase entity limit to 20 (18 specific + 2 fallback),
  edge types to 20 (12-20 requested); bump max_tokens to 8192
- ontology_generator: fallback type names (Person/Organization) now resolved
  via i18n so Catalan gets Persona/Organització
- locales: add ontologyFallback* keys to en/zh/es/ca
- graph_builder: pass entity/edge attributes to non-Zep set_ontology (were discarded)
- graphiti_backend: _make_model builds real Pydantic fields per attribute
- graphiti_backend: _build_extraction_instructions includes per-entity attribute
  hints so the LLM knows which fields to extract
- graphiti_backend: add_batch retries up to 3x on "node not found" race condition
  with exponential backoff (2s, 4s) before propagating the error

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-25 19:19:28 +00:00
..
__init__.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
graph_builder.py feat(graph): expand ontology to 20 types, pass attributes to Graphiti, add retry 2026-04-25 19:19:28 +00:00
oasis_profile_generator.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
ontology_generator.py feat(graph): expand ontology to 20 types, pass attributes to Graphiti, add retry 2026-04-25 19:19:28 +00:00
report_agent.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
simulation_config_generator.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
simulation_ipc.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
simulation_manager.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
simulation_runner.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
text_processor.py chore(i18n): replace all hardcoded Chinese strings with English in backend 2026-04-24 23:40:58 +00:00
zep_entity_reader.py refactor(services): replace direct Zep SDK calls with GraphBackend interface 2026-04-25 13:09:59 +00:00
zep_graph_memory_updater.py refactor(services): replace direct Zep SDK calls with GraphBackend interface 2026-04-25 13:09:59 +00:00
zep_tools.py refactor(services): replace direct Zep SDK calls with GraphBackend interface 2026-04-25 13:09:59 +00:00