tmp
This commit is contained in:
16
week10/src/main/java/com/learn/dto/RAGQueryRequest.java
Normal file
16
week10/src/main/java/com/learn/dto/RAGQueryRequest.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package com.learn.dto;
|
||||
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
public class RAGQueryRequest {
|
||||
|
||||
@NotBlank(message = "问题不能为空")
|
||||
private String question;
|
||||
|
||||
private int topK = 3;
|
||||
|
||||
public String getQuestion() { return question; }
|
||||
public void setQuestion(String question) { this.question = question; }
|
||||
public int getTopK() { return topK; }
|
||||
public void setTopK(int topK) { this.topK = topK; }
|
||||
}
|
||||
Reference in New Issue
Block a user