Company
Date Published
Author
Avthar Sewrathan
Word count
2547
Language
English
Hacker News points
None

Summary

This tutorial introduces building LLM applications with the LangChain framework in Python using PostgreSQL and pgvector as a vector database for OpenAI embeddings data. It covers creating embeddings from your data, splitting text into smaller chunks while preserving associated metadata, inserting OpenAI embeddings into PostgreSQL and pgvector, performing similarity searches to fetch relevant documents, and tying everything together with Retrieval Augmented Generation (RAG) using LangChain's LLMs and a vector store-backed retriever. The tutorial also includes a bonus section on citing sources used in the RAG process.