Version: 0.0.10 (stable)
agrag.common.project_settings.resolve_retrieval_settings
resolve_retrieval_settings(project:ProjectSettings, explicit:RetrievalSettings | None = None) -> RetrievalSettings
Combine explicit retrieval settings, the project file and the session.
Parameters:
- project (
ProjectSettings) – The values read from the project file. - explicit (
RetrievalSettings | None) – Settings the caller built. Fields it sets win over the file.
Returns:
RetrievalSettings– The retrieval and reranker settings.
Raises:
ProjectSettingsConflictError– A session value differs from the file.