Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
04be713
feat: Add DocumentParsingService for document processing pipeline
Yoo-SH Aug 13, 2025
7407fb3
refactor: enhance common response structure and error handling
Yoo-SH Aug 13, 2025
613f9be
Merge branch 'feature/ingestion-pipeline-parsing' into feature/ingest…
Yoo-SH Aug 13, 2025
e5cecec
feat: update StructuredChunk DTO for chunking pipeline
Yoo-SH Aug 13, 2025
4b88310
refactor: improve DocumentChunk entity structure and relationships
Yoo-SH Aug 13, 2025
8f1d5c2
feat: deleteBySourceDocumentId function
Yoo-SH Aug 13, 2025
8289e2f
feat: enhance FileStorageService with comprehensive document management
Yoo-SH Aug 13, 2025
698abfc
feat: add ChunkingService for document segmentation
Yoo-SH Aug 13, 2025
ad46592
Merge branch 'feature/ingestion-pipeline-chunk' into feature/ingestio…
Yoo-SH Aug 13, 2025
8e95c7c
feat: add utility methods to SourceDocument entity
Yoo-SH Aug 13, 2025
a2096c0
feat: add EmbeddingService for semantic vector generation
Yoo-SH Aug 13, 2025
5b5e541
Merge branch 'feature/ingestion-pipeline-embedding' into feature/inge…
Yoo-SH Aug 13, 2025
2c71181
feat: add IndexingService for document chunk storage
Yoo-SH Aug 13, 2025
81545a1
Merge branch 'feature/ingestion-pipeline-index' into feature/ingestio…
Yoo-SH Aug 13, 2025
b65a7f3
refactor: implement new SourceController with complete ingestion pipe…
Yoo-SH Aug 13, 2025
1700f0b
Merge branch 'feature/ingestion-pipeline-controller' into feature/ing…
Yoo-SH Aug 13, 2025
c8a392f
Update core/src/main/java/com/opencontext/service/ChunkingService.java
Yoo-SH Aug 13, 2025
51af28c
Update core/src/main/java/com/opencontext/service/DocumentParsingServ…
Yoo-SH Aug 13, 2025
03e99e8
Update core/src/main/java/com/opencontext/service/IndexingService.java
Yoo-SH Aug 13, 2025
219588c
Update core/src/main/java/com/opencontext/service/EmbeddingService.java
Yoo-SH Aug 13, 2025
4e24575
Update core/src/main/java/com/opencontext/controller/SourceController…
Yoo-SH Aug 13, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions core/src/main/java/com/opencontext/common/CommonResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,19 @@ public static <T> CommonResponse<T> error(String message, String errorCode) {
);
}

/**
* Static factory method for creating error responses with message only.
*/
public static <T> CommonResponse<T> error(String message) {
return new CommonResponse<>(
false,
null,
message,
"INTERNAL_ERROR",
LocalDateTime.now()
);
}

/**
* Static factory method for creating error responses from ErrorCode enum.
*/
Expand Down
10 changes: 10 additions & 0 deletions core/src/main/java/com/opencontext/config/WebConfig.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package com.opencontext.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

Expand All @@ -15,6 +17,14 @@ public class WebConfig implements WebMvcConfigurer {
* CORS configuration.
* Allows CORS for communication with frontend in development environment.
*/
/**
* RestTemplate bean for HTTP client operations.
*/
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}

@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/api/**")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.opencontext.controller.SourceController;
package com.opencontext.controller;

import com.opencontext.common.CommonResponse;
import com.opencontext.common.PageResponse;
Expand Down
Loading