Skip to content

๐Ÿ’ก Learn how to integrate Spring Boot with OpenAI using Spring AI. Covers ChatClient, Prompt Templates, Embeddings, Vector Stores, RAG, Audio & Image Models.

Notifications You must be signed in to change notification settings

ritik6207/SpringAI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

13 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– Spring AI Learning Module

Welcome to the Spring AI Learning Journey!
This hands-on project integrates Spring Boot with OpenAI, vector databases, local models, and AI-enhanced features like audio, image, and prompt engineering.


๐Ÿ“š Topics Covered

๐ŸŸข Getting Started

  • โœ… Spring AI Introduction
  • ๐Ÿค” Why Spring AI?
  • ๐Ÿ“„ Spring AI Docs
  • ๐Ÿ” Spring AI Version Update
  • ๐Ÿš€ Creating a Spring AI Project

๐Ÿ”‘ OpenAI Integration

  • ๐Ÿ” Create OPENAI API Key
  • ๐Ÿง  Asking Questions to OpenAI Model
  • ๐Ÿ’ฌ Working with ChatClient
  • ๐Ÿงพ ChatResponse and MetaData
  • ๐Ÿงฑ ChatClient Builder

๐Ÿง  Memory & Prompt Engineering

  • ๐Ÿง  Spring AI Memory Advisor
  • ๐Ÿ–ฅ๏ธ Running Models Locally with Ollama
  • ๐Ÿงพ Prompt Template
  • โš™๏ธ Implementing Prompt Template

๐Ÿงฌ Embeddings & Vector Stores

  • โ“ What are Embeddings?
  • ๐ŸŒ Embedding using API Client
  • ๐Ÿงฉ Embedding using Spring AI
  • ๐Ÿ“ What is Cosine Similarity?
  • ๐Ÿงฎ Cosine Similarity Implementation

๐Ÿ“ฆ Vector Database Integration

  • ๐Ÿง  Vector Database Introduction
  • ๐Ÿ” Simple Vector Store
  • โœ‚๏ธ Token Text Splitter
  • ๐Ÿ˜ PGVector Store Intro
  • โš™๏ธ PGVector Store Configuration
  • ๐Ÿ› ๏ธ PGVector Store Implementation
  • ๐Ÿ”ด Redis Vector Store Config
  • ๐Ÿงฐ Redis Vector Store Implementation

๐Ÿง  Retrieval-Augmented Generation (RAG)

  • โ“ What is RAG?
  • โš™๏ธ RAG Implementation

๐Ÿ–ผ๏ธ OpenAI Image Models

  • ๐Ÿง  ImagePrompt and Response
  • ๐ŸŽจ Image Options
  • ๐Ÿ–ผ๏ธ Describe Image
  • ๐Ÿง‘โ€๐Ÿ’ป Implementing Describe Image

๐ŸŽ™๏ธ Audio Models

  • ๐Ÿ”Š Audio Models Introduction
  • ๐ŸŽง Audio Transcription (Speech to Text)
  • ๐Ÿ“ Speech to Text Part 2
  • โš™๏ธ Audio Transcription Options
  • ๐Ÿ—ฃ๏ธ Audio Speech Model (TTS)
  • ๐Ÿงฉ Audio Speech Options

๐Ÿงพ Structured Output Conversion

  • ๐Ÿ”„ Structured Output Converter
  • ๐Ÿ“‹ List Output Converter
  • ๐Ÿซ˜ Bean Output Converter
  • ๐Ÿซ˜ Bean Output Converter with List

๐Ÿง  Powered By

  • Spring Boot
  • Spring AI
  • OpenAI API
  • Ollama
  • PGVector / Redis
  • Java 21

๐Ÿ‘จโ€๐Ÿ’ป Author

Built with ๐Ÿ’š by Ritik Kumar
๐Ÿ“ฌ Contact: ritikkumar142002@gmail.com

About

๐Ÿ’ก Learn how to integrate Spring Boot with OpenAI using Spring AI. Covers ChatClient, Prompt Templates, Embeddings, Vector Stores, RAG, Audio & Image Models.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published