Skip to content

Commit

Permalink
Review. How does Q work
Browse files Browse the repository at this point in the history
  • Loading branch information
jacarma committed Aug 12, 2024
1 parent c6d0d02 commit a349e56
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions content/blog/how-does-q-work/how-does-q-work.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ params: [{

Of course the commands are also part of the prompt:

![Diagram that shows how a block of commands is appended to the prompt after the qatium context and before the user question and then passed it to the LLM gen](./prompt-3.png)
![Diagram that shows how a block of commands is appended to the prompt after the qatium context and before the user question and then passed it to the LLM gen](./prompt-4.png)

Additionally we define the code we need to execute:

Expand All @@ -79,9 +79,9 @@ const selectAsset = (params) => sdk.map.selectElement(params.assetId)

We use the OpenAI API like this:

- Create a thread
- Add messages to the thread with the Qatium context and the user question
- Execute a run with SSE streaming
1. Create a thread
2. Execute a run with SSE streaming
3. Add messages to the thread with the Qatium context and the user question

At this point the LLM generates the answer token by token. It starts to stream text and we display this text to the user.

Expand Down

0 comments on commit a349e56

Please sign in to comment.