Class: Llmemory::Dashboard::GraphController

Inherits:
ApplicationController show all
Defined in:
app/controllers/llmemory/dashboard/graph_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
# File 'app/controllers/llmemory/dashboard/graph_controller.rb', line 6

def index
  @user_id = params[:user_id]
  @nodes = graph_based_storage.list_nodes(@user_id, limit: 200)
  @edges = graph_based_storage.list_edges(@user_id, limit: 300)
end

#showObject



12
13
14
15
# File 'app/controllers/llmemory/dashboard/graph_controller.rb', line 12

def show
  index
  render :index
end