IP Library › Granted Patent US 12,242,817
Granted Patent B1
US 12,242,817 · App. 18/514,224 · Granted Mar 4, 2025

Artificial intelligence models in an automated chat assistant determining workplace accommodations

Inventor: Matthew Thomas (Fredericksburg, VA)
Assignee: LIGILO INC.
G06F40/40G06F40/284G06Q10/1057
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,242,817
App. No.
18/514,224
Granted
Mar 4, 2025
Kind
B1
Abstract

A computer-implemented method including determining whether a query is part of a conversation having a chat history before the query. When the query is part of the conversation, the method can include rephrasing the query, using a first large language model (LLM), based on context from the chat history. The method also can include determining, using a second LLM, whether or not the query is related to accommodations or disabilities. When the query is related to accommodations or disabilities, the method further can include determining one or more accommodations responsive to the query using a third LLM; and formulating a response to the query using a fourth LLM based on the one or more accommodations. Other embodiments are described.

Claims (41)

1. A computer-implemented method comprising:

determining, using a second LLM, whether or not a query is related to accommodations, wherein the second LLM is fine-tuned to predict a respective new token representing a respective binary classification output in response to a respective query, wherein the second LLM is pre-trained using training input comprising (i) a first instructional prompt to the second LLM to classify a question with a completion of one of True or False for whether or not the question is related to accommodations, and (ii) training records each comprising (a) a first respective training question and (b) a first respective training completion comprising one of True or False as a predicted next token based on the first respective training question; and

when the query is related to accommodations:

determining one or more accommodations responsive to the query using a third LLM; and

formulating a response to the query using a fourth LLM based on the one or more accommodations; and

when the query is not related to accommodations:

generating a declining response using a text-generation LLM using a second instructional prompt comprising a text representation of a conversation history stored in a cache memory, wherein the conversation history comprises the query,

wherein:

the third LLM is an embeddings LLM configured to determine a similarity between the query and accommodation descriptions;

determining the one or more accommodations responsive to the query using the third LLM further comprises:

generating a query embedding vector for the query using the embeddings LLM;

performing a vector search comprising searching a vector database for one or more top matches of embeddings of the accommodation descriptions with respect to the query embedding vector, comprising calculating, using a cosine similarity measure for determining a vector distance, a respective vector distance metric between each of the embeddings of the accommodation descriptions and the query embedding vector, wherein the vector database comprises the embeddings of the accommodation descriptions that are predetermined and stored before receiving the query, and wherein the one or more top matches are selected based on the respective vector distance metric for the one or more top matches being below a predetermined threshold; and

determining the one or more accommodations based on the one or more top matches; and

the fourth LLM is pre-trained using a third instructional prompt comprising instructions for how to address a medical diagnosis raised in a question, instructions for asking about how a disability affects work, and definitions of keywords, and one or more training records each comprising: a second respective training question and a second respective training completion comprising a respective informational answer responsive to the second respective training question based on the third instructional prompt.

2. The computer-implemented method of claim 1 , wherein the second LLM is pre-trained on a corpus.

3. The computer-implemented method of claim 2 , wherein the second LLM is fine-tuned by passing parameters of the second LLM through multiple neural network linear layers, using gradient descent and backpropagation, to update the parameters of the second LLM.

4. The computer-implemented method of claim 1 , wherein the fourth LLM is a text-generation LLM.

5. The computer-implemented method of claim 4 , wherein the fourth LLM is pre-trained on a corpus and fine-tuned to predict a plurality of respective new tokens in response to a respective query based on training examples modeling length, tone, and language.

6. The computer-implemented method of claim 5 , wherein the fourth LLM is fine-tuned by passing parameters of the fourth LLM through multiple neural network linear layers to update the parameters of the fourth LLM.

7. A system comprising:

one or more processors; and

one or more non-transitory computer-readable media storing computing instructions that, when executed on the one or more processors, cause the one or more processors to perform operations comprising:

determining, using a second LLM, whether or not a query is related to accommodations, wherein the second LLM is fine-tuned to predict a respective new token representing a respective binary classification output in response to a respective query, wherein the second LLM is pre-trained using training input comprising (i) a first instructional prompt to the second LLM to classify a question with a completion of one of True or False for whether or not the question is related to accommodations, and (ii) training records each comprising (a) a first respective training question and (b) a first respective training completion comprising one of True or False as a predicted next token based on the first respective training question;

and

when the query is related to accommodations:

determining one or more accommodations responsive to the query using a third LLM; and

formulating a response to the query using a fourth LLM based on the one or more accommodations; and

when the query is not related to accommodations:

generating a declining response using a text-generation LLM using a second instructional prompt comprising a text representation of a conversation history stored in a cache memory, wherein the conversation history comprises the query,

wherein:

the third LLM is an embeddings LLM configured to determine a similarity between the query and accommodation descriptions;

determining the one or more accommodations responsive to the query using the third LLM further comprises:

generating a query embedding vector for the query using the embeddings LLM;

performing a vector search comprising searching a vector database for one or more top matches of embeddings of the accommodation descriptions with respect to the query embedding vector, comprising calculating, using a cosine similarity measure for determining a vector distance, a respective vector distance metric between each of the embeddings of the accommodation descriptions and the query embedding vector, wherein the vector database comprises the embeddings of the accommodation descriptions that are predetermined and stored before receiving the query, and wherein the one or more top matches are selected based on the respective vector distance metric for the one or more top matches being below a predetermined threshold; and

determining the one or more accommodations based on the one or more top matches; and

the fourth LLM is pre-trained using a third instructional prompt comprising instructions for how to address a medical diagnosis raised in a question, instructions for asking about how a disability affects work, and definitions of keywords, and one or more training records each comprising: a second respective training question and a second respective training completion comprising a respective informational answer responsive to the second respective training question based on the third instructional prompt.

8. The system of claim 7 , wherein the second LLM is pre-trained on a corpus.

9. The system of claim 8 , wherein the second LLM is fine-tuned by passing parameters of the second LLM through multiple neural network linear layers, using gradient descent and backpropagation, to update the parameters of the second LLM.

10. The system of claim 7 , wherein the fourth LLM is a text-generation LLM.

11. The system of claim 10 , wherein the fourth LLM is pre-trained on a corpus and fine-tuned to predict a plurality of respective new tokens in response to a respective query based on training examples modeling length, tone, and language.

12. The system of claim 11 , wherein the fourth LLM is fine-tuned by passing parameters of the fourth LLM through multiple neural network linear layers to update the parameters of the fourth LLM.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 19, 2023
From: THOMAS, MATTHEW
To: LIGILO INC. DBA INCLUSIVELY
Reel/Frame 065909/0246 →
References Cited (71)
US 5848594A · Matheson · 1998 [cited by applicant]
US 9183257B1 · Buchanan · 2015 [cited by examiner]
US 11087283B2 · Champaneria · 2021 [cited by applicant]
US 11650996B1 · Daianu · 2023 [cited by examiner]
US 20090281879A1 · Pandya · 2009 [cited by applicant]
US 20130117297A1 · Liu · 2013 [cited by examiner]
US 20140122355A1 · Hardtke et al. · 2014 [cited by applicant]
US 20140214711A1 · Filstein · 2014 [cited by applicant]
US 20140279637A1 · Rafaty et al. · 2014 [cited by applicant]
US 20150026212A1 · Fink · 2015 [cited by examiner]
US 20150039292A1 · Suleman · 2015 [cited by examiner]
US 20150324747A1 · Corso et al. · 2015 [cited by applicant]
US 20150378587A1 · Falaki · 2015 [cited by examiner]
US 20160012131A1 · Epstein · 2016 [cited by examiner]
US 20160098808A1 · Ziobro · 2016 [cited by applicant]
US 20170039269A1 · Raff · 2017 [cited by examiner]
US 20170300533A1 · Zhang · 2017 [cited by examiner]
US 20170337326A1 · Zhang · 2017 [cited by examiner]
US 20180032902A1 · Krishnan · 2018 [cited by applicant]
US 20180046780A1 · Graiver · 2018 [cited by examiner]
US 20180330011A1 · DeLuca · 2018 [cited by examiner]
US 20190108276A1 · Kovács · 2019 [cited by examiner]
US 20190205838A1 · Miaoqing · 2019 [cited by applicant]
US 20190220824A1 · Liu · 2019 [cited by applicant]
US 20190304447A1 · Scavo · 2019 [cited by examiner]
US 20190311070A1 · Huang · 2019 [cited by examiner]
US 20190318315A1 · Clark-Lindh · 2019 [cited by applicant]
US 20200084213A1 · Taropa · 2020 [cited by examiner]
US 20200169880A1 · Wen · 2020 [cited by examiner]
US 20200210485A1 · Motwani · 2020 [cited by examiner]
US 20200210929A1 · Meng · 2020 [cited by examiner]
US 20200401661A1 · Kota · 2020 [cited by examiner]
US 20200410011A1 · Shi · 2020 [cited by examiner]
US 20200410882A1 · Otsuki · 2020 [cited by examiner]
US 20210065129A1 · Sardesai et al. · 2021 [cited by applicant]
US 20210097374A1 · Liu · 2021 [cited by examiner]
US 20210303638A1 · Zhong · 2021 [cited by examiner]
US 20220067665A1 · Westerheide · 2022 [cited by applicant]
US 20220300718A1 · Chen · 2022 [cited by examiner]
US 20220301072A1 · Wang · 2022 [cited by examiner]
US 20220374839A1 · Dong · 2022 [cited by applicant]
US 20220383206A1 · Luong · 2022 [cited by applicant]
US 20220405493A1 · Goldie · 2022 [cited by applicant]
US 20230088128A1 · Dima · 2023 [cited by applicant]
US 20230096235A1 · Hansraj · 2023 [cited by applicant]
US 20230206675A1 · Wang · 2023 [cited by examiner]
US 20230237188A1 · Arran · 2023 [cited by applicant]
US 20230252341A1 · Arran · 2023 [cited by applicant]
US 20230252418A1 · Arran · 2023 [cited by applicant]
US 20230315792A1 · Zhang · 2023 [cited by examiner]
US 20230419045A1 · Feng · 2023 [cited by examiner]
US 20240012860A1 · Pillitteri · 2024 [cited by examiner]
US 20240346254A1 · Liu · 2024 [cited by examiner]
CN 115293229 · 2022 [cited by applicant]
CN 115640389 · 2023 [cited by applicant]
CN 115659044 · 2023 [cited by applicant]
CN 113191728 · 2023 [cited by applicant]
CN 115481220 · 2023 [cited by applicant]
CN 116401464 · 2023 [cited by applicant]
CN 116562837 · 2023 [cited by applicant]
JP 2008123507 · 2008 [cited by applicant]
KR 102554459 · 2023 [cited by applicant]
KR 20230111169 · 2023 [cited by applicant]
WO 2023096254 · 2023 [cited by applicant]
Galimzhanova et al., title={Rewriting conversational utterances with instructed large language models}, booktitle={2023 IEEE International Conference on Web Intelligence and Intelligent Agent Technology (WI-IAT)}, pp. =… [cited by examiner]
Search Report and Written Opinion for International Application No. PCT/US2020/041688 Oct. 29, 2020. [cited by applicant]
Alsaif, SA et al., “NIp-based Bi-directional Recommendation System: Towards Recommending Jobs to Job Seekers and Resumes to Recruiters,” Big Data and Cognitiive Computing 6($): 147, retrieved from https://doi.org/10.339… [cited by applicant]
Ali, I et al., “Resume Classification System Using Natural Language Processing and Machine Learning Techniques,” published in Mehran Univ Research Journal of Engineering and Technology 41(1):65-79, retrieved from https:… [cited by applicant]
Jiechieu, KFF, et al., “Skills Prediction Based on Multi-Label Resume Classificatin Using Cnn With Model Predictions Explanation,” published in Neural Computing and Applications 33(10): 5069-5087, retrieved from https:/… [cited by applicant]
Zhao, J., “Embedding-based Recommender System for Job to Candidate Matching on Scale,” published in arXiv 2107.0221v, retrieved from https://doi.org/10.48550/arXiv.2107.00221 Jul. 1, 2021. [cited by applicant]
Qin, C., et al., “Enhancing Person-Job Fit for Talent Recruitment: an Ability-Aware Neural Network Approach,” published in SIGIR '18: The 41st International ACM SIGIR Conference on Research and Development in Informatio… [cited by applicant]