Update Introduction_to_Jarvis.md
Browse files
Introduction_to_Jarvis.md
CHANGED
|
@@ -127,7 +127,7 @@ We also applied a sliding window for history chat messages as a workaround for t
|
|
| 127 |
- Whenever the chat that utilizes the sliding window is called, we inject a new system prompt with the newest memory (plan, logs, for `Coder` and some other flows, `code_library` is also injected) into the chat history.)
|
| 128 |
- We crop the chat history with a tailing window of length 3, that will include the assistant's previous call, the updated system prompt, the the user's new response.
|
| 129 |
|
| 130 |
-
When the `Coder` and `ExtendLibraryFlow` is finished, we reset the flows, that means the chat history is cleaned as well -- which is fine, because the plan and logs are preserved in the upper level of flow (`JarvisFlow` and `Coder`). By doing this, Jarvis is able to clear
|
| 131 |
|
| 132 |
As a result, Jarvis is able to run for quite a long time, and it's able to use the code written before.
|
| 133 |
|
|
|
|
| 127 |
- Whenever the chat that utilizes the sliding window is called, we inject a new system prompt with the newest memory (plan, logs, for `Coder` and some other flows, `code_library` is also injected) into the chat history.)
|
| 128 |
- We crop the chat history with a tailing window of length 3, that will include the assistant's previous call, the updated system prompt, the the user's new response.
|
| 129 |
|
| 130 |
+
When the `Coder` and `ExtendLibraryFlow` is finished, we reset the flows, that means the chat history is cleaned as well -- which is fine, because the plan and logs are preserved in the upper level of flow (`JarvisFlow` and `Coder`). By doing this, Jarvis is able to clear useless tokens.
|
| 131 |
|
| 132 |
As a result, Jarvis is able to run for quite a long time, and it's able to use the code written before.
|
| 133 |
|