Skip to main content
POST
/
agent
/
datascience
Datascience Agent And Report
curl --request POST \
  --url https://chat.sambanova.ai/api/agent/datascience \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'files=<string>' \
  --form 'prompt=<string>' \
  --form files.items='@example-file'
{
  "content_type": "text/html",
  "title": "Data Science Analysis Report",
  "html": "<!DOCTYPE html>\n<html>\n<head>\n  <title>Data Science Analysis Report</title>\n  <style>/* Professional styling */</style>\n</head>\n<body>\n  <h1>Exploratory Data Analysis Report</h1>\n  <h2>Dataset Overview</h2>\n  <p>The dataset contains 1,000 rows and 15 columns...</p>\n  <h2>Statistical Summary</h2>\n  <table><!-- Summary statistics --></table>\n  <h2>Visualizations</h2>\n  <img src=\"data:image/png;base64,...\" alt=\"Distribution Plot\">\n  <img src=\"data:image/png;base64,...\" alt=\"Correlation Heatmap\">\n  <h2>Key Findings</h2>\n  <ul>\n    <li>Strong correlation between features X and Y</li>\n    <li>Missing values detected in column Z</li>\n  </ul>\n</body>\n</html>\n"
}

Authorizations

Authorization
string
header
required

SambaNova API Key

Body

multipart/form-data

Request for data science agent json object

files
file[]
required

One or more files to be analyzed.

prompt
string
required

The main prompt for the data science agent.

Response

Successful Response

Generated HTML report for exploratory data analysis (EDA)

content_type
string
required

MIME type of the generated report (should be 'text/html')

Example:

"text/html"

title
string
required

Title of the analysis report

Example:

"Data Science Analysis Report"

html
string
required

Full HTML content of the generated report

Example:

"<!DOCTYPE html>\n<html>\n<head>\n <title>Data Science Analysis Report</title>\n <style>/* Professional styling */</style>\n</head>\n<body>\n <h1>Exploratory Data Analysis Report</h1>\n <h2>Dataset Overview</h2>\n <p>The dataset contains 1,000 rows and 15 columns...</p>\n <h2>Statistical Summary</h2>\n <table><!-- Summary statistics --></table>\n <h2>Visualizations</h2>\n <img src=\"data:image/png;base64,...\" alt=\"Distribution Plot\">\n <img src=\"data:image/png;base64,...\" alt=\"Correlation Heatmap\">\n <h2>Key Findings</h2>\n <ul>\n <li>Strong correlation between features X and Y</li>\n <li>Missing values detected in column Z</li>\n </ul>\n</body>\n</html>\n"