Skip to main content

Module improve

Module improve 

Source
Expand description

Bidirectional session-graph bridge — improve().

Four-stage pipeline matching Python cognee.api.v1.improve.improve():

  1. Apply feedback weights from session Q&A entries to graph nodes/edges.
  2. Persist session Q&A text into the permanent knowledge graph.
  3. Default enrichment: reuse memify() for triplet embeddings.
  4. Sync recent graph edges into the session’s graph_context.

Each stage is wrapped in a warning-only handler so that a failure in one stage does not abort subsequent stages (matches Python semantics).

Structs§

ImproveParams
Parameters for improve.
ImproveResult
Result of an improve() operation.

Functions§

improve
Bidirectional session-graph bridge.