quarkus-langchain4j
quarkus-langchain4j copied to clipboard
Re-enable native tests for in-process embeddings
We disabled them after upgrading to langchain4j 0.28.0: https://github.com/quarkiverse/quarkus-langchain4j/pull/369
I tried to build my project in native before the upgrade and I have this issue when i use CompressingQueryTransformer:
[thread:51] scope: ForkJoinPool-2-worker-3
[thread:51] scope: ForkJoinPool-2-worker-3.ClosedWorldAnalysis
Context: StructuredGraph:72996{AnalysisMethod<CeliaRAGConfiguration$BeanRetrievalAugmentorSupplier.get -> HotSpotMethod<CeliaRAGConfiguration$BeanRetrievalAugmentorSupplier.get()>, invoked: true, implInvoked: false, intrinsic: false, inlined: false>}
Context: AnalysisMethod<CeliaRAGConfiguration$BeanRetrievalAugmentorSupplier.get -> HotSpotMethod<CeliaRAGConfiguration$BeanRetrievalAugmentorSupplier.get()>, invoked: true, implInvoked: false, intrinsic: false, inlined: false>
[thread:51] scope: ForkJoinPool-2-worker-3.ClosedWorldAnalysis.AnalysisGraphBuilderPhase
Exception raised in scope ForkJoinPool-2-worker-3.ClosedWorldAnalysis.AnalysisGraphBuilderPhase: com.oracle.svm.core.util.UserError$UserException: **Class initialization of dev.langchain4j.rag.query.transformer.CompressingQueryTransformer failed. Use the option
'--initialize-at-run-time=dev.langchain4j.rag.query.transformer.CompressingQueryTransformer'**
Without native mode it works.