Skip to content

[Docs]: Add standalone code example for Temporal Memory and time-bounded event retrieval #3917

Description

@Aditya1234M

Documentation Type

Missing documentation

Documentation Location

examples/ directory (and docs on SearchType.TEMPORAL retrieval)

Issue Description

Currently, there is no standalone code example demonstrating how to use Cognee for time-bounded event retrieval and multi-session memory across agent interactions using SearchType.TEMPORAL. New developers and AI engineers looking to implement temporal memory across sessions lack a clear reference script in the examples/ directory.

Suggested Improvement

Add a clean, self-contained example script (examples/python/temporal_search_demo.py) that demonstrates initializing Cognee, ingesting timestamped event strings into a dataset, building the graph with cognify(), and querying the timeline using SearchType.TEMPORAL. I have the script written and tested locally, and I would love to submit a PR to add it!

Additional Context

This standalone tutorial script will significantly help developers adopt Cognee's hybrid graph-vector memory layer for temporal reasoning and agent memory. I have the PR ready to open immediately for the WeMakeDevs hackathon!

Pre-submission Checklist

  • I have searched existing issues to ensure this documentation issue hasn't been reported already
  • I have provided a clear description of the documentation issue
  • I have specified the location of the documentation issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions