Explore how to build a Retrieval Augmented Generation (RAG) system using Go with Ent, Atlas, and pgvector. The tutorial covers setting up a Golang module, defining database schema with Ent, configuring PostgreSQL with Docker, and managing the schema with Atlas. It also includes steps to scaffold a CLI application, load documents into the database, create embeddings using the OpenAI API, and implement a question-asking feature that returns context-aware responses.

9m read timeFrom entgo.io
Post cover image
Table of contents
Setting Up our Ent schema ​Setting Up the database ​Scaffolding the CLI ​Load the documents into the database ​Indexing the embeddings ​Asking questions ​Wrapping up ​

Sort: