---
title: "RAG Operations in Pixeltable"
description: "In this tutorial, we'll explore Pixeltable's flexible handling of RAG operations on unstructured text."
url: "https://www.pixeltable.com/notebooks/rag-operations"
updated: "2026-01-24"
---

# RAG Operations in Pixeltable

In this tutorial, we'll explore Pixeltable's flexible handling of RAG operations on unstructured text.

- **Type:** Notebook
- **Group:** Agents

## What it covers

- Creating Tables and Views
- Data Ingestion
- Experimenting with Chunking
- Further Experiments
- Computing Embeddings

## What it uses

- **Install:** `pip install pixeltable sentence-transformers spacy tiktoken`
- **Pixeltable calls:** `document.document_splitter()`, `huggingface.sentence_transformer()`, `huggingface.clip()`, `pxt.create_table()`, `pxt.create_view()`, `insert()`, `add_computed_column()`

## A look at the code

```python
from pixeltable.functions.huggingface import sentence_transformer

chunks.add_computed_column(
    minilm_embed=sentence_transformer(
        chunks.text, model_id='paraphrase-MiniLM-L6-v2'
    )
)
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/use-cases/rag-operations.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/use-cases/rag-operations
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/use-cases/rag-operations.ipynb
