Skip to contents

Builds (or reuses) a codebase store and attaches ragnar's retrieval tool so the model can semantically search the project. No-op when ragnar is missing or indexing yields nothing.

Usage

register_rag_tool(chat, cwd = getwd(), store = NULL, allow_network = FALSE)

Arguments

chat

An ellmer::Chat object.

cwd

Character. Project root.

store

Optional pre-built ragnar store (skips rebuilding).

allow_network

Logical. Whether registration may build a store through a network embedding backend. The central registration path enables this only when network capability is already allowed.

Value

Invisibly chat.