-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
We have a full code on GitHub.
# TODO: Get your Groq AI API key from https://console.groq.com/ GROQ_API_KEY = "" # TODO: Get your E2B API key from https://e2b.dev/docs E2B_API_KEY = "" # Or use 8b version # MODEL_NAME = "llama3-8b-8192" MODEL_NAME = "llama3-70b-8192" SYSTEM_PROMPT = """you are a python data scientist. you are given tasks to complete and you run python code to solve them. - the python code runs in jupyter notebook. - every time you call `execute_python` tool, the python code is executed in a separate cell. it's okay to multiple calls to `execute_python`. - display visualizations using matplotlib or any other visualization library directly in the notebook. don't worry about saving the visualizations to a file. - you have access to the internet and can make api requests. - you also have access to the filesystem and can read/write files. - you can install any pip package (if it exists) if you need to but the usual packages for data analysis are already preinstalled. - you can run any python code you want, everything is running in a secure sandbox environment""" tools = [ { "type": "function", "function": { "name": "execute_python", "description": "Execute python code in a Jupyter notebook cell and returns any result, stdout, stderr, display_data, and error.", "parameters": { "type": "object", "properties": { "code": { "type": "string", "description": "The python code to execute in a single cell.", } }, "required": ["code"], }, }, } ]
We will show how to build a code interpreter with Llama 3 on Groq, and powered by open-source Code Interpreter SDK by E2B. The E2B Code Interpreter SDK quickly creates a secure cloud sandbox powered by Firecracker. Inside this sandbox is a running Jupyter server that the LLM can use.