mirror of
https://github.com/ccmjga/zhilu-admin
synced 2026-03-14 13:43:42 +08:00
add async
This commit is contained in:
@@ -61,7 +61,9 @@ public class LibraryController {
|
||||
@RequestPart("libraryId") Long libraryId, @RequestPart("file") MultipartFile multipartFile)
|
||||
throws Exception {
|
||||
String objectName = uploadService.uploadLibraryDoc(multipartFile);
|
||||
ragService.ingestDocumentBy(libraryId, objectName, multipartFile.getOriginalFilename());
|
||||
Long libraryDocId =
|
||||
ragService.createLibraryDocBy(libraryId, objectName, multipartFile.getOriginalFilename());
|
||||
ragService.embeddingAndCreateDocSegment(libraryDocId, objectName);
|
||||
return objectName;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user