Spring AI examples using Mistral AI as AI model provider.
- Java 25
- Maven 4
- Mistral AI API key
- Qdrant Cloud AI API key (for the RAG example)
- Chat Client: Example covering the following features:
- JSON structured output,
- Session service with JDBC repository,
- Request and response message logging.
- RAG: Example covering the following features:
- JSON data with metadata reading to add documents to Qdrant vector store only if the stored collection is empty,
- Question and answer with a filtered search limiting data retrieval from the vector store,
- JSON structured output,
- Session service with JDBC repository,
- Request and response message logging.
- Tools: Example covering the following features:
- Custom tools to fetch current date time and to search pope either by date or by pontiff number,
- JSON structured output,
- Session service with JDBC repository,
- Request and response message logging.
- MCP: Example covering the following features:
- Modern Streamable-HTTP MCP servers offering tools to fetch current date time and to search pope either by date or by pontiff number,
- MCP client using these two MCP servers,
- JSON structured output,
- Session service with JDBC repository,
- Request and response message logging.
- Mistral Medium 3.5
- Mistral Large 4
- Mistral Embed
- Qdrant