% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rag.R
\name{add_documents}
\alias{add_documents}
\title{Add Custom Documents to the PRA Knowledge Base}
\usage{
add_documents(store, path, embed_model = "nomic-embed-text")
}
\arguments{
\item{store}{A ragnar store object from \code{\link[=build_knowledge_base]{build_knowledge_base()}}.}

\item{path}{Character. Path to a file or directory. If a directory, all
\code{.md} and \code{.txt} files are ingested recursively.}

\item{embed_model}{Character. Ollama embedding model (default
\code{"nomic-embed-text"}).}
}
\value{
The store object (invisibly), updated with the new documents.
}
\description{
Ingests additional markdown or text documents into an existing PRA knowledge
base. Use this to extend the agent's knowledge with your own project
documentation, standards, templates, or lessons learned.
}
\examples{
\dontrun{
store <- build_knowledge_base()

# Add a single file
add_documents(store, "path/to/my_risk_register.md")

# Add all .md and .txt files in a directory
add_documents(store, "path/to/project_docs/")
}

}
