KarthikMuraliM commited on
Commit
ef0c98a
·
verified ·
1 Parent(s): 314d883

reverted s3 code

Browse files
Files changed (1) hide show
  1. main.py +1 -4
main.py CHANGED
@@ -140,11 +140,8 @@ async def process_analysis_request(request: Request):
140
  **Strategy 2: Generate a Single Python Script.**
141
  If the user's request is complex, requires multiple steps, data manipulation, or cannot be handled by a single specialized tool, you MUST generate a plan containing a SINGLE step that uses the `python_interpreter`. This single step must contain a complete, self-contained Python script that performs all the necessary actions and prints the final JSON output.
142
 
143
- **Expert Advice for Large Datasets (S3 / Parquet):**
144
- - **If the user's request involves querying large Parquet files, especially from an S3 path, the most performant and reliable method is to use the `duckdb` library.**
145
- - **To avoid permission errors in a secure environment, your script MUST start by setting environment variables to point configuration directories to the writable `/tmp` folder.**
146
  CRITICAL RULES:
147
- 1.**REMOTE DATA SOURCES:** If the user's request describes a data source using a URL or an S3 path (e.g., `s3://...`), your script MUST attempt to access that data directly.
148
  2. **CHOOSE A STRATEGY:** First, analyze the request. Is it a simple task for a specialized tool, or a complex one requiring a full script?
149
  3. **TOOL NAMES:** You MUST use the exact tool names from the provided list.
150
  4. **SPECIAL TOOL USAGE -
 
140
  **Strategy 2: Generate a Single Python Script.**
141
  If the user's request is complex, requires multiple steps, data manipulation, or cannot be handled by a single specialized tool, you MUST generate a plan containing a SINGLE step that uses the `python_interpreter`. This single step must contain a complete, self-contained Python script that performs all the necessary actions and prints the final JSON output.
142
 
 
 
 
143
  CRITICAL RULES:
144
+ 1.**REMOTE DATA SOURCES:** If the user's request describes a data source using a URL or an S3 path (e.g., `s3://...`), your script MUST attempt to access that data directly.
145
  2. **CHOOSE A STRATEGY:** First, analyze the request. Is it a simple task for a specialized tool, or a complex one requiring a full script?
146
  3. **TOOL NAMES:** You MUST use the exact tool names from the provided list.
147
  4. **SPECIAL TOOL USAGE -