Document Graph Retrieval With Structural Context for Complex Search

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional document retrieval systems fail to utilize the structural context of documents, leading to inadequate search results in structurally complex documents such as source code, programming documentation, and API specifications, as they either rely solely on keyword matching (lexical search) or disregard document structure in semantic searches.

Innovation Solution

An integrated search method that combines lexical and semantic relevance, reconstructing the structural context by modeling documents as document graphs, tracing hierarchical structures, and utilizing large language models (LLMs) to generate comprehensive and coherent search results.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If lexical search is used to match exact terms, then search speed is improved, but search accuracy deteriorates due to inability to understand context and homographs

Engineering Contradiction:
Improvesearch speedVSAvoidsearch accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The patent combines lexical search and semantic search into an integrated search system that processes both exact term matching and contextual understanding simultaneously, resolving the contradiction between speed and accuracy by leveraging the strengths of both approaches

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The search process is segmented into multiple stages: lexical search for quick term matching, semantic search for contextual understanding, and relevance scoring for result ranking. This segmentation allows the system to maintain speed while improving accuracy through progressive refinement

Inventive Principle:
Principle #1Segmentation

2Measurement precision

If semantic search is used to understand user intent and context, then search accuracy is improved, but system complexity and processing time increase due to NLP requirements

Engineering Contradiction:
Improvesearch accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The system applies semantic search selectively based on query characteristics, using lexical search for simple queries and escalating to full semantic analysis only when needed, thereby reducing overall system complexity while maintaining accuracy for complex queries

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent introduces an intermediary relevance scoring mechanism that bridges lexical and semantic search results, filtering and ranking results based on multiple factors including term frequency, semantic relevance, and structural context, thereby managing complexity through layered processing

Inventive Principle:
Principle #24Intermediary (Mediator)

3Loss of information

If semantic search with NLP models is deployed, then contextual understanding is improved, but processing speed decreases compared to lexical searching

Engineering Contradiction:
Improvecontextual understandingVSAvoidprocessing speed
Core Design Contradiction:
Loss of informationVSSpeed

Solution Approach 1:

The system performs preliminary lexical search to identify candidate documents and terms before applying more computationally intensive semantic analysis, thereby reducing the volume of data requiring NLP processing and maintaining overall speed while improving contextual understanding

Inventive Principle:
Principle #10Preliminary action

4Ease of operation

If document structure is ignored in semantic search, then processing simplicity is maintained, but search relevance deteriorates in structurally complex documents

Engineering Contradiction:
Improveprocessing simplicityVSAvoidsearch relevance
Core Design Contradiction:
Ease of operationVSMeasurement precision

Solution Approach 1:

The patent applies different processing strategies to different parts of the document structure: simple lexical matching for content text, and structure-aware semantic analysis for hierarchical elements like headings, sections, and code blocks, thereby maintaining simplicity where possible while improving relevance where needed

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS12481666B1Enhanced document retrieval with semantic depth and syntactic structure
Publication Date: 2025.11.25 INTUIT INC
  • US12481666B1 patent drawing
  • US12481666B1 patent drawing
  • US12481666B1 patent drawing

AI summary

Certain aspects of the present disclosure describe a method of information retrieval. In certain aspects, the method includes identifying a set of relevant nodes of a document graph embedding semantic units associated with the document based on a document search query. The method further includes reconstructing a structural context for each relevant node in the set of relevant nodes. The method further includes processing the set of relevant nodes and the structural context of each relevant node with a large language model to generate a contextual response to the document search query.