Spaces:
Running
Running
Kunal Pai
commited on
Commit
·
51c90fc
1
Parent(s):
2c0c391
Add examples of HASHIRU's memory functionality to paper
Browse files- paper/conference_101719.tex +78 -0
paper/conference_101719.tex
CHANGED
@@ -8,6 +8,13 @@
|
|
8 |
\usepackage{textcomp}
|
9 |
\usepackage{xcolor}
|
10 |
\usepackage{hyperref}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
|
12 |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
|
13 |
\begin{document}
|
@@ -250,4 +257,75 @@ We evaluate using quantitative and qualitative metrics:
|
|
250 |
\bibliography{references}
|
251 |
\bibliographystyle{plain}
|
252 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
253 |
\end{document}
|
|
|
8 |
\usepackage{textcomp}
|
9 |
\usepackage{xcolor}
|
10 |
\usepackage{hyperref}
|
11 |
+
\usepackage{tcolorbox}
|
12 |
+
\tcbuselibrary{skins}
|
13 |
+
|
14 |
+
% Define styles for user and assistant boxes
|
15 |
+
\newtcolorbox{userbox}{colback=blue!5,colframe=blue!40!black,title=User}
|
16 |
+
\newtcolorbox{assistantbox}{colback=gray!10,colframe=black,title=Assistant}
|
17 |
+
|
18 |
\def\BibTeX{{\rm B\kern-.05em{\sc i\kern-.025em b}\kern-.08em
|
19 |
T\kern-.1667em\lower.7ex\hbox{E}\kern-.125emX}}
|
20 |
\begin{document}
|
|
|
257 |
\bibliography{references}
|
258 |
\bibliographystyle{plain}
|
259 |
|
260 |
+
\appendix
|
261 |
+
\section{Examples of HASHIRU in Action}
|
262 |
+
\label{sec:examples}
|
263 |
+
In this section, we provide examples of how HASHIRU operates in practice, demonstrating its dynamic management, hybrid intelligence, memory and autonomous tool creation capabilities.
|
264 |
+
|
265 |
+
\subsection{Example 3: Memory}
|
266 |
+
\begin{figure}[h]
|
267 |
+
\centering
|
268 |
+
\begin{minipage}{0.45\textwidth}
|
269 |
+
\begin{userbox}
|
270 |
+
I am vegetarian.
|
271 |
+
\end{userbox}
|
272 |
+
|
273 |
+
\begin{assistantbox}
|
274 |
+
Okay, I'll keep that in mind. I'll store this preference in my memory.
|
275 |
+
|
276 |
+
\texttt{Invoking MemoryManager with \{`memory': `The user is vegetarian.', `action': `add\_memory', `key': `vegetarian'\}}
|
277 |
+
|
278 |
+
I have stored that you are vegetarian. How can I help you today?
|
279 |
+
\end{assistantbox}
|
280 |
+
|
281 |
+
\begin{userbox}
|
282 |
+
Give me a bacon pasta recipe.
|
283 |
+
\end{userbox}
|
284 |
+
|
285 |
+
\begin{assistantbox}
|
286 |
+
Memories
|
287 |
+
|
288 |
+
Memories: [`The user is vegetarian.']
|
289 |
+
|
290 |
+
My apologies, but I cannot provide a bacon pasta recipe since you are vegetarian. Would you like a vegetarian pasta recipe instead?
|
291 |
+
\end{assistantbox}
|
292 |
+
\end{minipage}
|
293 |
+
\caption{HASHIRU enforcing a stored dietary preference in dialogue using its Memory Function.}
|
294 |
+
\label{fig:memory_example}
|
295 |
+
\end{figure}
|
296 |
+
|
297 |
+
\begin{figure}[ht]
|
298 |
+
\centering
|
299 |
+
\begin{minipage}
|
300 |
+
{0.45\textwidth}
|
301 |
+
\begin{userbox}
|
302 |
+
I can eat bacon actually
|
303 |
+
\end{userbox}
|
304 |
+
|
305 |
+
\begin{assistantbox}
|
306 |
+
Memories
|
307 |
+
|
308 |
+
Memories: [’The user is vegetarian.’]
|
309 |
+
|
310 |
+
I see. My apologies for the confusion. I had a conflicting memory that you were vegetarian. I will remove that memory and proceed with finding a bacon pasta recipe.
|
311 |
+
|
312 |
+
\texttt{Invoking MemoryManager with \{'action': 'delete\_memory', 'key': 'The user is vegetarian.'\}}
|
313 |
+
|
314 |
+
OK, I have removed the memory. Now I will search for a bacon pasta recipe.
|
315 |
+
|
316 |
+
\texttt{Invoking GoogleSearchTool with \{'query': 'bacon pasta recipe'\}}
|
317 |
+
|
318 |
+
Here are some bacon pasta recipes I found:
|
319 |
+
\begin{itemize}
|
320 |
+
\item \href{https://www.sprinklesandsprouts.com/garlic-bacon-pasta/}{Garlic Bacon Pasta}
|
321 |
+
\item \href{https://www.theburntbuttertable.com/creamy-bacon-pasta-sauce/}{Creamy Bacon Pasta Sauce}
|
322 |
+
\end{itemize}
|
323 |
+
|
324 |
+
Would you like me to get the content of any of these websites?
|
325 |
+
\end{assistantbox}
|
326 |
+
\end{minipage}
|
327 |
+
\caption{HASHIRU updating and deleting its memory based on user input. Continuation of Figure \ref{fig:memory_example}.}
|
328 |
+
\label{fig:memory_example2}
|
329 |
+
\end{figure}
|
330 |
+
|
331 |
\end{document}
|