IP Library › Granted Patent US 12,511,487
Granted Patent B2
US 12,511,487 · App. 18/226,303 · Granted Dec 30, 2025

Augmented question and answer (Q and A) with large language models

Inventors: Manish Marwah (Pleasanton, CA); Kristian Edward Ford (Littleton, CO); Martin Fraser Arlitt (Calgary, CA)
Assignee: Micro Focus LLC
G06F40/30
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,511,487
App. No.
18/226,303
Granted
Dec 30, 2025
Kind
B2
Abstract

Large language models (LLMs) are versatile in responding to user questions on a wide variety of topics. However, LLMs suffer from several drawbacks, such as hallucinations, incomplete information, and inability to cite original sources of information. Disclosed herein are systems and methods for using an LLM in a restricted manner to respond to queries regarding document corpora, e.g., documents related to a set of products, such that the impact of these drawbacks is minimized. Information retrieval is coupled with LLMs to build a question and answer (Q&A) system on the text corpora. Complex retrieved information, incorporating human feedback, and recommendations in the Q&A system are provided.

Claims (96)

1 . A method, comprising:

receiving a query from a user device;

mapping the query to a latent semantic embedding space;

modeling a number of document segments of a number of documents, wherein each of the number of document segments comprises document content, and

wherein a distance between any two of the number of document segments in the latent semantic embedding space is proportional to a degree of similarity between the document content thereof;

generating a prompt comprising the query and a set of nearest document segments in the latent semantic embedding space matching the query;

submitting the prompt to a large language model (LLM) and receiving a response therefrom, wherein the response comprises an answer to the query and indicia of a document segment of the number of document segments comprising document content matching the answer;

providing the response to the user device;

wherein the document content of at least one document of the number of documents comprises table data, the table data comprising a number of cells having a cell value, the cell value being further associated with at least one of a column heading, a row heading, or a table heading of the table data; and

segmenting the table data into at least one of the number of document segments comprises:

linearizing the table data to comprise a linearized cell value comprising the cell value, the column, and the heading; and

segmenting at topic breakpoints between topics of the linearized table data.

2 . The method of claim 1 , further comprising formatting the response wherein the indicia of the document segment of the number of document segments comprising the document content matching the answer, comprises indicia of one of the number of documents comprising the document content matching the answer.

3 . The method of claim 1 , further comprising:

accessing a document corpus having the number of documents;

segmenting each document of the number of documents into the number of document segments, each document segment comprising the document content; and

plotting each of the number of document segments into the latent semantic embedding space.

4 . The method of claim 3 , wherein segmenting each document of the number of documents into the number of document segments comprises, for at least one document of the number of documents, segmenting at formatting breakpoints of the document content.

5 . The method of claim 3 , wherein segmenting each document of the number of documents into the number of document segments comprises:

segmenting at topic breakpoints within the document content.

6 . The method of claim 5 , wherein determining the topic breakpoints within the document content comprises:

segmenting the document content into a first number of segments;

computing a number of tokens for each of the first number of segments, wherein each token of the number of tokens represents a single word of the document content;

accessing a context size of the LLM;

estimating a high threshold number of tokens from the context size of the LLM;

tokenizing the document content of a segment into a number of tokens; and

upon determining the number of tokens is greater than the high threshold number of tokens, resegmenting the document content into a second number of segments that is greater than the first number of segments.

7 . The method of claim 5 , wherein determining the topic breakpoints within the document content comprises:

segmenting the document content into a first number of segments;

computing a number of tokens for each of the first number of segments, wherein each token of the number of tokens represents a single word of the document content;

accessing a context size of the LLM;

estimating a low threshold number of tokens from the context size of the LLM;

tokenizing the document content of a segment into a number of tokens; and

upon determining the number of tokens is less than the low threshold number of tokens, resegmenting the document content into a second number of segments that is less than the first number of segments.

8 . The method of claim 3 , wherein:

the document content of at least one document of the number of documents comprises visual data; and

the method further comprises extracting at least one textual description from metadata of the at least one document and segmenting the number of document segments of the at least one textual description.

9 . The method of claim 3 , wherein:

the document content of at least one document of the number of documents comprises visual data, the visual data further comprising a number of video frames; and

the method further comprises extracting at least one textual description from metadata of the at least one of the number of video frames and segmenting the number of document segments of the at least one textual description.

10 . The method of claim 9 , wherein the metadata comprises digital images of text.

11 . A system, comprising:

a server, comprising at least one microprocessor coupled to a computer memory storing machine-readable instructions therein;

the instructions causing the server to perform:

receiving a query from a user device;

mapping the query to a latent semantic embedding space, modeling a number of document segments of a number of documents, wherein each of the number of document segments comprises document content, and wherein a distance between any two of the number of document segments in the latent semantic embedding space is proportional to a degree of similarity between the document content thereof;

generating a prompt comprising the query and a set of nearest document segments in the latent semantic embedding space matching the query;

submitting the prompt to a large language model (LLM) and receiving a response therefrom, wherein the response comprises an answer to the query and indicia of a document segment of the number of document segments comprising document content matching the answer;

providing the response to the user device;

wherein the document content of at least one document of the number of documents comprises table data, the table data comprising a number of cells having a cell value, the cell value being further associated with at least one of a column heading, a row heading, or a table heading of the table data; and

segmenting the table data into at least one of the number of document segments, comprises:

linearizing the table data to comprise a linearized cell value comprising the cell value, the column, and the heading; and

segmenting at topic breakpoints between topics of the linearized table data.

12 . The system of claim 11 , further comprising formatting the response, wherein the indicia of the document segment of the number of document segments comprising the document content matching the answer, comprises indicia of one of the number of documents comprising the document content matching the answer.

13 . The system of claim 11 , further comprising:

accessing a document corpus having the number of documents;

segmenting each document of the number of documents into the number of document segments, each document segment comprising the document content; and

plotting each of the number of document segments into the latent semantic embedding space.

14 . The system of claim 13 , wherein segmenting each document of the number of documents into the number of document segments comprises, for at least one document of the number of documents, segmenting at formatting breakpoints of the document content.

15 . The system of claim 13 , wherein segmenting each document of the number of documents into the number of document segments comprises:

segmenting at topic breakpoints within the document content;

determining the topic breakpoints within the document content, further comprising:

segmenting the document content into a first number of segments;

computing a number of tokens for each of the first number of segments, wherein each token of the number of tokens represents a single word of the document content;

accessing a context size of the LLM;

estimating a high threshold number of tokens from the context size of the LLM;

tokenizing the document content of a segment into a number of tokens; and

upon determining the number of tokens is greater than the high threshold number of tokens, resegmenting the document content into a second number of segments that is greater than the first number of segments.

16 . The system of claim 15 , wherein determining the topic breakpoints within the document content comprises:

segmenting the document content into a first number of segments;

computing a number of tokens for each of the first number of segments, wherein each token of the number of tokens represents a single word of the document content;

accessing a context size of the LLM;

estimating a low threshold number of tokens from the context size of the LLM;

tokenizing the document content of a segment into a number of tokens; and

upon determining the number of tokens is less than the low threshold number of tokens, resegmenting the document content into a second number of segments that is less than the first number of segments.

17 . The system of claim 13 , wherein:

the document content of at least one document of the number of documents comprises visual data; and

the instructions further causing the server to perform extracting at least one textual description from metadata of the at least one document and textual description from metadata of the at least one of a number of video frames and segmenting the number of document segments of the at least one textual description.

18 . A system, comprising:

a server, comprising at least one microprocessor coupled to a computer memory storing machine-readable instructions therein; and

a data storage comprising a latent semantic embedding space, modeling a number of document segments of a number of documents; and

wherein the instructions cause the server to perform:

receiving a query from a user device;

mapping the query to the latent semantic embedding space, modeling a number of document segments of a number of documents, wherein each of the number of document segments comprises document content, and wherein a distance between any two of the number of document segments in the latent semantic embedding space is proportional to a degree of similarity between the document content thereof;

generating a prompt comprising the query and a set of nearest document segments in the latent semantic embedding space matching the query;

submitting the prompt to a large language model (LLM) and receiving a response therefrom, wherein the response comprises an answer to the query and indicia of a document segment of the number of document segments comprising document content matching the answer;

providing the response to the user device;

wherein the document content of at least one document of the number of documents comprises table data, the table data comprising a number of cells having a cell value, the cell value being further associated with at least one of a column heading, a row heading, or a table heading of the table data; and

segmenting the table data into at least one of the number of document segments, comprises:

linearizing the table data to comprise a linearized cell value comprising the cell value, the column, and the heading; and

segmenting at topic breakpoints between topics of the linearized table data.

19 . The system of claim 18 , further comprising formatting the response, wherein the indicia of the document segment of the number of document segments comprising the document content matching the answer, comprises indicia of one of the number of documents comprising the document content matching the answer.

20 . The system of claim 18 , further comprising:

accessing a document corpus having the number of documents;

segmenting each document of the number of documents into the number of document segments, each document segment comprising the document content; and

plotting each of the number of document segments into the latent semantic embedding space.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 26, 2023
From: MARWAH, MANISH; FORD, KRISTIAN EDWARD; ARLITT, MARTIN FRASER
To: MICRO FOCUS LLC
Reel/Frame 064383/0774 →
Continuity (1)
Related Publication 20250036878A1 · Jan 30, 2025
References Cited (33)
US 6978275B2 · Castellanos · 2005 [cited by examiner]
US 7856350B2 · Zhou · 2010 [cited by examiner]
US 8938384B2 · Goswami · 2015 [cited by examiner]
US 9830314B2 · Byron · 2017 [cited by examiner]
US 11769017B1 · Gray · 2023 [cited by examiner]
US 11947912B1 · Dong · 2024 [cited by examiner]
US 12299404B2 · Aberle · 2025 [cited by examiner]
US 20070203707A1 · Carus · 2007 [cited by examiner]
US 20080040114A1 · Zhou · 2008 [cited by examiner]
US 20140136181A1 · Ghosal · 2014 [cited by examiner]
US 20160179775A1 · Desai · 2016 [cited by examiner]
US 20180232380A1 · English · 2018 [cited by examiner]
US 20200395001A1 · Mohanty · 2020 [cited by examiner]
US 20220374405A1 · Morrill · 2022 [cited by examiner]
US 20230177267A1 · Shorter · 2023 [cited by examiner]
US 20230237277A1 · Reza · 2023 [cited by examiner]
US 20230259705A1 · Tunstall-Pedoe · 2023 [cited by examiner]
US 20230274094A1 · Tunstall-Pedoe · 2023 [cited by examiner]
US 20230316006A1 · Tunstall-Pedoe · 2023 [cited by examiner]
US 20240143932A1 · Pandita · 2024 [cited by examiner]
US 20240346255A1 · Blohm · 2024 [cited by examiner]
US 20240346256A1 · Qin · 2024 [cited by examiner]
US 20240386202A1 · Hoffman · 2024 [cited by examiner]
US 20240406081A1 · Mermoud · 2024 [cited by examiner]
US 20240412029A1 · Yang · 2024 [cited by examiner]
US 20240428007A1 · Abdi · 2024 [cited by examiner]
US 20240428783A1 · Gupta · 2024 [cited by examiner]
US 20250036878A1 · Marwah · 2025 [cited by examiner]
Borgeaud et al. “Improving Language Models by Retrieving from Trillions of Tokens,” Proceedings of the 39th International Conference on Machine Learning (PMLR 16), 2022, 35 pages. [cited by applicant]
Devlin et al. “BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding,” arxiv.org, Oct. 11, 2018, arXiv: 1810.04805v1, 14 pages. [cited by applicant]
Guu et al. “Retrieval-Augmented Language Model Pre-Training,” Proceedings of the 37th International Conference on Machine Learning (PMLR 119), 2020, 10 pages. [cited by applicant]
Lewis et al. “Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks,” Proceedings of the 34th International Conference on Neural Information Processing Systems (NIPS'20), Dec. 2020, Article 793, 16 pages. [cited by applicant]
Reimers et al. “Sentence—BERT: Sentence Embeddings using Siamese BERT—Networks,” arxiv.org, Aug. 27, 2019, arXiv: 1908.10084v1, 11 pages. [cited by applicant]
Cited By (1)
US 12,645,671