getzep / graphiti

Build and query dynamic, temporally-aware Knowledge Graphs
https://help.getzep.com/graphiti
Apache License 2.0
1.37k stars 72 forks source link

feat: add FastAPI lifespan and healthcheck endpoint #144

Closed paul-paliychuk closed 1 month ago

paul-paliychuk commented 1 month ago

[!IMPORTANT] Add FastAPI lifespan for graphiti initialization, a /healthcheck endpoint, and initialize_graphiti function for index setup.

  • FastAPI Lifespan: Added lifespan async context manager in main.py for graphiti initialization.
  • Endpoints: Replaced root endpoint with /healthcheck in main.py, returning JSON status.
  • Graphiti Initialization: Added initialize_graphiti() in zep_graphiti.py for index and constraint setup.

This description was created by Ellipsis for f65113284627f291f639a0862520f5a56eff79a0. It will automatically update as commits are pushed.