Large Language Model Context Selection for Large Documents

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems struggle to efficiently extract information from large sets of documents exceeding the capacity of machine learning models, such as large language models, due to limitations in processing and context handling.

Innovation Solution

A system and method that segments documents into subsets, creates semantic vectors, determines relevant document segments based on comparisons, and uses these segments as context for large language models to provide information extraction, enabling efficient processing of large document sets.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of information

If the entire large document set is provided as context to the machine learning model, then complete information extraction is achieved, but the model capacity is exceeded and processing becomes infeasible

Engineering Contradiction:
Improveinformation extraction completenessVSAvoidprocessing feasibility
Core Design Contradiction:
Loss of informationVSProductivity

Solution Approach 1:

The system divides the large document set into multiple smaller chunks or segments. Each chunk is processed individually by the machine learning model, which has limited context capacity. The results from multiple chunks are then aggregated to provide complete information extraction, resolving the contradiction between model capacity and document size.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system extracts only the most relevant information from each document chunk before processing, rather than feeding the entire document. This extraction step reduces the input size to fit within model capacity while preserving the essential information needed for accurate extraction.

Inventive Principle:
Principle #2Taking out (Extraction)

2Speed

If document segments are selected based on single comparison method, then processing speed is improved, but selection accuracy deteriorates

Engineering Contradiction:
Improvesegment selection speedVSAvoidrelevant segment identification accuracy
Core Design Contradiction:
SpeedVSMeasurement precision

Solution Approach 1:

The system combines multiple comparison methods (e.g., semantic similarity, keyword matching, vector cosine similarity) to evaluate and select relevant document segments. By merging multiple evaluation criteria, the system achieves both efficient processing and accurate identification of relevant segments, resolving the contradiction between speed and accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Data Source

PatentUS12417352B1Systems and methods for using a large language model for large documents
Publication Date: 2025.09.16 INSTABASE INC
  • US12417352B1 patent drawing
  • US12417352B1 patent drawing
  • US12417352B1 patent drawing

AI summary

Systems and methods for using a machine learning model for a set of one or more documents are disclosed. Exemplary implementations may: create a set of document segments from the set of one or more documents; create a set of semantic vectors; create a query vector that semantically represents a query from a user; determine a subset of the set of semantic vectors based on at least two different comparisons involving the query vector; create a combination of the individual document segments that are associated with the subset of the set of semantic vectors; provide a prompt to the machine learning model, using the created combination of the individual document segments as context; present replies from the machine learning model, and/or perform other steps.