How it Works
When you add the tabular analysis tool and the specified context to your API request, Zylon follows these steps:- Analyzes query intent: Zylon understands your analytical question and determines what specific data analysis needs to be performed.
- Processes tabular data: Executes analysis using the tool against the ingested tabular data, focusing on numerical calculations and data insights.
- Returns analytical results: Provides direct analytical answers based on the data processing and calculations performed.
Important Notes
- To use this tool, you must specify the type
tabular_analysis_v1
. - The
tool_context
must contain at least one artifact of typeingested_artifact
. - Artifacts must contain tabular data such as CSV files, Excel spreadsheets, PDFs with tables, or other structured data formats.
Example Usage
In this practical example, we upload a CSV file containing stock price data and then perform analytical queries to find specific insights.1
Upload the Document
First, you need to upload a CSV file or similar tabular document that contains the data you want to analyze. For detailed instructions on how to ingest documents, refer to the Ingest Content API documentation.
2
Perform Tabular Analysis
Once the document is processed, we perform the analytical query by specifying messages, tools, context, and tool choice in the request body.
3
Response
The system responds with the analytical processing performed and the direct answer to your query: