You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSV Analyzer Agent is an AI-Agent assistant designed to automate document understanding and analysis.
5
-
It intelligently routes user questions through a multi-step process that includes PDF information extraction, CSV data analysis, code generation, execution, and natural language explanation.
3
+
CSV Analyzer Agent is an AI-Agent assistant designed to automate document understanding and analysis.
4
+
It intelligently routes user questions through a multi-step process that includes PDF information extraction, CSV data analysis, code generation, execution, and natural language explanation.
6
5
It supports dynamic workflows like PDF parsing, CSV querying, and context-aware reporting through a Streamlit UI.
7
6
8
7
Reviewed: April 18, 2025
9
8
10
-
1. Prepare Your Configuration
9
+
---
11
10
12
-
☁️ OCI Generative AI Model (Cohere/Llama on OCI)
13
-
Go to: OCI Console → Generative AI
11
+
# When to use this asset?
14
12
15
-
Select a model like:
16
-
meta.llama-3.3-70b-instruct
13
+
Use this asset when you want to:
14
+
- Parse and extract information from PDF documents
15
+
- Ask questions about CSV files and receive data-backed answers
16
+
- Automate code generation for data analysis
17
+
- Get human-readable summaries of complex analytics
18
+
- Demonstrate AI-powered multi-modal document analysis in action
17
19
18
-
Copy:
20
+
Ideal for:
21
+
- AI developers building document understanding tools
22
+
- Oracle Cloud users integrating GenAI into document workflows
23
+
- Data analysts exploring LLM + document orchestration using LangGraph
[OCI Generative AI Documentation](https://docs.oracle.com/en-us/iaas/Content/generative-ai/home.htm)
28
54
29
55
No API key is required — authentication is handled via OCI identity.
30
56
31
-
Also ensure your **OCI CLI credentials** are correctly set up. Create or edit the following config file at `config`:
57
+
Ensure your OCI CLI credentials are configured.
58
+
Edit or create the following config file at `~/.oci/config`:
32
59
33
60
```
34
61
[DEFAULT]
@@ -39,45 +66,58 @@ region=eu-frankfurt-1
39
66
key_file=~/.oci/oci_api_key.pem
40
67
```
41
68
42
-
2. Start the Chatbot
69
+
###Start the Chatbot
43
70
44
-
Streamlit UI
71
+
Streamlit UI:
72
+
```bash
45
73
streamlit run assistant_ui_langgraph.py
74
+
```
46
75
76
+
You will see a full chat interface with support for uploading CSVs and PDFs, asking questions, and receiving answers backed by the AI Agent (`csv_analyzer_agent.py`).
47
77
48
-
You will see a full chat interface with support for uploading CSVs and PDFs, asking questions, and receiving answers backed by the AI Agent (csv_analyzer_agent.py).
49
-
50
-
3. Key Features
78
+
## Key Features
51
79
52
-
Tool | Description
53
-
------------------------|-------------
54
-
CSV Upload | Load a CSV file and analyze it with questions
55
-
PDF Extraction | Extracts structured fields like title, items, department, justification from uploaded PDFs
56
-
Request Routing | Determines if user input relates to CSV or PDF
57
-
Secure Code Generation | Uses OCI GenAI to generate Python code to analyze your data
|Sidebar Display | Shows PDF structured data and generated code for full transparency |
63
91
64
-
4. Notes
92
+
##Notes
65
93
66
-
- Supports both document inputs (CSV + PDF)
67
-
- Uses LangGraph to orchestrate tool routing and execution
68
-
- Modular design — individual tools can be expanded or replaced
69
-
- Streamlit UI provides a fully interactive interface with visual progress and outputs
70
-
- Built to run on Oracle Cloud Infrastructure with native LLM integration
94
+
- Supports both document inputs (CSV + PDF)
95
+
- Uses LangGraph to orchestrate tool routing and execution
96
+
- Modular design — individual tools can be expanded or replaced
97
+
- Streamlit UI provides a fully interactive interface with visual progress and outputs
98
+
- Built to run on Oracle Cloud Infrastructure with native LLM integration
71
99
72
100
## Prompt Customization
73
101
74
102
All core prompts used by the agent are stored in `prompts.py`.
75
103
76
-
You can easily **modify or extend these prompts** to change how the agent performs routing, extraction, analysis, and natural language response generation.
104
+
You can easily modify or extend these prompts to change how the agent performs routing, extraction, analysis, and natural language response generation.
105
+
106
+
The prompt for extraction can be found in `csv_analyzer_agent.py`.
0 commit comments