feat(rag): 打通自动解析与手动异步切片链路

This commit is contained in:
2026-05-24 22:03:29 +08:00
parent e37e8dfca6
commit cfa5d1f4e1
12 changed files with 210 additions and 13 deletions

View File

@@ -18,6 +18,7 @@ import org.mockito.Mock;
import org.mockito.Spy;
import org.mockito.junit.jupiter.MockitoExtension;
import org.springframework.mock.web.MockMultipartFile;
import org.springframework.context.ApplicationEventPublisher;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNull;
@@ -38,6 +39,9 @@ class RagDocumentServiceImplTests {
@Mock
private ISysAttachmentService sysAttachmentService;
@Mock
private ApplicationEventPublisher eventPublisher;
@Test
void batchUploadShouldUseRagSourceTypeAndStoreIdAsSourceId() {
MockMultipartFile file = new MockMultipartFile(