---
title: "Retrieval Augmented Generation with Contextual Embeddings"
description: "Learn how to improve RAG performance using contextual embeddings to add relevant context to each chunk before embedding."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/readme-35
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:36:23.836Z
license: CC-BY-4.0
attribution: "Retrieval Augmented Generation with Contextual Embeddings — Claudary (https://claudary.paisolsolutions.com/skills/readme-35)"
---

# Retrieval Augmented Generation with Contextual Embeddings
Learn how to improve RAG performance using contextual embeddings to add relevant context to each chunk before embedding.

## Overview

# Retrieval Augmented Generation with Contextual Embeddings

Learn how to improve RAG performance using contextual embeddings to add relevant context to each chunk before embedding.

## Contents

- `guide.ipynb`: Main tutorial notebook
- `data/`: Data files for examples and testing
- `evaluation/`: Evaluation scripts using Promptfoo

For evaluation instructions, see `evaluation/README.md`.

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/readme-35) · https://claudary.paisolsolutions.com
