gnodet opened a new pull request, #20919: URL: https://github.com/apache/camel/pull/20919
[CAMEL-22850](https://issues.apache.org/jira/browse/CAMEL-22850): Integrate LangChain4j Spring Boot starters in Camel Spring Boot This commit integrates LangChain4j Spring Boot starters with Apache Camel's langchain4j components, enabling auto-configuration and simplified setup for Spring Boot applications. Changes: - Updated camel-langchain4j-chat component documentation to include Spring Boot starter integration examples with auto-configuration - Updated camel-langchain4j-agent component documentation with Spring Boot starter usage patterns - Updated camel-langchain4j-embeddings component documentation with embedding model auto-configuration examples - Added comprehensive LangChain4j Spring Boot Integration guide covering: * Available LangChain4j Spring Boot starters for various LLM providers * Configuration examples for OpenAI, Azure OpenAI, Ollama, and others * Complete working examples with RAG, streaming, and multi-provider setups * Best practices for production deployments * Troubleshooting guide - Created example Spring Boot application demonstrating the integration: * Maven POM with proper dependencies * Profile-based configuration (dev with Ollama, prod with OpenAI) * Camel routes using auto-configured LangChain4j beans * REST API endpoints for chat interactions Benefits: - Simplified configuration through Spring Boot auto-configuration - Type-safe configuration properties with IDE support - Reduced boilerplate code for LLM integration - Consistent configuration approach across different providers - Production-ready setup with health checks and metrics The integration allows users to leverage LangChain4j's Spring Boot starters (langchain4j-open-ai-spring-boot-starter, langchain4j-ollama-spring-boot-starter, etc.) for automatic bean configuration, while seamlessly using these beans in Camel's langchain4j components for AI/LLM integration workflows. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
