forked from khoj-ai/khoj
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to let Khoj infer chat query based on user automation query
This tries to decouple the automation query from the chat query. So the chat model doesn't have to know it is running in an automation context or figure how to notify user or send automation response. It just has to respond to the AI generated `query_to_run' corresponding to the `scheduling_request` automation by the user. For example, a `scheduling_request' of `notify me when X happens' results in the automation calling the chat api with a `query_to_run` like `tell me about X` and deciding if to notify based on information gathered about X from the scheduled run. If these two are not decoupled, the chat model may respond with how it can notify about X instead of just asking about it. Swap query_to_run with scheduling_request on the automation web page
- Loading branch information
Showing
4 changed files
with
71 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters