Getting started with oxy, with real data
oxy init
, as laid out here. If you want to use your
own data and get started building your own agents and workflows, you can follow
the guide below. If you don’t have some data available, you can also run oxy init
, use the defaults, then follow along in the guide with the demo data
provided therein.
In the following guide, we’ll build up a simple agent and workflow that
operates against some local csv data.
Set up your project folder
~/projects
. If you wish, you can follow this pattern by running
the following command from the command-line, which will create this
directory and move you to it.config.yml
file, which should sit at the root of your oxy
folder.Connect your data with a config.yml file
config.yml
file in the root of
your oxy repository. You can do this by running the following command from
within the oxy project folder:local
. This duckdb instance
executes from your local oxy directory (the path is specified by the
dataset
key and is defined relative to the oxy directory).This can have any name you’d like, but remember the name — you’ll be
using the name to specify which database to use within your agent and
workflow files.Connect your model in config.yml
config.yml
file. Open this file up again, and add the following section:key_var
— in this
case: OPENAI_API_KEY
.In order to save your API key as an environment variable, you can add the
following line to your ~/.bashrc
or ~/.zshrc
file: