Replies: 3 comments
-
|
Great question! Both tools have their place depending on your use case: Code Interpreter:
Hosted Shell:
For Excel analysis specifically, I would stick with Code Interpreter if you are doing:
The hosted shell is better for simpler file operations or when you need to chain with other tools. One tip: if you are hitting file size limits, consider pre-processing the Excel to CSV, or splitting into smaller chunks before sending to the API. We have built several Excel-to-insights pipelines at Revolution AI - happy to share more patterns if you have specific use cases! |
Beta Was this translation helpful? Give feedback.
-
|
Great question! At RevolutionAI (https://revolutionai.io) we have done extensive Excel analysis with both approaches. Code Interpreter pros:
Hosted Shell pros:
Our recommendation: Start with Code Interpreter for prototyping, move to Hosted Shell when you need:
For pure Excel analysis without external dependencies, Code Interpreter is usually sufficient and simpler to manage! |
Beta Was this translation helpful? Give feedback.
-
|
Excel analysis options! At RevolutionAI (https://revolutionai.io) we build data analysis tools. Options:
assistant = client.beta.assistants.create(
model="gpt-4-turbo",
tools=[{"type": "code_interpreter"}]
)
# Upload Excel, it analyzes in sandbox
@tool
def analyze_excel(file_path: str, query: str) -> str:
df = pd.read_excel(file_path)
# Generate and execute analysis code
return result
from e2b_code_interpreter import CodeInterpreter
with CodeInterpreter() as sandbox:
sandbox.upload_file("data.xlsx")
result = sandbox.run_python(analysis_code)Recommendation:
What scale are you operating at? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m using OpenAI API to analyse .xlsx file. Have been using “code interpreter” tool. Just wondering with the new “hosted shell” tool, is it better to change to that?
Appreciate if there is any guidance or anyone can share their experience. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions