stephanj / rag-genie

The RAG Genie, an LLM RAG prototype to test and evaluate your embeddings, chunk splitting strategies using Q&A and evaluations.
MIT License
60 stars 14 forks source link

ChatBotResourceIT method signature error #11

Open LiveNathan opened 2 months ago

LiveNathan commented 2 months ago

Hi Stephan! Thanks for the great presentation and the awesome project.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.12.1:testCompile (default-testCompile) on project genie: Compilation failure: Compilation failure: [ERROR] /Users/nathanlively/Documents/Sync/Websites/rag-genie/src/test/java/com/devoxx/genie/web/rest/ChatBotResourceIT.java:[77,24] method split in class com.devoxx.genie.service.splitter.SplitterService cannot be applied to given types; [ERROR] required: com.devoxx.genie.domain.enumeration.SplitterStrategy,java.lang.String,java.lang.String,int,int [ERROR] found: com.devoxx.genie.domain.enumeration.SplitterStrategy,java.lang.String,int,int [ERROR] reason: actual and formal argument lists differ in length [ERROR] /Users/nathanlively/Documents/Sync/Websites/rag-genie/src/test/java/com/devoxx/genie/web/rest/ChatBotResourceIT.java:[77,92] incompatible types: int cannot be converted to java.lang.String

LiveNathan commented 2 months ago

2024-06-25 at 19 36 29@2x

LiveNathan commented 2 months ago

2024-06-25 at 19 43 49@2x

This change makes the test compile, but fails with 500.

[ERROR] Failures: [ERROR] com.devoxx.genie.web.rest.ChatBotResourceIT.test_chatMsg_isOk [ERROR] Run 1: ChatBotResourceIT.test_chatMsg_isOk:100 Status expected:<200> but was:<500> [ERROR] Run 2: ChatBotResourceIT.test_chatMsg_isOk:100 Status expected:<200> but was:<500>

LiveNathan commented 2 months ago

Despite this issue, the app starts, so I'm guessing it was user error. ¯_(ツ)_/¯