Skip to contents

Creates an ai-log/ folder at the root of a project. Records are plain JSON files, one per record, meant to be kept under version control with the project's code and data.

Usage

ait_init(
  path,
  title = NULL,
  prompt_store = c("hash", "excerpt", "full", "none")
)

Arguments

path

Root folder of the project. There is no default, so the log is only created where it is asked for.

title

Title of the project, used in disclosures and reports.

prompt_store

Default way of storing prompts and responses: "hash" (only a fingerprint, the default), "excerpt" (the first 200 characters), "full" or "none". Prompts often contain unpublished data or personal data, so storing them in full is an explicit choice.

Value

The path of the ai-log/ folder, invisibly.

Examples

project <- file.path(tempdir(), "my-study")
ait_init(project, title = "Attitudes to open data")