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
*An AI-powered assistant that routes user input across tools like Gmail, Google Calendar, Weather API, Calculator, and Oracle’s Generative AI services for smart, dynamic task automation.*
3
+
An AI-powered assistant that routes user input across tools like Gmail, Google Calendar, Weather API, Calculator, and Oracle’s Generative AI services for smart, dynamic task automation.
4
4
5
-
Reviewed: 31.03.2025
5
+
Reviewed: 23.04.2025
6
6
7
-
---
8
-
9
-
## When to use this asset?
7
+
# When to use this asset?
10
8
11
9
Use this asset when you want to:
12
-
- Automate tasks across Gmail, Calendar, and Weather
13
-
- Get answers via OCI’s AI Agents and RAG-powered chat
14
-
- Use a simple UI to interact with multiple tools seamlessly
15
-
- Demo a multi-tool assistant combining local logic and cloud intelligence
10
+
- Automate tasks across Gmail, Calendar, and Weather
11
+
- Get answers via OCI’s AI Agents and RAG-powered chat
12
+
- Use a simple UI to interact with multiple tools seamlessly
13
+
- Demo a multi-tool assistant combining local logic and cloud intelligence
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
+
# When to use this asset?
11
10
12
-
☁️ OCI Generative AI Model (Cohere/Llama on OCI)
13
-
Go to: OCI Console → Generative AI
11
+
Use this asset when you want to:
12
+
- Parse and extract information from PDF documents
13
+
- Ask questions about CSV files and receive data-backed answers
14
+
- Automate code generation for data analysis
15
+
- Get human-readable summaries of complex analytics
16
+
- Demonstrate AI-powered multi-modal document analysis in action
14
17
15
-
Select a model like:
16
-
meta.llama-3.3-70b-instruct
18
+
Ideal for:
19
+
- AI developers building document understanding tools
20
+
- Oracle Cloud users integrating GenAI into document workflows
21
+
- 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
50
29
51
No API key is required — authentication is handled via OCI identity.
30
52
31
-
Also ensure your **OCI CLI credentials** are correctly set up. Create or edit the following config file at `config`:
53
+
Ensure your OCI CLI credentials are configured.
54
+
Edit or create the following config file at `~/.oci/config`:
32
55
33
56
```
34
57
[DEFAULT]
@@ -39,45 +62,55 @@ region=eu-frankfurt-1
39
62
key_file=~/.oci/oci_api_key.pem
40
63
```
41
64
42
-
2. Start the Chatbot
65
+
###Start the Chatbot
43
66
44
-
Streamlit UI
67
+
Streamlit UI:
68
+
```bash
45
69
streamlit run assistant_ui_langgraph.py
70
+
```
46
71
72
+
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
73
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
74
+
## Key Features
51
75
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
87
64
-
4. Notes
88
+
##Notes
65
89
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
90
+
- Supports both document inputs (CSV + PDF)
91
+
- Uses LangGraph to orchestrate tool routing and execution
92
+
- Modular design — individual tools can be expanded or replaced
93
+
- Streamlit UI provides a fully interactive interface with visual progress and outputs
94
+
- Built to run on Oracle Cloud Infrastructure with native LLM integration
71
95
72
96
## Prompt Customization
73
97
74
98
All core prompts used by the agent are stored in `prompts.py`.
75
99
76
-
You can easily **modify or extend these prompts** to change how the agent performs routing, extraction, analysis, and natural language response generation.
100
+
You can easily modify or extend these prompts to change how the agent performs routing, extraction, analysis, and natural language response generation.
101
+
102
+
The prompt for extraction can be found in `csv_analyzer_agent.py`.
0 commit comments