pvanand commited on
Commit
d6ef585
·
verified ·
1 Parent(s): 70cddb8

Update document_generator_v3.py

Browse files
Files changed (1) hide show
  1. document_generator_v3.py +5 -5
document_generator_v3.py CHANGED
@@ -32,12 +32,12 @@ OUTPUT IN FOLLOWING JSON FORMAT enclosed in <output> tags
32
 
33
  DOCUMENT_OUTLINE_PROMPT_USER = """Generate a document outline consisting of {num_pages} pages for the following query: <prompt>{query}</prompt>"""
34
 
35
- DOCUMENT_SECTION_PROMPT_SYSTEM = """You are a document generator, You need to output only the content requested in the section in the prompt.
36
  OUTPUT AS A WELL FORMATED DOCUMENT ENCLOSED IN <response></response> tags
37
  <overall_objective>{overall_objective}</overall_objective>
38
  <document_layout>{document_layout}</document_layout>"""
39
 
40
- DOCUMENT_SECTION_PROMPT_USER = """<prompt>Output the content for the section "{section_or_subsection_title}" formatted as markdown. Follow the instructions below title/subtitle to replace it with appropriate content: {content_instruction}</prompt>"""
41
 
42
  ##########################################
43
 
@@ -73,12 +73,12 @@ OUTPUT IN FOLLOWING JSON FORMAT enclosed in <output> tags
73
 
74
  DOCUMENT_TEMPLATE_PROMPT_USER = """<prompt>{query}</prompt>"""
75
 
76
- DOCUMENT_TEMPLATE_SECTION_PROMPT_SYSTEM = """You are a document template generator,You need to output only the content requested in the section in the prompt, Use placeholder text/examples/tables wherever required.
77
  FORMAT YOUR OUTPUT AS A TEMPLATE ENCLOSED IN <response></response> tags
78
  <overall_objective>{overall_objective}</overall_objective>
79
  <document_layout>{document_layout}</document_layout>"""
80
 
81
- DOCUMENT_TEMPLATE_SECTION_PROMPT_USER = """<prompt>Output the content for the section "{section_or_subsection_title}" formatted as markdown. Follow the instructions below title/subtitle to replace it with appropriate content: {content_instruction}</prompt>"""
82
 
83
 
84
  # File: llm_observability.py
@@ -384,7 +384,7 @@ class DocumentGenerator:
384
  self.content_messages.append({
385
  "role": "user",
386
  "content": SECTION_PROMPT_USER.format(
387
- section_or_subsection_title=title,
388
  content_instruction=content_instruction
389
  )
390
  })
 
32
 
33
  DOCUMENT_OUTLINE_PROMPT_USER = """Generate a document outline consisting of {num_pages} pages for the following query: <prompt>{query}</prompt>"""
34
 
35
+ DOCUMENT_SECTION_PROMPT_SYSTEM = """You are a document generator, replace the section/subsection prompts with the requested content.
36
  OUTPUT AS A WELL FORMATED DOCUMENT ENCLOSED IN <response></response> tags
37
  <overall_objective>{overall_objective}</overall_objective>
38
  <document_layout>{document_layout}</document_layout>"""
39
 
40
+ DOCUMENT_SECTION_PROMPT_USER = """<prompt>Output the content requested formatted as markdown. Follow the instructions below title/subtitle to replace it with appropriate content: {content_instruction}</prompt>"""
41
 
42
  ##########################################
43
 
 
73
 
74
  DOCUMENT_TEMPLATE_PROMPT_USER = """<prompt>{query}</prompt>"""
75
 
76
+ DOCUMENT_TEMPLATE_SECTION_PROMPT_SYSTEM = """You are a document template generator, replace the section/subsection prompts with the requested content, Use placeholder text/examples/tables wherever required.
77
  FORMAT YOUR OUTPUT AS A TEMPLATE ENCLOSED IN <response></response> tags
78
  <overall_objective>{overall_objective}</overall_objective>
79
  <document_layout>{document_layout}</document_layout>"""
80
 
81
+ DOCUMENT_TEMPLATE_SECTION_PROMPT_USER = """<prompt>Output the content requested formatted as markdown. Follow the instructions below title/subtitle to replace it with appropriate content: {content_instruction}</prompt>"""
82
 
83
 
84
  # File: llm_observability.py
 
384
  self.content_messages.append({
385
  "role": "user",
386
  "content": SECTION_PROMPT_USER.format(
387
+ #section_or_subsection_title=title,
388
  content_instruction=content_instruction
389
  )
390
  })