Files
OpenBB/openbb_terminal/miscellaneous/gpt_index/data/economy_plot.txt
minhhoang1023 c34d703786 Large Language Model - Text to command (#4695)
* POC for text-to-command

* POC

* gimme -> askobb (#4740)

* Add file to generate index data

* Add generate index file

* Remove data file

* Modified data generator

* Update .gitignore

* linting

* run all cmds with root access. new!

* output msg

* modify model name

* weird logging issue

* refactor for new llama index version

* black

* in case model doesnt know

* black linting

* linting

* more ruff

* imports

* nicer messages

* removing function from economy

* poetry

* prompt refinement

* Update spec to bring in new files

* fix llama import

* help command

* missed trailing ]

* -q parameter

* remove experimental

* switching gpt model functionality

* update prompt

* tik tok on the clock

* fixed print statements

* user run commands

* add return

* fix

* fix

* removing a few depr functions

* Add filter for slashes in askobb query

* force -q command

* removing returns

* Add edge case for custom filter

* add back -q if its not in other args

* minor checks

* new prompt - a little better

* more cases for not finding answer

* return clause

* new txt with summaries

* update index ver

* new index

* Add a log_askobb

* revision on prompt

* black

* poetry lock

* req files

* Codespell

* ruff

* Linting some stuff.  Change OpenAI from local to HUB

* Update api-keys.md

* openai key

* remove this. bye bye mypy

* mypy

* mypy...

* mypy2

* fix test

---------

Co-authored-by: DidierRLopes <dro.lopes@campus.fct.unl.pt>
Co-authored-by: teh_coderer <me@tehcoderer.com>
Co-authored-by: martinb-bb <105685594+martinb-bb@users.noreply.github.com>
Co-authored-by: martinb-bb <martin.bufi@openbb.finance>
Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-06-09 16:00:47 +00:00

18 lines
1.7 KiB
Plaintext
Vendored

parent_command:economy
usage: plot [--y1 YAXIS1] [--y2 YAXIS2]
This command can plot any data on two y-axes obtained from the macro, fred, index and treasury commands. To be able to use this data, just load the available series from the previous commands. For example 'macro -p GDP -c Germany
Netherlands' will store the data for usage in this command. Therefore, it allows you to plot different time series in one graph. The example above could be plotted the following way: 'plot --y1 Germany_GDP --y2 Netherlands_GDP' or
'plot --y1 Germany_GDP Netherlands_GDP'
optional arguments:
--y1 YAXIS1 Select the data you wish to plot on the first y-axis. You can select multiple variables here. (default: )
--y2 YAXIS2 Select the data you wish to plot on the second y-axis. You can select multiple variables here. (default: )
Examples:
- Retrieve GDP data for Germany and Netherlands and plot them on the same graph: economy/macro -p GDP -c Germany Netherlands; economy/plot --y1 Germany_GDP Netherlands_GDP
- Load GDP data for Germany and plot it on the first y-axis: economy/macro -p GDP -c Germany; economy/plot --y1 Germany_GDP
- Get GDP data for Germany and Unemployment data for the USA, then plot them on separate y-axes: economy/macro -p GDP -c Germany; economy/macro -p Unemployment -c USA; economy/plot --y1 Germany_GDP --y2 USA_Unemployment
- Load and plot multiple data series on the first y-axis: economy/macro -p GDP -c Germany Netherlands; economy/macro -p Unemployment -c USA; economy/plot --y1 Germany_GDP Netherlands_GDP USA_Unemployment
- Retrieve and plot data series on both y-axes: economy/macro -p GDP -c Germany Netherlands; economy/macro -p Inflation -c USA UK; economy/plot --y1 Germany_GDP Netherlands_GDP --y2 USA_Inflation UK_Inflation