public void configure()

in data-extract-langchain4j/src/main/java/org/acme/extraction/Routes.java [30:44]


    public void configure() {

        // Consumes file documents that contain conversation transcripts (JSON format)
        from("file:target/transcripts?sortBy=file:name")
                .log("A document has been received by the camel-quarkus-file extension: ${body}")
                .setHeader("expectedDateFormat", constant("YYYY-MM-DD"))
                // The CustomPojoExtractionService transforms the conversation transcript into a CustomPojoExtractionService.CustomPojo
                .bean(CustomPojoExtractionService.class)
                // Store extracted CustomPojoExtractionService.CustomPojos objects into the CustomPojoStore for later inspection
                .bean(customPojoStore);

        // This route make it possible to inspect the extracted POJOs, mainly used for demo and test
        from("platform-http:/custom-pojo-store?produces=application/json")
                .bean(customPojoStore, "asString");
    }