es
    container.selectAll('.link')
      .attr('x1', d => d.source.x)
      .attr('y1', d => d.source.y)
      .attr('x2', d => d.target.x)
      .attr('y2', d => d.target.y);

    container.selectAll('.node')
      .attr('transform', d => `translate(${d.x}, ${d.y})`);
  }

  // Event handling setup
  const handlers = {
    "boost.listener.event": handleBoostEvent,
    "chat.completion.chunk": handleCompletionChunk,
    'boost.concept': function ({ data }) {
      addNode(data.concept, "relevant_concepts")