RAG Operations in Pixeltable
In this tutorial, we'll explore Pixeltable's flexible handling of RAG operations on unstructured text.
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.
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.
pip install pixeltable sentence-transformers tiktoken openai openpyxl
OPENAI_API_KEYdocument.document_splitter()openai.chat_completions()pxt.create_table()pxt.create_view()@pxt.query@pxt.udfinsert()add_embedding_index()similarity()add_computed_column()from pixeltable.functions.huggingface import sentence_transformerchunks_t.add_embedding_index('text',embedding=sentence_transformer.using(model_id='intfloat/e5-large-v2'),)
One cell of the notebook, copied as it is. Open it in Colab for the rest.
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.
Convert a table with computed columns into a callable function for multi-agent workflows and pipeline composition.
Create lookup functions that query tables by key—for customer records, product catalogs, or financial data.