← All projects

Independent project · LLM agents

Patent Prior-Art Agent: From Retrieval to Evidence-Grounded Analysis

LangGraph · FAISS · PatentSBERTa · BM25 · Learned reranking · RAG

Problem
Prior-art search with traceable evidence
Data
PANORAMA PAR4PC; 17,877-patent index
Key idea
Separate, inspectable retrieve–align–verify steps
Evaluation
Ranking metrics and human rating
System architecture: one shared FAISS patent index; the agent adds planning, learned reranking, evidence alignment, synthesis, and verification on top of plain RAG.
Figure 1. System architecture. One shared FAISS patent index; the agent adds planning, learned reranking, evidence alignment, synthesis, and verification on top of plain RAG.

1Problem

Given a patent claim, an invention idea, or a vague search query, the agent returns a ranked prior-art set, a limitation-level evidence chart, and an answer in which every statement traces back to retrieved patent text. Plain retrieval-augmented generation ranks by a single similarity and writes from whatever it retrieves, so it can neither rank by claim limitations nor show which passage supports which statement.

2Method

Table 1. Agent stages (orchestrated with LangGraph).
StageOperation
1 PlanClassify the turn (new search, follow-up, comparison, filter) and decompose the claim into limitations \(\ell_1,\dots,\ell_m\).
2 RecallCoarse recall from a persistent FAISS index of 17,877 patents with 768-dimensional PatentSBERTa vectors.
3 RerankLearned linear reranker over dense, BM25, and field-lexical scores (Eq. 1), trained on PAR4PC.
4 AlignFor each limitation, select the strongest title, abstract, or claim snippet (Eq. 2) and build the claim chart.
5 SynthesizeWrite the answer from the extracted evidence only.
6 VerifyLabel the answer supported, partially supported, or unsupported against the evidence, with a reason.

For a query \(q\) and candidate patent \(d\), the reranker combines the three retrieval signals linearly:

\[s(q,d)=\mathbf{w}^{\top}\big[\,s_{\mathrm{dense}}(q,d),\ s_{\mathrm{BM25}}(q,d),\ s_{\mathrm{field}}(q,d)\,\big],\]

with \(\mathbf{w}\) fit on PAR4PC. Evidence is then chosen per limitation over the fields \(f\in\{\text{title},\text{abstract},\text{claims}\}\) of each retained patent:

\[e(\ell_i,d)=\arg\max_{\text{snippet }x\,\in\,f(d)}\ \mathrm{sim}(\ell_i,x),\]

so every row of the claim chart, and every sentence of the answer, carries a pointer to a specific passage.

3Results

3.1 Prior-art ranking

Table 2. PANORAMA PAR4PC, full validation split (3,029 cases, 8 candidates each). Higher is better.
MethodHit@1Hit@3Recall@3Exact@|gold|
BM25 (lexical)0.7180.9260.8430.560
PatentSBERTa (dense)0.7140.9500.8850.570
Learned reranker (ours)0.7540.9590.9010.622

Finding. The learned reranker is best on all four metrics: Hit@1 rises from 0.718 (BM25) to 0.754, and Exact@|gold| by 5.2 points over the dense baseline (0.570 to 0.622).

3.2 Human evaluation

Table 3. Human-rated answer quality on 20 product-QA prompts per system: mean of groundedness, helpfulness, freedom from hallucination, and context reuse (0–1).
SystemOverall quality
Gemini Fast0.350
ChatGPT Auto0.519
RAG only0.581
Patent agent (ours)0.906

Finding. The agent scores 0.906 against 0.581 for plain RAG over the same index, and reuses context across follow-up turns at 0.98.