---
title: "Chat with Your Documents: A Practical Guide to RAG Using the New Laravel AI SDK"
url: https://daily.dev/posts/chat-with-your-documents-a-practical-guide-to-rag-using-the-new-laravel-ai-sdk-xrytwkwo0
source_url: https://tighten.com/insights/chat-with-your-documents-a-practical-guide-to-rag-using-the-new-laravel-ai-sdk/
type: article
source: "Tighten"
published: 2026-02-18T14:13:52.756Z
updated: 2026-02-18T14:14:15.809Z
tags: ["laravel", "rag", "pgvector"]
reading_time: 24
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat with Your Documents: A Practical Guide to RAG Using the New Laravel AI SDK

**[Tighten](https://daily.dev/sources/tightenco)** · 24 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to building a RAG (Retrieval-Augmented Generation) system in Laravel using the new Laravel AI SDK, Postgres with pgvector, and Livewire 4. Covers core concepts including semantic search, vector embeddings, and document chunking, then walks through ingesting Markdown documents, generating embeddings, querying similar chunks via Eloquent, creating an AI agent with the SimilaritySearch tool, and optionally using AI middleware for deterministic retrieval. Finishes with a streaming chat UI built in Livewire 4.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://tighten.com/insights/chat-with-your-documents-a-practical-guide-to-rag-using-the-new-laravel-ai-sdk/>

## Similar posts on daily.dev

- [Ship AI with Laravel: RAG with Embeddings and pgvector in Laravel 13](https://daily.dev/posts/ship-ai-with-laravel-rag-with-embeddings-and-pgvector-in-laravel-13-h7gbkwt89) · Laravel News · 5 upvotes · 0 comments

---

Tags: [#laravel](https://daily.dev/tags/laravel), [#rag](https://daily.dev/tags/rag), [#pgvector](https://daily.dev/tags/pgvector)

[View this post on daily.dev](https://daily.dev/posts/chat-with-your-documents-a-practical-guide-to-rag-using-the-new-laravel-ai-sdk-xrytwkwo0)
