package com.agent.management.rag.controller; import com.agent.management.common.Result; import com.agent.management.rag.graph.GraphRagRetriever; import com.agent.management.rag.model.*; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*;
@RestController @RequestMapping("/api/rag/graph") @RequiredArgsConstructor public class GraphRagDebugController {private final GraphRagRetriever retriever;@PostMapping("/retrieve") public Result<RagRetrievalResult> retrieve(@RequestBody RagQuery q){return Result.success(retriever.retrieve(q));}}
