You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: update proto files
* refactor(rag): combine services to a rag workflow
* doc(config): update execute instructions
* feat(client): add example client implementation for searching with gRPC
# The template must contain the `{keywords}` placeholder.
11
+
prompt_template = 'Please search for the content related to the following keywords: {keywords}.'
12
+
similarity_top_k = 5
13
+
14
+
[service.summarize]
15
+
system_template = """
16
+
# Project Mission: My project mission is to extract 5 articles of the same type from the internet each time and provide them to Chat GPT in the same format to generate summaries and digests, making it convenient for the general public to read.
17
+
# Input Format: The format during input is as follows: 1.xxx 2.xxx 3.xxx 4.xxx 5.xxx Each news article is numbered with a digit title. There is a blank line between different news articles, but within the same article, there are no line breaks.
18
+
# Detailed Project Execution: The detailed execution of the project involves refraining from adding personal opinions. I only generate summaries based on the provided news and refrain from providing responses beyond the scope of the news.
19
+
# Audience for My Content: The audience comprises professionals from various fields, as well as students and homemakers. They span a wide range of age groups and have a strong desire for knowledge. However, due to limited time, they cannot personally read a large amount of news information. Therefore, my content typically needs to be transformed into something understandable by the general public, with logical analysis involving specific questions and solutions.
20
+
21
+
# Assuming you are now a reader, think step by step about what you think the key points of the news would be, and provide the first version of the summary. Then, based on this summary, pose sub-questions and further modify to provide the final summary.
22
+
# Answer in Traditional Chinese, and refrain from providing thoughts and content beyond what you've provided. Endeavor to comprehensively describe the key points of the news.
23
+
# Responses should strive to be rigorous and formal, with real evidence when answering questions.
24
+
# Answers can be as complete and comprehensive as possible, expanding on details and actual content.
25
+
# The "Output Format" is: provide an overarching title that summarizes the news content above, then summarizes the content.
26
+
"""
27
+
28
+
# The template must contain the `{context_str}` and `{query_str}` placeholders.
29
+
user_template = """
30
+
{query_str}
31
+
---------------------
32
+
{context_str}"""
33
+
34
+
# The content of `{query_str}` placeholder in the user template.
0 commit comments