34 examples
Semantic search12
Embed your documents, store the vectors, and answer by meaning.
- Local FS
- Embeddings
- Postgres
Semantic search 101
Chunk Markdown files, embed each chunk, store the vectors in Postgres, and search them in plain English. The simplest end-to-end vector index, and the one the other search examples build on.
- Local FS
- Tree-sitter
- Postgres
Index your codebase
Walk a repo, split by syntax with Tree-sitter, embed, and query your codebase in English. A live vector index for AI coding agents, in ~100 lines.
- docling + embed
- Postgres
Semantic search over PDFs
Convert local PDFs to Markdown with docling on a GPU runner, chunk, embed, and store the vectors in Postgres — then query in natural language. A vector index over your documents.
- Entire sessions
- Embeddings
- Postgres
Search your AI coding sessions
Index AI coding sessions captured by Entire — transcripts, prompts, and context summaries — into Postgres for natural-language semantic search.
- Local FS
- Embeddings
- Qdrant
Semantic search with Qdrant
Upsert Markdown chunk vectors into a Qdrant collection. Chunking and embedding run locally; only the target changes from Semantic search 101.
- Local FS
- Embeddings
- LanceDB
Semantic search with LanceDB
Store Markdown chunk vectors in LanceDB, an embedded, file-based store with no server to run. Only the target changes from Semantic search 101.
- Local FS
- Embeddings
- Turbopuffer
Semantic search with Turbopuffer
Upsert Markdown chunk vectors into a Turbopuffer namespace, a serverless vector store. Only the target changes from Semantic search 101.
- Amazon S3
- Embeddings
- Postgres
Embed Markdown from Amazon S3
Read Markdown from an Amazon S3 bucket instead of a local folder, then chunk, embed, and store the vectors in Postgres.
- Google Drive
- Embeddings
- Postgres
Semantic search over Google Drive
Read documents from Google Drive, then chunk, embed, and store the vectors in Postgres with pgvector. Only the source changes from Semantic search 101.
- OCI Object Storage
- Embeddings
- Postgres
Embed OCI Object Storage
Chunk and embed Markdown objects from an Oracle Cloud (OCI) Object Storage bucket into Postgres/pgvector, with optional live updates via OCI Streaming.
- Discord
- Embeddings
- Postgres
Semantic search over Discord
Chunk and embed Discord forum posts and channel messages into Postgres with pgvector, each row linking back to Discord. Only the posts that change are embedded again.
- Local FS
- Embed + tag
- Apache Doris
SEC filing hybrid search
Scrub, chunk, embed, and tag multi-format SEC filings into Apache Doris with both a vector and a full-text index — then retrieve with hybrid (semantic + keyword) RRF search.
Multimodal search5
Search images, PDFs, slides, and faces by meaning: the same vector index with a different encoder.
- Local FS
- CLIP
- Qdrant
Search images by text
Embed images with CLIP, store the vectors in Qdrant, and search your photos in natural language through a FastAPI + React app — live updates, no tags or captions.
- Images
- ColPali
- Qdrant
Image search with ColPali
Embed images and queries into multi-vector ColPali bags of patch vectors, store them in Qdrant, and rank with late-interaction MaxSim through a FastAPI app.
- Local FS
- Face detection
- Qdrant
Build your own face search
Detect every face in a folder of photos, embed each into a 128-d vector with face_recognition (dlib), and index them in Qdrant — then search your photos by face.
- Local FS
- ColPali
- Qdrant
Multi-format visual search
Index PDFs and images as page screenshots with the ColPali multi-vector model — no OCR, no chunking — into Qdrant with MaxSim, and search the visual content by text.
- Local FS
- Vision LLM + TTS
- LanceDB
Slides to narrated search
Render each slide, write speaker notes with a vision LLM, narrate them with Pocket TTS locally on the CPU, and embed the notes into LanceDB — search a deck by meaning and play back the narration.
Structured extraction7
Extract typed, structured data from code and documents with an LLM, through instructor, BAML, or DSPy.
- Multi-repo
- Structured output
- Local FS
Multi-codebase summarization
Walk Python repos, extract typed summaries of classes, functions, and Mermaid call graphs with an LLM, and update a wiki page per project as code changes.
- HackerNews API
- LiteLLM
- Postgres
Trending topics from HackerNews
Scrape recent HackerNews threads and comments via the Algolia HN API, extract topics with an LLM, and rank what is trending in Postgres.
- sentence-transformers
- Postgres
Index academic papers
LLM-extract title, authors, and abstract from academic PDFs into typed rows, embed them, and store it all in Postgres with pgvector.
- BAML
- JSON files
Patient intake forms to typed JSON with BAML
Extract schema-validated patient records from intake-form PDFs with one type-safe BAML Gemini-vision call per file, writing a JSON file per form.
- Structured extraction
- JSON files
Patient intake forms to typed JSON with DSPy
Render patient intake PDFs to images and extract a typed Patient with a DSPy ChainOfThought vision module on Gemini, writing one validated JSON file per form.
- Local FS
- docling + LLM
- Postgres
Manuals to structured data
Convert PDF manuals to Markdown with docling, LLM-extract a typed module summary (classes, methods, arguments), and store one structured record per manual in Postgres.
- Discord
- Entity resolution
- Local FS
Discord support threads to an FAQ
Turn Discord support threads into an FAQ an agent can use as its knowledge base: an LLM extracts each question and answer, questions asked in other words are merged, corrections win and disagreements are flagged, and only what changed goes back to the LLM.
Knowledge graphs4
Give agents a persistent, graph-shaped memory built from conversations, meetings, and products.
- YouTube
- Entity resolution
- SurrealDB
Podcasts to a knowledge graph
Turn YouTube podcasts into a queryable knowledge graph — diarized transcription, two-step LLM extraction, embedding-based entity resolution, and a SurrealDB graph.
- Local FS
- Any LLM
- Neo4j
Docs to a knowledge graph
Turn a folder of Markdown docs into a Neo4j concept graph — LLM-extracted (subject, predicate, object) triples that stay in sync as the docs change.
- Google Drive
- Entity resolution
- Neo4j
Meeting notes to a knowledge graph
Turn Google Drive meeting notes into a Neo4j knowledge graph — LLM extraction of organizers, attendees, and tasks, plus embedding-based person entity resolution, kept in sync as notes change.
- Local FS
- LLM extraction
- Neo4j
Product recommendation graph
LLM-extract what each product is and what pairs with it from product docs, then build a Neo4j graph for complementary-product recommendations.
Ingest and transform6
Move and reshape data with the same declarative flow: your own source, target, or parser.
- Custom blocks
- Local FS
PDF to Markdown
Convert a folder of PDFs to Markdown incrementally, with custom building blocks: only new or changed PDFs are converted again.
- Local FS
- Kafka
CSV to Kafka
Watch a folder of CSV files and publish each row as a JSON message to a Kafka topic — declarative target states, only-changed-rows produces, and live mode in ~60 lines.
- Audio files
- Transcription
- Postgres
Audio to text
Transcribe local audio files with a LiteLLM speech-to-text model and store one transcript row per file in Postgres, keyed by filename.
- Postgres
- Embeddings
Postgres as a source
Read rows from an existing Postgres table, derive fields, embed each row, and write the vectors back to Postgres with pgvector.
- Local FS
- markdown-it-py
Transform a folder of files
The smallest end-to-end CocoIndex pipeline — watch a folder of Markdown, render each file to HTML, and write the outputs to a local folder incrementally.
- Kafka
- LanceDB
Consume Kafka into LanceDB
Consume JSON messages off a Kafka topic and dispatch each one — by its shape — into the matching LanceDB table.
No example matches every filter. Remove one, or request the pipeline you need below.
Can't find the shape you need?
Clone the closest example, swap the source or the target, and keep the rest. Or open an issue and describe the pipeline.












