This section covers ingesting, querying, and publishing data using the Airfold CLI.
In this guide, we’ll develop an API to identify the top-mentioned features in sales calls.
We’ll process web events data to extract top referrers using the sample web events CSV file.
Our steps include:
Before we begin, we need to create a workspace to store our data and resources, as well as a token to authenticate our CLI.
The token should look like this: aft_6eab8fcd902e4cbfb63ba174469989cd.Ds1PME5dQsJKosKQWVcZiBSlRFBbmhzIocvHg8KQddV
.
pip install airfold-cli
.af config
and paste your token when prompted.First, download web_events_sample.csv
To create a source, a YAML file defining the source is required.
Let’s generate a source by inferring the schema from a CSV file.
(Replace /path/to/web_events_sample.csv
with the actual path):
The CLI will infer the schema from the CSV file and generate a YAML file with the following contents:
Push the source definition to your workspace:
At this point, our source has been created, but no data has been ingested yet.
Verify creation by listing sources:
With the source set up, ingest the CSV data:
To identify top referrers in web events data, create an insights.yaml
file:
Push the insights pipe:
Use the API:
Or the CLI:
Which should output:
You’ve successfully ingested, analyzed, and published data using Airfold in a few simple steps! This workflow enables intuitive interaction with data, transforming raw web events data into actionable insights.
Feel free to dive deeper into specific concepts, such as workspaces, sources, and more!
This section covers ingesting, querying, and publishing data using the Airfold CLI.
In this guide, we’ll develop an API to identify the top-mentioned features in sales calls.
We’ll process web events data to extract top referrers using the sample web events CSV file.
Our steps include:
Before we begin, we need to create a workspace to store our data and resources, as well as a token to authenticate our CLI.
The token should look like this: aft_6eab8fcd902e4cbfb63ba174469989cd.Ds1PME5dQsJKosKQWVcZiBSlRFBbmhzIocvHg8KQddV
.
pip install airfold-cli
.af config
and paste your token when prompted.First, download web_events_sample.csv
To create a source, a YAML file defining the source is required.
Let’s generate a source by inferring the schema from a CSV file.
(Replace /path/to/web_events_sample.csv
with the actual path):
The CLI will infer the schema from the CSV file and generate a YAML file with the following contents:
Push the source definition to your workspace:
At this point, our source has been created, but no data has been ingested yet.
Verify creation by listing sources:
With the source set up, ingest the CSV data:
To identify top referrers in web events data, create an insights.yaml
file:
Push the insights pipe:
Use the API:
Or the CLI:
Which should output:
You’ve successfully ingested, analyzed, and published data using Airfold in a few simple steps! This workflow enables intuitive interaction with data, transforming raw web events data into actionable insights.
Feel free to dive deeper into specific concepts, such as workspaces, sources, and more!