Skip to content

feature: adding vector db example using vertex ai #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pabloxtiyo
Copy link

This project serves as an example of how to leverage the Spring AI framework to build applications that utilize generative AI capabilities, specifically focusing on vector embeddings and similarity search.

Key Features & Technologies:

  • Spring AI: Utilizes the Spring AI library to simplify the integration of AI functionalities into a Spring Boot application.
  • Google Cloud Vertex AI Embeddings: Demonstrates how to generate text embeddings using Google Cloud's Vertex AI PaLM 2 embedding models. These embeddings convert textual data into numerical vectors, capturing semantic meaning.
  • MariaDB as a Vector Database: Shows how MariaDB, with its vector storage and search capabilities (e.g., using its VECTOR data type and functions like VECTOR_COSINE_DISTANCE), can be used to store and perform similarity searches on the generated Vertex AI embeddings.
  • Vector Search/Similarity Search: The core functionality likely involves ingesting data, generating embeddings for it, storing these embeddings in MariaDB, and then performing queries to find items semantically similar to a given input query.

Purpose:

The primary goal of this example is to provide developers with a practical, hands-on demonstration of:

  1. Generating high-quality text embeddings with Vertex AI.
  2. Storing these vector embeddings efficiently in MariaDB.
  3. Performing semantic similarity searches against the stored vectors using Spring AI abstractions.
  4. Integrating these components within a standard Spring Boot application.

Signed-off-by: oswalxtiyo@gmail.com <oswalxtiyo@gmail.com>
@pabloxtiyo pabloxtiyo force-pushed the spring-ia-vertexia-vector-db branch from 321351e to 771ac05 Compare June 6, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant