Latest Gemini features support in LangChain4j 0.32.0
LangChain4j 0.32.0 was released yesterday, including my pull request with the support for lots of new Gemini features:
- JSON output mode, to force Gemini to reply using JSON, without any markup,
- JSON schema, to control and constrain the JSON output to comply with a schema,
- Response grounding with Google Search web results and with private data in Vertex AI datastores,
- Easier debugging, thanks to new builder methods to log requests and responses,
- Function calling mode (none, automatic, or a subset of functions),
- Safety settings to catch harmful prompts and responses.
Let’s explore those new features together, thanks to some code examples! And at the end of the article, if you make it through, you’ll also discover 2 extra bonus points.
Read more...