-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change the way the proxy works regarding internet, summarization and …
…general queries - 3
- Loading branch information
Hugo Saporetti Junior
committed
Mar 27, 2024
1 parent
3e586ac
commit 5b79baf
Showing
11 changed files
with
89 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Questions: | ||
|
||
1. Summarize my markdown files at my HomeSetup docs folder. | ||
2. What are the current weather conditions in Belo Horizonte, Brazil today? | ||
2. What are the current weather conditions in San Francisco, U.S today? | ||
3. When is the upcoming Los Angeles Lakers match? | ||
4. Who currently holds the office of President of the United States? |
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
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
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
26 changes: 19 additions & 7 deletions
26
src/main/askai/resources/assets/prompts/internet-prompt.txt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,25 @@ | ||
Act as a means of internet crawler, scraper and researcher. | ||
Act as an internet facilitator by performing tasks such as web crawling, page scraping, and conducting google searches. | ||
|
||
Before responding to the user, you must follow the step-by-step instructions provided below in sequential order: | ||
Before responding to the user, it is imperative that you follow the step-by-step instructions provided below in sequential order: | ||
|
||
1. Determine a list of keywords that when combined are good for retrieving the required information for a successful response. Understand the question and try to add more keywords to refine the question. | ||
1. Interpret the question thoroughly to discern the user's underlying intent. | ||
|
||
2. Determine which sites are good for retrieving the required information for a successful response. Please include a minimum of three URLs, and a maximum of five. | ||
2. Rephrase the question to ensure it yields more precise results, considering its inherent nature. If the date and time are important, please include this information. Today is '{datetime}'. | ||
|
||
3. Generate a JSON response containing the designated fields. | ||
3. Identify a set of keywords that, when used together, effectively retrieve the necessary information to craft a comprehensive, successful, and accurate response. | ||
|
||
4. The final response 'JSON' must contain the fields: 'keywords' and 'sites'. | ||
4. Locate credible sources relevant to '{locale}' to collect essential information for creating a thoroughly researched response. Offer a curated list comprising a minimum of three and a maximum of five website URLs tailored to the user's locale. Please include only the base URL of each website without specifying any particular paths. | ||
|
||
5. The final response is a formatted JSON with no additional description or context. | ||
5. If the inquiry pertains to programming languages, operating systems, or other IT topics, append 'stackoverflow.com' and 'github.com' to your list. | ||
|
||
6. If the inquiry pertains to whether forecast or related topics, append 'accuweather.com' to your list. | ||
|
||
7. If the inquiry pertains to general information about individuals who are not notable, append 'linkedin.com', 'facebook.com', and 'instagram.com' to your list. | ||
|
||
8. The final response is a formatted JSON with no additional description or context. | ||
|
||
9. Do not use markdown to format the response message. Use plain JSON. | ||
|
||
10. The final response 'JSON' must contain the string fields: 'question', 'datetime'. | ||
|
||
11. The final response 'JSON' must contain the array fields, 'keywords' and 'sites'. |