-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🚧 Using LangChain4J Document class instead of IngestorDocument * 🚧 Improving FileSystemIngestor * refactor: Update jobrunr-spring-boot-3-starter dependency to version 7.2.0 * 🚧 Improving FileSystemIngestor * 🚧 Improving FileSystemIngestor * 🚧 Improving FileSystemIngestor * ❌ Begin RAG Api Ask endpoint * feat: Include dRAGon picture to README.md * 🚧 Test entrypoint for querying the embedding store * feat: Add Swagger configuration for RAG API * Refactoring directories locations * Refactoring directories locations * Fixing ingest : only one document at a time * Remove Silo link inside Farm when deleted * Fix build test * Ability to rebuild Silo from API Command * Renaming AskRagApi to SearchRagApi
- Loading branch information
1 parent
5478ea5
commit 77712a1
Showing
40 changed files
with
689 additions
and
436 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 0 additions & 19 deletions
19
backend/src/main/java/ai/dragon/controller/IndexController.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...ain/java/ai/dragon/controller/api/backendapi/command/SiloCommandBackendApiController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package ai.dragon.controller.api.backendapi.command; | ||
|
||
import java.util.UUID; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import ai.dragon.service.SiloService; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@RestController | ||
@RequestMapping("/api/backendapi/command/silo") | ||
@Tag(name = "Silo Command", description = "Silo Command API Endpoints") | ||
public class SiloCommandBackendApiController { | ||
@Autowired | ||
private SiloService siloService; | ||
|
||
@PostMapping("/rebuild/{uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}}") | ||
@ApiResponse(responseCode = "200", description = "Silo is being rebuilt.") | ||
@Operation(summary = "Rebuild Silo", description = "This will recompute the embeddings of the Silo.") | ||
public void export(@PathVariable("uuid") @Parameter(description = "Identifier of the Silo") UUID uuid) throws Exception { | ||
siloService.rebuildSilo(uuid); | ||
} | ||
} |
81 changes: 0 additions & 81 deletions
81
...ain/java/ai/dragon/controller/api/backendapi/repository/ProviderBackendApiController.java
This file was deleted.
Oops, something went wrong.
35 changes: 35 additions & 0 deletions
35
backend/src/main/java/ai/dragon/controller/api/ragapi/SearchRagApiController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package ai.dragon.controller.api.ragapi; | ||
|
||
import java.util.UUID; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.PathVariable; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
import ai.dragon.service.EmbeddingStoreService; | ||
import io.swagger.v3.oas.annotations.Operation; | ||
import io.swagger.v3.oas.annotations.Parameter; | ||
import io.swagger.v3.oas.annotations.responses.ApiResponse; | ||
import io.swagger.v3.oas.annotations.tags.Tag; | ||
|
||
@RestController | ||
@RequestMapping("/api/ragapi/search") | ||
@Tag(name = "Ask", description = "Search API Endpoints") | ||
public class SearchRagApiController { | ||
@Autowired | ||
private EmbeddingStoreService embeddingStoreService; | ||
|
||
// TODO Silo OR Farm | ||
@PostMapping("/documents/silo/{uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}}") | ||
@ApiResponse(responseCode = "200", description = "Documents have been successfully retrieved.") | ||
@Operation(summary = "Search documents inside a Silo", description = "Search documents from the Silo.") | ||
public void searchDocumentsInSilo( | ||
@PathVariable("uuid") @Parameter(description = "Identifier of the Silo") UUID uuid, | ||
@RequestBody String query) | ||
throws Exception { | ||
embeddingStoreService.query(uuid, query); | ||
} | ||
} |
46 changes: 0 additions & 46 deletions
46
backend/src/main/java/ai/dragon/entity/ProviderEntity.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
backend/src/main/java/ai/dragon/enumeration/CommandLineExecutionResultType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package ai.dragon.enumeration; | ||
|
||
public enum CommandLineExecutionResultType { | ||
EXECUTED, | ||
BYPASS, | ||
ERROR | ||
Executed, | ||
Bypass, | ||
Error | ||
} |
Oops, something went wrong.