5 ms·
For my use case (https://www.grokvocab.com/ https://www.grokvocab.com/), I get proper JSON output without much effort. I am using Langchain4J (https://github.co
by ilamparithi 8mo ago
For my use case (https://www.grokvocab.com/ https://www.grokvocab.com/), I get proper JSON output without much effort. I am using Langchain4J (https://github.com/langchain4j/langchain4j https://github.com/langchain4j/langchain4j) which automatically maps the output JSON to my POJO. I just prompt the model to return the output as JSON.