Package com.bytedesk.kbase.llm_chunk
Class ChunkRestController
java.lang.Object
com.bytedesk.core.base.BaseRestController<ChunkRequest,ChunkRestService>
com.bytedesk.kbase.llm_chunk.ChunkRestController
@RestController
@RequestMapping("/api/v1/llm/chunk")
public class ChunkRestController
extends BaseRestController<ChunkRequest,ChunkRestService>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkElasticServiceprivate final ChunkRestServiceprivate ChunkVectorService -
Constructor Summary
ConstructorsConstructorDescriptionChunkRestController(ChunkRestService chunkRestService, ChunkElasticService chunkElasticService) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?>create(ChunkRequest request) 通用的create实现 减少子类重复代码org.springframework.http.ResponseEntity<?>delete(ChunkRequest request) 通用的delete实现 减少子类重复代码org.springframework.http.ResponseEntity<?>deleteAll(ChunkRequest request) org.springframework.http.ResponseEntity<?>enable(ChunkRequest request) export(ChunkRequest request, jakarta.servlet.http.HttpServletResponse response) exportorg.springframework.http.ResponseEntity<?>queryByOrg(ChunkRequest request) 通用的queryByOrg实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUid(ChunkRequest request) 通用的queryByUid实现 减少子类重复代码org.springframework.http.ResponseEntity<?>queryByUser(ChunkRequest request) 通用的queryByUser实现 减少子类重复代码org.springframework.http.ResponseEntity<?>update(ChunkRequest request) 通用的update实现 减少子类重复代码org.springframework.http.ResponseEntity<?>updateAllIndex(ChunkRequest request) org.springframework.http.ResponseEntity<?>updateAllVectorIndex(ChunkRequest request) org.springframework.http.ResponseEntity<?>updateIndex(ChunkRequest request) org.springframework.http.ResponseEntity<?>updateVectorIndex(ChunkRequest request) Methods inherited from class com.bytedesk.core.base.BaseRestController
deleteByOrgUid, exportTemplate, getService
-
Field Details
-
chunkRestService
-
chunkElasticService
-
chunkVectorService
-
-
Constructor Details
-
ChunkRestController
public ChunkRestController(ChunkRestService chunkRestService, ChunkElasticService chunkElasticService)
-
-
Method Details
-
queryByOrg
Description copied from class:BaseRestController通用的queryByOrg实现 减少子类重复代码- Overrides:
queryByOrgin classBaseRestController<ChunkRequest,ChunkRestService>
-
queryByUser
Description copied from class:BaseRestController通用的queryByUser实现 减少子类重复代码- Overrides:
queryByUserin classBaseRestController<ChunkRequest,ChunkRestService>
-
queryByUid
Description copied from class:BaseRestController通用的queryByUid实现 减少子类重复代码- Overrides:
queryByUidin classBaseRestController<ChunkRequest,ChunkRestService>
-
create
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u65b0\u5efa", description="create chunk") public org.springframework.http.ResponseEntity<?> create(ChunkRequest request) Description copied from class:BaseRestController通用的create实现 减少子类重复代码- Overrides:
createin classBaseRestController<ChunkRequest,ChunkRestService>
-
update
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u66f4\u65b0", description="update chunk") public org.springframework.http.ResponseEntity<?> update(ChunkRequest request) Description copied from class:BaseRestController通用的update实现 减少子类重复代码- Overrides:
updatein classBaseRestController<ChunkRequest,ChunkRestService>
-
delete
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u5220\u9664", description="delete chunk") public org.springframework.http.ResponseEntity<?> delete(ChunkRequest request) Description copied from class:BaseRestController通用的delete实现 减少子类重复代码- Overrides:
deletein classBaseRestController<ChunkRequest,ChunkRestService>
-
deleteAll
@PostMapping("/deleteAll") public org.springframework.http.ResponseEntity<?> deleteAll(@RequestBody ChunkRequest request) -
enable
@PostMapping("/enable") public org.springframework.http.ResponseEntity<?> enable(@RequestBody ChunkRequest request) -
export
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u5bfc\u51fa", description="export chunk") public Object export(ChunkRequest request, jakarta.servlet.http.HttpServletResponse response) Description copied from class:BaseRestControllerexport- Overrides:
exportin classBaseRestController<ChunkRequest,ChunkRestService> - Parameters:
request- role- Returns:
- json
-
updateIndex
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u66f4\u65b0\u7d22\u5f15", description="update chunk index") @PostMapping("/updateIndex") public org.springframework.http.ResponseEntity<?> updateIndex(@RequestBody ChunkRequest request) -
updateVectorIndex
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u66f4\u65b0\u5411\u91cf\u7d22\u5f15", description="update chunk vector index") @PostMapping("/updateVectorIndex") public org.springframework.http.ResponseEntity<?> updateVectorIndex(@RequestBody ChunkRequest request) -
updateAllIndex
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u66f4\u65b0\u6240\u6709\u7d22\u5f15", description="update all chunk index") @PostMapping("/updateAllIndex") public org.springframework.http.ResponseEntity<?> updateAllIndex(@RequestBody ChunkRequest request) -
updateAllVectorIndex
@ActionAnnotation(title="\u6587\u4ef6\u5206\u5757", action="\u66f4\u65b0\u6240\u6709\u5411\u91cf\u7d22\u5f15", description="update all chunk vector index") @PostMapping("/updateAllVectorIndex") public org.springframework.http.ResponseEntity<?> updateAllVectorIndex(@RequestBody ChunkRequest request)
-