Spring AI With PostgreSQL pgvector: Building Generative AI Apps in Java

preview_player
Показать описание
Learn how to build generative AI applications in Java using the Spring AI EmbeddingClient and the PostgreSQL pgvector extension.

First, you’ll be introduced to the Spring AI ChatClient that uses the OpenAI GPT-4 model to generate recommendations based on user prompts. Next, explore how to deploy PostgreSQL with the pgvector extension and perform vector similarity searches using the Spring AI EmbeddingClient and Spring JdbcClient. In the end, discover how to optimize and scale the application using specialized indexes such as HNSW and distributed PostgreSQL (YugabyteDB).

Here you can find a complete version of the application:

0:00 Learning plan
0:45 Sample application
1:29 Spring AI chatclient
3:30 Limitations of the current implementation
4:49 Deploying PostgreSQL pgvector in Docker
5:42 Preloading an Airbnb dataset
7:12 Exploring the dataset
8:59 Using spring AI embeddingclient with pgvector
14:10 Pptimizing the search with HNSW index
17:42 Scaling with distributed PostgreSQL (YugabyteDB)
21:12 Homework

Curious to learn more about databases? Follow me here:
Рекомендации по теме
Комментарии
Автор

Thanks for this video very useful to get into Spring AI . world need spring AI

mallikarjunmongolla
Автор

Great job done here. Thanks a lot for sharing this.

rafastepniewski
Автор

Thanks for the video but you should revoke and change your OpenAI-API-key (if the one shown is valid) and only set it via environment variables in the future to prevent leakage in videos.

christianendres
Автор

Itd be nice if you had a tutorial that showed how to create the embeddings. That will be the situation most developers will be in. We have the data in postgres but we need to generate the embeddings based on data already in our database

GSUGambit
Автор

What to learn as java full stack developer for AI future?? Do i need to learn python and completely switch fron java developer to python with AI

sundarsravanivlogs