Skip to content

feat(#55): Integrate Phase 1 RAG Upgrade into Hybrid Resume Generator#56

Merged
BPMSoftwareSolutions merged 3 commits into
mainfrom
feat/55-rag-hybrid-integration
Oct 23, 2025
Merged

feat(#55): Integrate Phase 1 RAG Upgrade into Hybrid Resume Generator#56
BPMSoftwareSolutions merged 3 commits into
mainfrom
feat/55-rag-hybrid-integration

Conversation

@BPMSoftwareSolutions
Copy link
Copy Markdown
Owner

Summary

This PR completes the integration of Phase 1 RAG Upgrade capabilities into the hybrid resume generator pipeline across CLI, Web API, and Web UI.

Changes

Phase 1: CLI Enhancement (generate_hybrid_resume.py)

  • Added RAG support with new CLI flags:
    • --jd: Path to job description
    • --use-rag: Enable RAG-based retrieval
    • --use-llm-rewriting: Enable LLM-powered rewriting (requires RAG)
    • --show-rag-context: Display RAG context in output
    • --vector-store: Path to FAISS vector store
  • Integrated RAG context retrieval and LLM rewriting into resume generation pipeline
  • Added validation to ensure RAG requires JD and LLM rewriting requires RAG

Phase 2: Web API Enhancement (src/api/app.py)

  • Added three new RAG endpoints:
    • POST /api/rag/retrieve: Retrieve relevant experiences using semantic search
    • POST /api/rag/rewrite: Rewrite bullets with LLM and evidence constraints
    • POST /api/rag/index: Trigger re-indexing of vector store
  • Enhanced POST /api/resumes/<resume_id>/tailor endpoint:
    • Added use_rag and use_llm_rewriting parameters
    • Integrated RAG context retrieval when enabled
    • Returns RAG context summary in response

Phase 3: Web UI Enhancement (src/web/dashboard.html & dashboard.js)

  • Enhanced tailor modal with RAG options:
    • Checkbox for "Use RAG Retrieval" with semantic search explanation
    • Checkbox for "Use LLM Rewriting" (dependent on RAG, disabled by default)
    • Info box explaining RAG and LLM rewriting benefits
  • Updated dashboard.js:
    • Added event listeners for RAG checkbox state management
    • Enhanced tailor function to include RAG options in API request
    • Added loading indicator during tailoring
    • Display RAG metrics in success message

Phase 4: Demo & Documentation

  • Updated demo_rag_with_pelotech.py:
    • Added demo_hybrid_resume_generation() function
    • Included examples of RAG-enhanced HTML generation
    • Updated success message and next steps

Testing

  • All 421 existing tests pass
  • No new test failures introduced
  • RAG integration maintains backward compatibility

Related Issue

Closes #55

Checklist


Pull Request opened by Augment Code with guidance from the PR author

…e generator

- Phase 1: Enhanced generate_hybrid_resume.py with RAG support (--jd, --use-rag, --use-llm-rewriting, --show-rag-context, --vector-store flags)
- Phase 2: Added three new RAG endpoints to Web API (/api/rag/retrieve, /api/rag/rewrite, /api/rag/index) and enhanced tailor endpoint
- Phase 3: Enhanced Web UI with RAG options in tailor modal (checkboxes for RAG and LLM rewriting with dependent state management)
- Phase 4: Updated demo_rag_with_pelotech.py with hybrid resume generation examples

All 421 tests passing. Ready for review and merge.
@BPMSoftwareSolutions BPMSoftwareSolutions merged commit 4bb9e89 into main Oct 23, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(#53): Integrate Phase 1 RAG Upgrade into Hybrid Resume Generator

1 participant