Standard Operating Procedures (SOPs)

Step-by-step guides for common administrative and development tasks on the NomadPM platform.

SOP-04: Full RAG Knowledge Base Refresh

Warning: This procedure will delete and replace all source code, summary, and architecture documents from the agent's RAG memory. It should be run after significant code changes.

  1. Navigate to the project directory (/opt/nomadpm/) and activate the virtual environment (source venv/bin/activate).
  2. Clear Old Documents: Run the cleanup script for each of the three code-related categories. This ensures there are no obsolete versions.
    python3 clear_rag_by_category.py NomadPM_SourceCode
    python3 clear_rag_by_category.py NomadPM_CodeSummaries
    python3 clear_rag_by_category.py NomadPM_Architecture
  3. Run the Ingestion script to add the current files to the RAG.
    python3 ingest_codebase.py
  4. Run the Summarization (Map) script to create summaries for the new files.
    python3 summarize_codebase.py
  5. Run the Architecture (Reduce) script to generate the final, master document.
    python3 generate_architecture.py
← Back to Documentation Home