Skip to content

feat(api): add AI paraphrase endpoint and integrate background enhanc…#7

Merged
rammm2005 merged 1 commit into
mainfrom
feat/mounted-tabs-trigger
Jul 6, 2026
Merged

feat(api): add AI paraphrase endpoint and integrate background enhanc…#7
rammm2005 merged 1 commit into
mainfrom
feat/mounted-tabs-trigger

Conversation

@rammm2005

Copy link
Copy Markdown
Owner

…ement

  • Add ParaphraseRequest and ParaphraseResponse models to backend API
  • Implement /api/paraphrase endpoint for async AI-enhanced answer paraphrasing
  • Add use_ai flag to QueryRequest to allow local-only retrieval mode
  • Conditionally load Gemini client based on use_ai parameter
  • Create Next.js proxy route for paraphrase requests at /api/paraphrase
  • Update AnswerCard to track paraphrase state with isParaphrased and isParaphrasing flags
  • Add paraphrase status badges and UI indicators in answer display
  • Trigger AI paraphrase asynchronously when user switches tabs
  • Enable graceful fallback to raw answer if Gemini is unavailable
  • Improves answer quality without blocking initial local retrieval results

…ement

- Add ParaphraseRequest and ParaphraseResponse models to backend API
- Implement /api/paraphrase endpoint for async AI-enhanced answer paraphrasing
- Add use_ai flag to QueryRequest to allow local-only retrieval mode
- Conditionally load Gemini client based on use_ai parameter
- Create Next.js proxy route for paraphrase requests at /api/paraphrase
- Update AnswerCard to track paraphrase state with isParaphrased and isParaphrasing flags
- Add paraphrase status badges and UI indicators in answer display
- Trigger AI paraphrase asynchronously when user switches tabs
- Enable graceful fallback to raw answer if Gemini is unavailable
- Improves answer quality without blocking initial local retrieval results
@rammm2005
rammm2005 merged commit 1831df5 into main Jul 6, 2026
0 of 4 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.

1 participant