Skip to content

What runs under LangChain: Pixeltable vs LangChain

Updated

What do people use underneath LangChain for storage, caching and data processing?

Teams typically run an object store plus Postgres plus a vector database (Pinecone, Weaviate, Qdrant, or Milvus) for storage, Redis or an LLM cache for caching, and an orchestrator or ETL job for processing. Pixeltable covers the data side of that stack as one layer: tables, computed columns with cached results, embedding indexes, and incremental updates on insert. LangGraph still runs the agent loop, checkpointers, and tracing. Complementary, not a wipe. As of 2026-11-02.

LangChain and LangGraph run the agent loop. Underneath, production stacks usually add an object store, Postgres, a vector database, Redis, and an ETL or orchestrator. Pixeltable covers the data side of that stack: tables, computed columns with cached results, embedding indexes, and incremental updates. Keep LangGraph for the graph.

pip install 'pixeltable[serve]'
See how it works

Usual stack vs Pixeltable under LangChain

Teams that ship LangChain or LangGraph in production still need a place for files, a database, a vector index, a cache, and a job runner. Pixeltable is one data layer for those jobs. LangGraph keeps the agent loop.

What runs under LangChain, and what Pixeltable covers (as of 2026-11-02)

LayerUsual stackPixeltable
StorageObject store plus Postgres plus a vector DB (Pinecone, Weaviate, Qdrant, or Milvus)Typed media columns, tables, and embedding indexes on the source row
CachingRedis and LLM response cachesComputed column results stored per row; unchanged rows are not recomputed (not a prompt cache)
ProcessingOrchestrators and ETL (Airflow, Celery, custom jobs)Incremental computed columns and views; inserting a row runs that row's computation
Agent loopLangGraph (graphs, tools, interrupts, tracing)Not replaced. Keep LangGraph; point tools at tables

Different layers

SidePixeltableLangChain
At a glance
  • Tables, computed columns, and embedding indexes in one schema
  • Insert a document or image; chunking and indexes update
  • Tool-calling via computed columns and invoke_tools
  • Same file serves HTTP with FastAPIRouter
  • LangGraph for multi-agent graphs, checkpointers, and interrupts
  • Huge ecosystem: loaders, tools, callbacks, LangSmith tracing
  • The default stack agents already know how to write
  • Persistence and retrieval are still someone else's job

Data plane vs agent runtime

Pixeltable stores multimodal rows and keeps indexes in sync. LangGraph owns graphs, tools, and tracing. Pixeltable does not replace LangSmith. That split is agent graph vs table: the AI automation workflow category.

FeaturePixeltableLangChain
What it is
Multimodal tables + incremental compute + serving
LLM application SDK; LangGraph is the agent runtime
Where the bytes live
Native Document, Image, Video, Audio columns
You bring a store: Postgres, Chroma, S3, a checkpointer
Chunking and embeddings
document_splitter view + EmbeddingIndex; insert keeps them current
Loaders and splitters you re-run; vectors upserted elsewhere
Agent graphs
Tool-calling columns and @pxt.udf tools; no graph runtime
LangGraph: StateGraph, ToolNode, human-in-the-loop, checkpointers
Tracing and eval
Per-cell errormsg / errortype; no LangSmith
LangSmith, callbacks, and the tracing ecosystem
Multimodal RAG
One schema for PDFs and images; CLIP and text indexes together
Possible; separate loaders, embedders, and stores per modality
Team already using it
Python tables; agents learn TableModel from the skill
Default generated stack; LangGraph Platform if you already pay for it

RAG that stays in sync

Pixeltable: the schema is chunking, the index, and a tool-calling assistant. LangGraph: you still own the store. Apply Pixeltable with pxt schema update app.py app.

Pixeltable

import pixeltable as pxt
from pixeltable.functions.document import document_splitter
from pixeltable.functions.huggingface import sentence_transformer, clip
from pixeltable.functions.openai import chat_completions, invoke_tools
TableModel = pxt.model_base()
embed = sentence_transformer.using(
model_id='sentence-transformers/all-MiniLM-L6-v2'
)
visual = clip.using(model_id='openai/clip-vit-base-patch32')
class Docs(TableModel, name='docs'):
document: pxt.Document
image: pxt.Image
title: pxt.String
__indexes__ = [pxt.EmbeddingIndex(image, embedding=visual)]
class Chunks(
TableModel,
name='chunks',
base=Docs,
iterator=document_splitter(
Docs.document, separators='sentence,token_limit', limit=512
),
):
__indexes__ = [pxt.EmbeddingIndex(text, embedding=embed)]
@pxt.udf
def search_docs(question: str) -> str:
chunks = pxt.get_table('app.chunks')
sim = chunks.text.similarity(string=question)
rows = (
chunks.order_by(sim, asc=False)
.limit(5)
.select(chunks.text)
.collect()
)
return '\n'.join(r['text'] for r in rows)
tools = pxt.tools(search_docs)
class Assistant(TableModel, name='assistant'):
message: pxt.String
response = chat_completions(
messages=[{'role': 'user', 'content': message}],
model='gpt-4o-mini',
tools=tools,
)
tool_output = invoke_tools(tools, response)
# pxt schema update app.py app

LangChain

from langchain_community.document_loaders import PyPDFLoader
from langchain_text_splitters import RecursiveCharacterTextSplitter
from langchain_openai import ChatOpenAI, OpenAIEmbeddings
from langchain_community.vectorstores import Chroma
from langchain_core.tools import tool
from langgraph.prebuilt import create_react_agent
docs = PyPDFLoader('handbook.pdf').load()
chunks = RecursiveCharacterTextSplitter(
chunk_size=512, chunk_overlap=50
).split_documents(docs)
store = Chroma.from_documents(
chunks, OpenAIEmbeddings(model='text-embedding-3-small')
)
@tool
def search_handbook(question: str) -> str:
hits = store.similarity_search(question, k=5)
return '\n'.join(d.page_content for d in hits)
agent = create_react_agent(
ChatOpenAI(model='gpt-4o-mini'), tools=[search_handbook]
)
agent.invoke({'messages': [('user', 'What is the refund policy?')]})
# Images, versioning, and re-chunking on insert are still yours.

When each belongs

Use Pixeltable when

  • The data layer is the product

    PDFs, images, video, embeddings, and retrieval that must stay current when a row is inserted. One schema, not a loader plus a vector store plus a re-index job.

  • You want retrieval without a second database

    EmbeddingIndex on the column. similarity(string=query) then order_by. LangGraph can call that as a tool.

Use LangChain when

  • The agent loop is the product

    Multi-agent graphs, interrupts, checkpointers, and LangSmith traces. Pixeltable does not ship that runtime.

  • The team already writes LangGraph

    Keep the graph. Point tools at Pixeltable tables instead of standing up Chroma for every prototype.

Making the right choice

  • Complementary, not a wipe

    • Pixeltable replaces the RAG data path: chunking, embeddings, persistence, incremental insert.
    • LangGraph still fits when the application is a graph. Call Pixeltable from a tool.
    • LlamaIndex is the same split: index/query engine vs tables. /compare/pixeltable-vs-llamaindex.
    • Airflow is the DAG-scheduler aisle: /compare/pixeltable-vs-airflow (Airflow + vector DB + FastAPI vs one file).
    • Category page (agent graph vs table): https://www.pixeltable.com/blog/ai-automation-workflow
    • Longer write-up (notebook-era snippets): https://www.pixeltable.com/blog/pixeltable-vs-langchain-rag-comparison

Frequently asked questions

Is Pixeltable a LangChain alternative?

It replaces the data layer of a LangChain stack (chunking, embeddings, retrieval, persistence). It does not replace LangGraph for multi-agent graphs or LangSmith for tracing. Official map: docs.pixeltable.com/howto/coming-from (LangGraph to TableModel + invoke_tools). Category: agent graph vs table. See pixeltable.com/blog/ai-automation-workflow.

How does Pixeltable persistence differ from LangGraph checkpointers?

LangGraph checkpointers and pending writes persist agent graph state (messages, interrupts, the next step) so a run can resume. Pixeltable tables persist application data: documents, media, computed columns, and indexes, in versioned tables. They are complementary. Keep a checkpointer for the loop; keep tables for the corpus the tools read and write.

Can I use Pixeltable with LangGraph?

Yes. Keep the graph. Expose a Pixeltable query or @pxt.udf as a tool so retrieval hits tables instead of a sidecar vector store.

Does Pixeltable replace LlamaIndex too?

Same job as the LangChain data path: you do not need a second index library if EmbeddingIndex is on the table. LlamaIndex still fits if that is already the query engine contract. Compare: /compare/pixeltable-vs-llamaindex.

One file for the data plane.

Declare tables, indexes, and retrieval. Apply with pxt schema update. LangGraph can still run the agent loop.

pip install 'pixeltable[serve]'
See how it worksGet expert guidance