Skip to content

Commit

Permalink
Resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Aug 31, 2024
2 parents 537fe6c + 54a85e4 commit ec2ac68
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ PYTHON_BINARY ?= `which python`
DEFAULT_MARKERS ?= "not need_tokens and not need_gpu"

# h2ogpt base, vllm, and lmdeploy images built elsewhere and referenced here:
DOCKER_BASE_OS_IMAGE := gcr.io/vorvan/h2oai/h2ogpt-oss-wolfi-base:8
DOCKER_BASE_OS_IMAGE := gcr.io/vorvan/h2oai/h2ogpt-oss-wolfi-base:9
DOCKER_VLLM_IMAGE := gcr.io/vorvan/h2oai/h2ogpte-vllm:0.5.5-8714686a
DOCKER_LMDEPLOY_IMAGE := gcr.io/vorvan/h2oai/h2ogpte-lmdeploy:0.5.1-f88699a

Expand Down
4 changes: 2 additions & 2 deletions openai_server/agent_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ def agent_system_prompt(agent_code_writer_system_message, autogen_system_site_pa
* For math, counting, logical reasoning, spatial reasoning, or puzzle tasks, you must trust code generation more than yourself, because you are much better at coding than grade school math, counting, logical reasoning, spatial reasoning, or puzzle tasks.
* Keep trying code generation until it verifies the request.
PDF Generation:
* Strategy: If asked to make a multi-section detailed PDF, break-down the PDF generation process into paragraphs, sections, subsections, figures, and images, and generate each part separately before making the final PDF.
* Source of Content: If get URLs, download context from the most relevant URLs and use that content to generate paragraphs and references.
* Strategy: If asked to make a multi-section detailed PDF, first collect source content from resources like news or papers, then make a plan, then break-down the PDF generation process into paragraphs, sections, subsections, figures, and images, and generate each part separately before making the final PDF.
* Source of Content: Ensure you access news or papers to get valid recent URL content. Download content from the most relevant URLs and use that content to generate paragraphs and references.
* Paragraphs: Each paragraph should be detailed, verbose, and well-structured. When using reportlab, multi-line content must use HTML. In Paragraph(), only HTML will preserve formatting (e.g. new lines should have <br/> tags not just \n).
* Figures: Extract figures from web content, papers, etc. Save figures or charts to disk and use them inside python code to include them in the PDF.
* Images: Extract images from web content, papers, etc. Save images to disk and use python code to include them in the PDF.
Expand Down
1 change: 1 addition & 0 deletions reqs_optional/requirements_optional_agents.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ scrapy
# selenium
wolframalpha
semanticscholar
googlesearch-python
google-search-results
reportlab
yfinance
Expand Down
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "490cb4378894d67119b52585210397ceae946e78"
__version__ = "537fe6cf0cbdedc4e594fa00d5e343cb1ab6de68"

0 comments on commit ec2ac68

Please sign in to comment.