MicroFish/backend/app/services
PMA 2bec63be1b refactor: replace Zep Cloud memory with local JSON file storage
Removes the zep-cloud dependency entirely and replaces it with a
local file-based graph store (LocalGraphStore) that persists nodes,
edges, and episodes as JSON files under uploads/graphs/{graph_id}/.

- Add backend/app/utils/local_graph_store.py: thread-safe JSON store
  with keyword search, node upsert, and episode append
- Rewrite graph_builder.py: LLM-based entity/relationship extraction
  from text batches, stored locally instead of sent to Zep Cloud
- Rewrite zep_graph_memory_updater.py: agent activities written as
  episodes + searchable fact edges in local JSON
- Rewrite zep_entity_reader.py: reads nodes/edges from local JSON
- Rewrite zep_tools.py: keyword search on local JSON replaces
  Zep semantic search; _local_search is now the primary path
- Update oasis_profile_generator.py: local store replaces Zep client
  for entity context enrichment
- Update ontology_generator.py: generated code template uses
  pydantic BaseModel instead of Zep EntityModel/EdgeModel
- Convert zep_paging.py to a no-op stub (pagination not needed)
- Remove ZEP_API_KEY from config.py, add GRAPH_STORAGE_DIR
- Remove ZEP_API_KEY guards from api/graph.py and api/simulation.py
- Remove zep-cloud==3.13.0 from requirements.txt and pyproject.toml

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-21 00:25:21 -03:00
..
__init__.py Implement Interview feature for agent interactions in simulations 2025-12-08 15:55:39 +08:00
graph_builder.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00
oasis_profile_generator.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00
ontology_generator.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00
report_agent.py feat(i18n): replace all user-visible Chinese in report_agent.py 2026-04-01 17:44:52 +08:00
simulation_config_generator.py feat(i18n): replace remaining Chinese in config generator and profile generator 2026-04-01 17:19:12 +08:00
simulation_ipc.py Implement Interview feature for agent interactions in simulations 2025-12-08 15:55:39 +08:00
simulation_manager.py feat(i18n): replace remaining hardcoded Chinese in progress callbacks 2026-04-01 16:53:29 +08:00
simulation_runner.py fix(i18n): pass locale to background threads via thread-local storage 2026-04-01 16:55:51 +08:00
text_processor.py Introduce Project ID for context management, finalizing the stateful API pipeline from file submission to graph construction. 2025-11-28 17:21:08 +08:00
zep_entity_reader.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00
zep_graph_memory_updater.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00
zep_tools.py refactor: replace Zep Cloud memory with local JSON file storage 2026-05-21 00:25:21 -03:00