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.
Arguments
- store
A ragnar store object from
build_knowledge_base().- path
Character. Path to a file or directory. If a directory, all
.mdand.txtfiles are ingested recursively.- embed_model
Character. Ollama embedding model (default
"nomic-embed-text").
Examples
if (FALSE) { # \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/")
} # }
