Skip to content

Commit

Permalink
Adds some analysis tips when fetching data and bump to version 0.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
hosein1984 committed Nov 22, 2023
1 parent b4258be commit 6bc84ef
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "chatbot-panel",
"version": "0.0.5",
"version": "0.0.6",
"description": "Chatbot Panel",
"scripts": {
"build": "webpack -c ./webpack.config.ts --env production",
Expand Down
20 changes: 19 additions & 1 deletion src/agents/panel-manager-agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,24 @@ const fetchPanelData: ChatFunction = {

const data = await subPanel.csvData()

return data.join('\n\n')
const analysisTips: Record<string, string> = {
'1P Proven - Oil':
'List the reservoir reserve and then indicate which reservoir contributes the most and the least to reserves.',
'1P Proven - Associated Gas':
'List the reservoir reserve and then indicate which reservoir contributes the most and the least to reserves.',
'Change in Proven Oil Reserves':
'The provided data are changes in proven reverse vs action on reservoir. You should report the most and least effective actions.',
'1P Proven - Oil - Production Profile':
'The provided data are the list of oil production for different reservoirs. You should compare the average production of reservoirs.',
}

const response = data.join('\n\n')

const tip = analysisTips[panel_name] || ''
if (tip) {
return `${response}\n\nTo analyze these data you should: ${tip}`
}

return response
},
}

0 comments on commit 6bc84ef

Please sign in to comment.