The embeddings model API in Spring AI provides the abstraction layer and support for model providers like OpenAI, enabling us to incorporate it into our Java applications.
Also find me here:
Baeldung Author
Manfred Ng
I have been a software developer since graduation and have worked on diverse projects using various Java technologies and frameworks. I enjoy gaming and staying active during my free time. 😎
Here's what I've written (so far):
Baeldung on Java
- All
- Spring AI (7)
- Java IO (6)
- JPA (6)
- Spring Data (4)
- Spring Boot (4)
- Persistence (4)
- Java String (4)
- Artificial Intelligence (4)
- Testing (3)
- Java Web (2)
- Spring Web (1)
- Spring (1)
- Security (1)
- REST (1)
- Java Array (1)
- Java (1)
- Data (1)
- Algorithms (1)
Determine if a File Is a PDF File in Java
Filed under Java IO
Explore several ways to determine whether a file is a PDF in Java using the file signature and with different libraries
Extracting Structured Data From Images Using Spring AI
Filed under Artificial Intelligence, Spring AI
Build a web service that accepts an uploaded image, passes it to the OpenAI chat model for image analysis, and returns a structured output with relevant information.
Enable HTTP2 with Tomcat in Spring Boot
Filed under Spring Boot
Learn how to configure your Spring Boot application to enable HTTP/2 on an embedded Tomcat server.
Check Component Vulnerabilities Using OWASP Dependency-Check
Filed under Security
Learn about OWASP Dependency-Check, a Maven plugin that can help us identify known vulnerabilities in our application
Dynamic Spring Data JPA Repository Query With Arbitrary AND Clauses
Filed under JPA, Spring Data
Explore three approaches to creating dynamic queries in the Spring Data JPA repository: query by Example, query by Specification, and query by Querydsl.
Comparison of HSSFWorkbook, XSSFWorkbook, and SXSSFWorkbook in Apache POI
Filed under Data
Evaluate and compare the functionalities of Apache POI’s three Workbook classes to choose the best option for your particular use case.
Writing JDBC ResultSet to an Excel File Using Apache POI
Filed under Persistence
Learn how to export data from a JDBC ResultSet into an Excel file with Apache POI
Change Field Value Before Update and Insert in Hibernate
Filed under Persistence
Tutorial on how to change a field value before update and insert in Hibernate.