Is there a way to let the model have access to the current time in case I ask what time is it? #4730
Replies: 2 comments
-
I am actually working on something with that same model I have not released code yet but when its not SO UGLY of code I will. |
Beta Was this translation helpful? Give feedback.
-
From easiest to hardest: System promptPut the current date in the system prompt. For time, it will suck since you have to re evaluate. The message beforePut the current date right before the current message and then rollback the context.
You'd have to remove the date Q&A pair for every message. I believe with the new cache API, you can shift the "How long is it until Christmas?" pair backward and overwrite the Q&A pair about the current date so there might not be a performance penalty but I haven't tried. Special syntaxFollow the GSM8K footstep and make it ask for the date with special syntax. I find that in-context few-shot prompting works really well even with 7b models. |
Beta Was this translation helpful? Give feedback.
-
The thing is I am running a model from Hugging face dolphin mistral but it doesn't have access to current time, how could I go on solving my issue so it has access to current time when running on chat or -cml, thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions