Skip to content

Commit

Permalink
enhanced prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
limivann committed Jan 21, 2024
1 parent 0e28f35 commit 5e87563
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion express/requests.rest
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ Content-Type: application/json

{
"language": "python",
"content": "f(x)=x^2+2x+1 with the constraint x≥2"
"content": "f(x) = x^3 + 2x + 1 with the constraint x≥2",
"type": "code"
}

###
Expand Down
4 changes: 2 additions & 2 deletions express/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const get_family_schema = {
family: {
type: "string",
description:
"either Linear Programming, Quadratic Programming and Semidefinite Programming",
"Family of the problem that is most likely to. Must be one of 'Linear Programming', 'Quadratic Programming' or 'Semidefinite Programming'",
},
},
required: ["family"],
Expand Down Expand Up @@ -104,7 +104,7 @@ const get_family = async (content) => {
Minimize: Tr(C⋅X)
Subject to: Tr(Ai⋅X)=bi, i=1,...,m and X⪰0
Output your answer in either Linear Programming, Quadratic Programming and Semidefinite Programming
Output your answer in either 'Linear Programming', 'Quadratic Programming' or 'Semidefinite Programming'
`,
},
{
Expand Down

0 comments on commit 5e87563

Please sign in to comment.