Spaces:
Sleeping
Sleeping
Commit History
-
Add 7-step USPTO search methodology integration
Incorporates the USPTO's structured prior art search methodology: - Step 1-2: Invention decomposition and synonym expansion via /api/analyze-deep - Step 3: Primary/secondary CPC classification with explanations - Step 4: Boolean search strings (broad/intermediate/examiner-level) with Run in App - Step 5: Seed patent strategy with citation mining - Step 6: Examiner-level comparison framework via /api/evaluate-patent - Step 7: Search saturation tracking with progress bar Backend: Two new endpoints (analyze-deep, evaluate-patent) with structured Gemini prompts. Frontend: Collapsible decomposition/synonym cards in Step 1, boolean queries/seed patent/ saturation tracker in Step 2, per-patent evaluation tables with threat level badges. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>33233d1 -
Add targeted claim regeneration from analysis feedback
When claim analysis shows a non-perfect rating (e.g., Specificity: Medium), an "Improve" button appears on that card. Clicking it sends the current claims plus the analysis feedback to Gemini, which rewrites the claims with specific focus on improving that dimension while preserving strengths in other areas. Old analysis is cleared so the user can re-analyze. - Extend ClaimRequest model with improvement_focus, previous_claims, and analysis_feedback optional fields - Update /api/generate-claim to use a targeted improvement prompt when improvement_focus is provided (backwards compatible) - Add Improve buttons to analysis cards (hidden when rating is already best) - Add improveClaimDimension() JS function with loading states Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>9a6952b -
Add relevance scoring and AI-powered claim analysis
- Add client-side relevance score (0-100%) on patent search results based on keyword matches in title/abstract and CPC code overlap - Add "Most relevant" as default sort option with client-side reordering - Add /api/analyze-claim endpoint using Gemini to evaluate claims across three dimensions: specificity, protection scope, and potential infringements - Display analysis as a 3-column card grid with color-coded ratings - Persist analysis results in session storage across page reloads - Loosen requirements.txt version pins for broader compatibility Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>de71b62
-
Phase 2: CPC search, sort options, pagination, keyword highlighting, citation trail
- Add CPC code extraction to analyze and filter in search - Add sort by date or citations (most cited first) - Increase results to 25 with Load more pagination - Highlight search keywords in prior art results - Add /api/patent/{id}/citations and Related patents UI - Pin dependency versions in requirements.txt Co-authored-by: Cursor <cursoragent@cursor.com>adda1ae
-
Remove fake data fallbacks, show real errors, and link patents to Google Patents
Replace all silent fallbacks to hardcoded/simulated data with visible error messages so attorneys never see fabricated results. Delete the Gemini-simulated prior art search entirely. Add clickable patent number links to Google Patents. Co-authored-by: Cursor <cursoragent@cursor.com>d330331 -
Fix PatentsView API integration to match current v1 query format
Use wipo_kind instead of patent_type for kind codes, _text_all instead of _text_any for relevant results, and correct nested field names (cpc_at_issue, total_hits). Co-authored-by: Cursor <cursoragent@cursor.com>bdd9d09
-
Switch backend from Claude to Gemini (free tier)
Replace Anthropic API calls with Google Gemini 2.0 Flash. Free tier with no credit card required. Uses async API, proper error handling for rate limits, and clear error messages. Co-authored-by: Cursor <cursoragent@cursor.com>83954ae -
Replace Node.js backend with Python/FastAPI + PatentsView integration
- FastAPI server with 3 endpoints: /api/analyze, /api/search, /api/generate-claim - Real patent search via PatentsView API (free, 45 req/min, all US granted patents) - Falls back to Claude-simulated results when PatentsView key unavailable - Claude API proxy for keyword extraction and claim drafting - Serves frontend from same origin (no CORS issues) - Remove old Node.js/Express/Gemini backend Co-authored-by: Cursor <cursoragent@cursor.com>ce35fa9