Skip to content

actions-graph: write plain text on message actions #415

Description

@antejavor

Part of #390. Decided in #393 (point 3).

What

actions-graph writes a plain text property on message actions (user_message, assistant_message) when it creates them, taken from the message content. Tool calls, tool results and other actions get no text.

Today, turn text exists only inside the JSON string Action.properties, which Cypher can't unpack. The eval works around that with ensure_turn_text_index, which reads content in Python and writes a.text back. With text written at create, the full-text index and the vector index (#393) both cover one plain property, and the eval drops the workaround.

Done when

  • A real-Memgraph test shows that message actions carry text and tool actions don't.
  • The eval reads a.text without materializing it, and creates its text index only.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions