LLM as judge
Score model output with a second model, as a chain of computed columns
Create a retrieval-augmented generation system that answers questions using your documents as context.
Agents · Notebook · Updated
Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.
You build a pipeline that: (1) embeds documents, (2) finds relevant chunks for a query, and (3) generates an answer using those chunks as context.
pip install pixeltable openai
OPENAI_API_KEYopenai.chat_completions()pxt.create_table()@pxt.query@pxt.udfadd_embedding_index()insert()similarity()add_computed_column()# Add embedding index for semantic searchchunks.add_embedding_index(column='chunk_text',string_embed=embeddings.using(model='text-embedding-3-small'),)
One cell of the notebook, copied as it is. Open it in Colab for the rest.
Score model output with a second model, as a chain of computed columns
In this tutorial, we'll demonstrate how RAG operations can be implemented in Pixeltable. In particular, we'll develop a RAG application that summarizes a collection of PDF documents and uses ChatGPT to answer questions about them.
In this tutorial, we'll explore Pixeltable's flexible handling of RAG operations on unstructured text.
Create an AI agent that remembers important information across conversations.