Enterprise-Grade Memory Agents for Patent Processing with Deep Lake

activeloop · Legal · 2023 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Patent search and generation

Activeloop built PatentGPT to search, answer questions over, and generate patent content from an 80-million-document corpus where manual keyword search and patent drafting take weeks.

Constraints:

Architecture

PatentGPT combines Deep Lake storage, embeddings, memory APIs, fine-tuned models, and a meta-agent that routes user queries to specialized agents for claim search, abstract search, question answering, and patent generation. The system deploys on AWS and Intel infrastructure and uses Deep Memory to improve vector recall without changing the vector-search interface.

Diagram confidence: explicit (topology described by the source).

flowchart LR
  user-query["User query"] --> meta-agent-router["Meta-agent router"]
  meta-agent-router --> claim-search-agent["Claim search agent"]
  meta-agent-router --> abstract-search-agent["Abstract search agent"]
  meta-agent-router --> question-answering-agent["Question answering agent"]
  meta-agent-router --> patent-generation-agent["Patent generation agent"]
  claim-search-agent --> deep-lake-memory["Deep Lake memory"]
  abstract-search-agent --> deep-lake-memory
  question-answering-agent --> deep-lake-memory
  patent-generation-agent --> fine-tuned-models["Fine-tuned models"]
  deep-lake-memory --> deep-memory-recall-layer["Deep Memory recall layer"]
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
User query Patent search, QA, abstract, claim, or generation request. Meta-agent router
Meta-agent router Chooses the specialized patent agents needed for the query. Claim search agent, Abstract search agent, Question answering agent, Patent generation agent
Claim search agent Searches patent claims. Deep Lake memory
Abstract search agent Searches patent abstracts. Deep Lake memory
Question answering agent Answers questions over patent data. Deep Lake memory
Patent generation agent Generates patent-oriented content and instructions. Fine-tuned models
Deep Lake memory Stores embeddings and unstructured patent data for memory-efficient retrieval. Deep Memory recall layer
Fine-tuned models Patent-specialized embedding and language models. Patent generation agent
Deep Memory recall layer Improves vector-search recall without changing the vector-search API. —

Data flow

A user query enters the meta-agent, which decides which specialized patent agents to use; those agents query Deep Lake/Deep Memory, embeddings, and fine-tuned models for claim search, abstract search, question answering, or generation, then return patent-specific output.

“when a user provides a query the metigen decides which agents should use it”transcript, stated
“some agents that just do claim search some of them are doing abstract search or some of them do generate model”transcript, stated

Why this architecture

Activeloop uses specialized memory agents because patents are not one problem: claim search, abstract search, QA, and generation need different retrieval and generation behaviors over a very large corpus.

“there's not just one problem it's not just a search problem you maybe you want to generate abstracts you want to generate claims”transcript, stated
“make sure that they are well scoped and they're solving specific domains”transcript, stated

Models used: PatentGPT · Deep Lake · Deep Memory · Fine-tuned embedding models · Fine-tuned language models · AWS · Intel

Scale

Alternatives considered (roads not taken)

Use old-school USPTO keyword search.

Rejected because: Users must manually review document lists and generate patent content themselves.

“you get list of documents you have to go and manually review them and then if you want to generate one”transcript, stated

Use one general agent for every patent task.

Rejected because: The presenter says agents should be well scoped and solve specific domains.

“if you are creating agency then make sure that they are well scoped and they're solving specific domains”transcript, stated

Fine-tune the LLM before fixing retrieval recall.

Rejected because: The talk says retrieval accuracy/recall should be handled before later fine-tuning concerns.

“you can later worry about okay we need to fine tune our large language model or we can fine-tune the embeddings”transcript, stated

Patterns

multi-agent-orchestration (orchestration)

A meta-agent routes queries to specialized patent agents.

“think of it as an Enterprise grade memory agents that routing together to solve a specific task or a query that user specifies”transcript, stated

agent-memory (memory)

Deep Lake and Deep Memory provide the memory layer for patent retrieval and agent work.

“you have this memory API layer which is the long chains llama index and the Agents that operate on top of the vector databases”transcript, stated

fine-tuning-adaptation (model-ops)

The system uses models fine-tuned on the patent dataset for better task behavior.

“models that has been fine-tuned on the data set to behave way better”transcript, stated

Tradeoffs

Use scoped specialist agents.

Chose Claim, abstract, QA, and generation agents routed by a meta-agent. over One general patent assistant..

Rationale: Patent workflows are structurally different and benefit from task-specialized behavior.

“some agents that just do claim search some of them are doing abstract search or some of them do generate model”transcript, stated

Improve retrieval recall with Deep Memory.

Chose Recall layer on top of vector search. over Changing the whole vector search interface or immediately fine-tuning LLMs..

Rationale: The presenter says recall gains matter when RAG works only part of the time and needs to move above 80 or 90.

“this becomes super critical when your rock solutions they work 70 of the time and you want to keep pushing this to above 80 or 90”transcript, stated

Gotchas (what bit them)

Patent work is not a single search problem.

Root cause: Users may need claims, abstracts, question answering, or generation, each with different behavior.

Resolution: Route through specialized agents by task.

“there's not just one problem it's not just a search problem”transcript, stated

Manual search does not scale to large patent corpora.

Root cause: Keyword search returns lists of documents for humans to review.

Resolution: Use memory agents over embeddings and patent-specific models.

“then you get list of documents you have to go and manually review them”transcript, stated

Fine-tuning before retrieval quality can waste effort.

Root cause: The LLM only performs as well as the retrieved context it receives.

Resolution: Improve recall and context quality first, then tune embeddings or LLMs.

“what kind of information you feed into large language models you have to make sure that the accuracy or the recall”transcript, stated

Evaluation

Activeloop evaluates through recall at top-k, retrieval accuracy, and task-specific patent-agent performance before considering further model or embedding fine-tuning.

Metrics: Recall at 10 / top-k recall · Five to ten percent recall improvement · RAG success moving from 70% toward 80-90% · Patent task routing quality

“the accuracy or the recall at 10 is like it's so black or the top k whatever whatever number you decide on”transcript, stated

Outcomes

The source cites roughly 600,000 patent filings per year, about 80 million documents, and a two-to-four-week manual generation timeline.

“Deep Memory technology that claims to improve recall accuracy by 5-10% over standard vector search approaches.”summary, stated