# US 2026/0099494 A1 · Chatbot system and method mimicking an expert while responding to user queries using integrated programmatic and specialized guided and constrained artificial intelligence

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0099494 A1
- Document ID: US20260099494A1
- Status: Published application
- Kind: A1
- Application number: 19/352,361
- Filed: 2025-10-07
- Published: 2026-04-09
- Earliest claimed: 2024-10-07
- Assignees: 2hr Learning, Inc.
- Applicants: 2hr Learning, Inc.
- Inventors: Bernhard Baernthaler; Casey Schmid
- Web page: https://patentgrep.com/patent/US20260099494A1

## CPC

- G06F 16/24542: {Plan optimisation}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/3329: Natural language query formulation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An AI-based response generation chatbot system that acts as a digital replica of a person or expert, rather than being the expert itself, interacts with a user while being entirely guided by the information provided to it, without revealing its AI nature and the source of information. The AI-based response generation chatbot system includes a knowledge database initialized with knowledge documents containing expert knowledge with a specific viewpoint. The knowledge documents are compiled into a vector database through chunking and embedding techniques and are converted into unique topic-specific knowledge chunks in a machine-readable format. The compiled vector database further incorporates the Retrieval Augmented Generation (RAG) framework, enabling the retrieval of relevant information from the vector database and then using the retrieved information to frame accurate and contextually relevant responses aligned with user queries.

## Claims

### Claim 1

A method of guiding and constraining an AI-based chatbot to provide responses emulating an expert, the method comprises:
executing code using one or more processors of a computer system to cause the computer system to perform operations comprising:
providing access to a knowledge database including training data, wherein the training data includes a plurality of knowledge documents by the expert;
creating a vector database using the training data, via chunking and embedding techniques, wherein the training data is segregated into a plurality of chunks and each chunk refers to a unique topic;
receiving a user query, via a chatbot interface, related to a topic;
running a semantic similarity search in the vector database, based on the received user query, to identify one or more chunks relevant to the topic;
processing the identified chunks to generate a plurality of thoughts, wherein thoughts are referred to by an AI engine for generating a response relevant to the user's query while emulating the expert;
generating prompts to guide and constrain the AI engine to generate the relevant response emulating the individual, wherein the prompts include guidelines for using the thoughts and boundary conditions considered by the AI engine while responding to the user's query; and
generating the response relevant to the user's query, wherein the generated response is coherent with the expert's knowledge and emulates the expert.

### Claim 2 (depends on 1)

The method of claim 1, wherein the knowledge documents include documents including the expert's knowledge such as research papers corroborating specific opinions, video or audio transcripts, expert's thoughts from his social media handles.

### Claim 3 (depends on 2)

The method of claim 2 further comprises tagging the plurality of knowledge documents to one or more topics such that documents related to a common topic are used to create a new chunk.

### Claim 4 (depends on 1)

The method of claim 1, wherein one or more Python functions are utilized for chunking the knowledge documents into a plurality of chunks, wherein each chunk refers to a unique topic.

### Claim 5 (depends on 1)

The method of claim 1, wherein embedding techniques are used to embed documents, paragraphs, sentences, and words as vectors in the vector database.

### Claim 6 (depends on 5)

The method of claim 5, wherein the embedding techniques utilize neural networks and deep learning techniques for context-sensitive embedding.

### Claim 7 (depends on 1)

The method of claim 1, wherein chunking techniques are used to ensure that no unique concept is divided between multiple chunks.

### Claim 8 (depends on 1)

The method of claim 1, wherein chunking techniques specify the number of overlapping characters or tokens between chunks, thereby preserving context across chunks.

### Claim 9 (depends on 1)

The method of claim 1, wherein one or more Python libraries are utilized for context-aware chunking to ensure that a unique concept is not divided into multiple chunks.

### Claim 10 (depends on 1)

The method of claim 1, wherein the AI engine includes one or more generative AI models including large language and foundational models.

### Claim 11

A system of guiding and constraining an AI-based chatbot to provide responses emulating an expert, the method comprises:
one or more processors of a computer system;
a memory, coupled to the one or more processors, that store code and execution of the code by the one or more processors causes the computer system to perform operations comprising:
providing access to a knowledge database including training data, wherein the training data includes a plurality of knowledge documents by the expert;
creating a vector database using the training data, via chunking and embedding techniques, wherein the training data is segregated into a plurality of chunks and each chunk refers to a unique topic;
receiving a user query, via a chatbot interface, related to a topic;
running a semantic similarity search in the vector database, based on the received user query, to identify one or more chunks relevant to the topic;
processing the identified chunks to generate a plurality of thoughts, wherein thoughts are referred to by an AI engine for generating a response relevant to the user's query while emulating the expert;
generating prompts to guide the AI engine to generate the relevant response emulating the individual, wherein the prompts include guidelines for using the thoughts and boundary conditions considered by the AI engine while responding to the user's query;
generating the response relevant to the user's query, wherein the generated response is coherent with the expert's knowledge and emulates the expert providing access to a data model comprising educational standards and stimulus types, wherein the educational standards are mapped to one or more relevant stimulus types;
providing access to a repository of JSON schemas and Python functions, wherein each stimulus type is mapped to at least one JSON schema and one or more Python functions, thereby mapping the educational standards to relevant JSON schemas and Python functions;
selecting a relevant JSON schema and one or more Python functions based on the stimulus type of the received input query;
generating prompts to guide and constrain the AI engine to populate the selected JSON schema based on inputs received from the data model and input query, wherein the prompts include one or more functions for generating stimulus descriptions relevant to the mapped stimulus type;
transferring the prompts to the AI engine for populating the JSON schema;
calling one or more Python functions, via a Python function module, to generate a stimulus image, wherein the Python function module accesses one or more libraries for rendering the stimulus image; and
storing the generated stimulus image in a stimulus database, wherein storing the stimulus image includes tagging the stimulus image to an associated mathematical question.

### Claim 12 (depends on 11)

The system of claim 11, wherein the knowledge documents include documents including the expert's knowledge such as research papers corroborating specific opinions, video or audio transcripts, expert's thoughts from his social media handles.

### Claim 13 (depends on 12)

The system of claim 12 further comprises tagging the plurality of knowledge documents to one or more topics such that documents related to a common topic are used to create a new chunk.

### Claim 14 (depends on 11)

The system of claim 11, wherein one or more Python functions are utilized for chunking the knowledge documents into a plurality of chunks, wherein each chunk refers to a unique topic.

### Claim 15 (depends on 11)

The system of claim 11, wherein embedding techniques are used to embed documents, paragraphs, sentences, and words as vectors in the vector database.

### Claim 16 (depends on 15)

The system of claim 15, wherein the embedding techniques utilize neural networks and deep learning techniques for context-sensitive embedding.

### Claim 17 (depends on 11)

The system of claim 11, wherein chunking techniques are used to ensure that no unique concept is divided between multiple chunks.

### Claim 18 (depends on 11)

The system of claim 11, wherein chunking techniques specify the number of overlapping characters or tokens between chunks, thereby preserving context across chunks.

### Claim 19 (depends on 11)

The system of claim 11, wherein one or more Python libraries are utilized for context-aware chunking to ensure that a unique concept is not divided into multiple chunks.

### Claim 20 (depends on 11)

The system of claim 11, wherein the AI engine includes one or more generative AI models.
