A LangGraph/LLM‐driven EDA → AutoML → report pipeline
Project description
MI-Agent
An agentic workflow for materials-informatics (MI) engineers, built with LangGraph and powered by OpenAI models. MI-Agent codifies the end-to-end MI pipeline—data loading, merging, feature selection, EDA, AutoML baselining, hyperparameter tuning, and executive reporting—into reusable nodes orchestrated as a LangGraph. LangSmith integration tracks and visualizes your graph executions. The result? MI workflows that run in seconds instead of hours, boosting your productivity by an order of magnitude.
🚀 Why MI-Agent?
- Agentic LangGraph design lets you hit “play” on a full MI pipeline
- 10× faster: eliminate boilerplate and manual scripting
- Extensible nodes: swap in your own extractors, metrics, or plots
- LangSmith-backed for graph tracking, versioning, and observability
- Production-ready: versionable, testable, pip-installable
🛠️ Prerequisites
- Conda (Miniconda or Anaconda)
- Python 3.10
- OpenAI API key
- LangSmith API key
Installation via pip
-
Create & activate a conda environment
conda create -n mi_agent python=3.10 -y conda activate mi_agent
-
Install via pip
pip install materials_informatics_agent
-
Configure your API keys for this session
MI-Agent will automatically look for a file named
.envin your current working directory (or any parent) and load any keys it finds.In the folder where you’ll run the CLI (or in any ancestor), create a file called
.envcontaining:OPENAI_API_KEY=sk-… LANGCHAIN_API_KEY=lsv2_…
-
Prepare your problem file
MI-Agent requires a
.txtfile (an example is provided in thesample_problem.txtin the project root of the source code) which contains:-
your problem description
-
relative paths to your CSV(s), including any folder prefix (e.g.
data/sample_data.csv)
Example
problem.txt:You are tasked with predicting alloy strength from composition data... - data/sample_data_1.csv: Contains experimental results... - data/sample_data_2.csv: Contains formulation recipes...
-
-
Run the agent
Now, invoke
mi_agent …in the same terminal session you entered your API keys:mi_agent --problem-file <path/to/problem.txt> --output-dir <path/to/output_dir>
MI-Agent will:
- Identify & load the CSV(s) listed in the problem file
- Merge files if needed
- Select target & features
- Propose & execute EDA
- Save all generated code (
*.py) for EDA analysis and images (*.png) generated during EDA into <output_dir> - Run AutoML baseline + hyperparameter tuning
- Emit a two-page executive summary
- Log every step to LangSmith
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file materials_informatics_agent-0.1.15.tar.gz.
File metadata
- Download URL: materials_informatics_agent-0.1.15.tar.gz
- Upload date:
- Size: 44.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9499c4bf7aae91eb49d5685797e6b776b0e69acf8d3a32b0c0039ec981a1c591
|
|
| MD5 |
17f0dc3207f72167ed362f2eea9ed966
|
|
| BLAKE2b-256 |
10673ea165c59c0ab33261bc2d4d2f8193ca5b6a721f18137cd6314ee16ffc28
|
File details
Details for the file materials_informatics_agent-0.1.15-py3-none-any.whl.
File metadata
- Download URL: materials_informatics_agent-0.1.15-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17074c622aa8e64e8cd588c6210036ee3bf2239c7bc264c8b28c2ba3a0ef2026
|
|
| MD5 |
971aedbb7bbc83a6f567ed8334b11c5b
|
|
| BLAKE2b-256 |
f9f3a7682f7525acbe2ed6fe9a0417ae2e86f832cb4cde6b31438d81e5a8acc3
|