Version: latest
agrag.common.project_settings
Project settings from the graph folder's config.toml.
The file pins the settings that decide how a project's graph is built and searched, so every session that opens the graph uses the same values.
Precedence for each setting the file defines:
- A value set explicitly on the settings object the caller passes.
- The file.
- The class default.
An environment variable or .env value for the same setting is a session
value. When it differs from the file, the resolution raises
ProjectSettingsConflictError instead of choosing one silently.
Classes:
- ProjectSettings – Values read from a project settings file. A missing key keeps its default.
- ProjectSettingsConflictError – A session value disagrees with the project settings file.
Functions:
- load_project_settings – Read
config.tomlfrom a graph folder. - resolve_embedding_settings – Combine explicit embedder settings, the project file and the session.
- resolve_extraction_settings – Combine explicit settings, the project file and the session.
- resolve_retrieval_settings – Combine explicit retrieval settings, the project file and the session.
Attributes: