How Woongjin Thinkbig Built a Graph Agent and Cut Response Time by 37%

Key point

Woongjin Thinkbig built and improved a graph agent, reducing response time from 32.9 seconds to 20.8 seconds.

1 / 7

Details

  • Woongjin Thinkbig built a graph agent that explores in natural language an Amazon Neptune knowledge graph connecting approximately 50 billion learning data records and answers with supporting evidence, then moved its operational setup to Amazon Bedrock AgentCore.
  • In an evaluation of 56 golden-set cases covering 6 roles and 47 query categories, the Output rubric score improved from 0.45 to 0.62, ToolSelection from 0.73 to 0.96, and ToolParameter from 0.49 to 0.95.
  • In the before-and-after comparison, total tokens per turn fell by 53%, from 61,413 to 28,855; tool calls fell by 54%, from 7.0 to 3.2; and response time was reduced by 37%, from 32.9 seconds to 20.8 seconds.
  • With prompt caching, the average uncached input tokens per case in the active golden-set evaluation fell from 59,366 to 8, and the effective cost of input tokens was reduced by approximately 70%.

Agent Design and Evaluation

  • The golden set was split into a development set of 29 cases and a holdout set of 27 cases. Expected answers were created from actual Neptune query results and included questions, answers, expected tool-call paths, and ground-truth queries.
  • The agent was designed with 6 tools that provide summaries and counts first, then query additional data as needed. get_content displays up to 30 video titles, question items provide the total count and 10 sample IDs, and prerequisite exploration queries 1–2 hops.
  • The agent only reads from the graph; a query guard rejects write operations and caps the number of result rows.

AgentCore Migration and Observability

  • Service Pods and Airflow remained on EKS, while agent execution, tool calls, authentication, and conversation history were moved to AgentCore; the existing VPC and routing configuration was retained.
  • Sessions were tied to tenant and user identifiers to prevent conversation context from being mixed when different users had the same session ID, and conversation history was managed with AgentCore Memory.
  • Traces were collected with Amazon CloudWatch Omni and AWS Distro for OpenTelemetry, and prompt templates and versions were recorded so response time, token usage, tool calls, and evaluation results could be inspected.

Next Steps

  • The plan is to connect learning history and concept-level mastery to the graph to expand into learner-specific recommendations, and to incorporate TEACHES_CONCEPT relationships between content and concepts into the graph after review when extracted by an LLM.

This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.

Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.