Skip to content

Commit 7fe714c

Browse files
qchappCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 047822f commit 7fe714c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ai_agent/core/app_setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def get_pipeline() -> RAGImagingPipeline:
112112

113113

114114
def get_doc_index() -> Dict[str, SoftwareDoc]:
115-
"""Return the current doc-by-name index (populated after get_pipeline)."""
115+
"""Return the doc-by-name index, initializing the pipeline if needed."""
116+
if _pipe is None:
117+
get_pipeline()
116118
return _DOC_BY_NAME
117119

118120

0 commit comments

Comments
 (0)