quarkus-langchain4j icon indicating copy to clipboard operation
quarkus-langchain4j copied to clipboard

Re-enable native tests for in-process embeddings

Open jmartisk opened this issue 1 year ago • 1 comments

We disabled them after upgrading to langchain4j 0.28.0: https://github.com/quarkiverse/quarkus-langchain4j/pull/369

jmartisk avatar Mar 21 '24 10:03 jmartisk

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.

humcqc avatar Mar 22 '24 14:03 humcqc