Skip to content

Document processing

Ingest documents from the web, PDFs, Word, or local Markdown.

read_as_markdown()
Convert files to Markdown
MarkdownDocument
Markdown documents
ragnar_find_links()
Find links on a page

Text chunking

Chunk and augment text context.

markdown_chunk()
Chunk a Markdown document
MarkdownDocumentChunks
Markdown documents chunks
ragnar_chunks_view()
View chunks with the store inspector

Store

Store embeddings in DuckDB for fast, local queries.

ragnar_store_create() ragnar_store_connect()
Create and connect to a vector store
ragnar_store_insert()
Insert chunks into a RagnarStore
ragnar_store_update()
Inserts or updates chunks in a RagnarStore
ragnar_store_build_index()
Build a Ragnar Store index
ragnar_store_inspect()
Launches the Ragnar Inspector Tool

Embeddings

Embed chunks with commercial or open-source models.

embed_bedrock()
Embed text using a Bedrock model
embed_databricks()
Embed text using a Databricks model
embed_google_vertex()
Embed using Google Vertex API platform
embed_ollama() embed_openai()
Embed Text

Retrieve

Retrieve relevant chunks using both vector and text search.

ragnar_retrieve()
Retrieve chunks from a RagnarStore
ragnar_retrieve_bm25()
Retrieves chunks using the BM25 score
ragnar_retrieve_vss()
Vector Similarity Search Retrieval
ragnar_register_tool_retrieve()
Register a 'retrieve' tool with ellmer
chunks_deoverlap()
Merge overlapping chunks in retrieved results