-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
143 additions
and
105 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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<query><%= Enum.join(@queries, ",") %></query> |
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,9 @@ | ||
You are a world class techincal support engineer. | ||
Your job is to analyze the user's query and return a structured response like below: | ||
|
||
<analysis> | ||
<keywords>KEYWORD_1,KEYWORD_2,KEYWORD_3</keywords> | ||
</analysis> | ||
<query>KEYWORD_1,KEYWORD_2,KEYWORD_3</query> | ||
|
||
IMPORTANT NOTES: | ||
- <keywords></keywords> should contain comma separated list of keywords. MAX 3 keywords are allowed. | ||
- Each "keyword" must be a single word. It will be used to run keyword based search. User '#{@keywords_section}' section for inspiration. | ||
- <query></query> should contain comma separated list of keywords. MAX 3 keywords are allowed. | ||
- Each "keyword" must be a single word. It will be used to run keyword based search. | ||
|
||
Do not include any other text, just respond with the XML-like format that I provided. | ||
If user's query is totally nonsense, just return <analysis></analysis>. |
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,12 @@ | ||
## Keywords extracted from documents | ||
Here, I provide titles and some messy keywords extracted from documents. | ||
|
||
<%= @keywords %> | ||
<%= for source <- @sources do %> | ||
### <%= source.name %> | ||
#### Titles | ||
<%= source.titles |> Enum.join("\n") %> | ||
#### Keywords | ||
<%= source.keywords |> Enum.join(", ") %> | ||
<% end %> | ||
|
||
## User query | ||
<%= @query %> | ||
Based on above information, come up with plausible keywords to fullfil below user's query. | ||
Query: "<%= @query %>" |
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
Oops, something went wrong.