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