Skip to main content

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

  1. Create & activate a conda environment

    conda create -n mi_agent python=3.10 -y
    conda activate mi_agent
    
  2. Install via pip

    pip install materials_informatics_agent
    
  3. Configure your API keys for this session

    You’ll need to re-enter these each time you open a new terminal.

    MI-Agent reads only from real environment variables. Set them in your shell before running:

    Windows PowerShell:

    $Env:OPENAI_API_KEY = "sk-…"
    $Env:LANGCHAIN_API_KEY = "lsv2_..."      <---- your LangSmith API key
    

    macOS/Linux (bash, zsh):

    export OPENAI_API_KEY ="sk-…"
    export LANGCHAIN_API_KEY="lsv2_..."      <---- your LangSmith API key
    
  4. Prepare your problem file

    MI-Agent requires a .txt file (an example is provided in the sample_problem.txt in the project root) 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...
    
  5. Run the agent

    Now, invoke mi_agent … in the same terminal session you entered your API keys:

    materials_informatics_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

materials_informatics_agent-0.1.9.tar.gz (43.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

materials_informatics_agent-0.1.9-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file materials_informatics_agent-0.1.9.tar.gz.

File metadata

File hashes

Hashes for materials_informatics_agent-0.1.9.tar.gz
Algorithm Hash digest
SHA256 c22721f5f9ae12bdf7ff94e74648abdf6739d611f261ff456f590e3d7402dec2
MD5 06df682562b822bc8b79a1653814570d
BLAKE2b-256 9cde05e1780ae1d4e0d1f326eaf5140c53e324f5e4c2e6443b2dd92e0bd551f6

See more details on using hashes here.

File details

Details for the file materials_informatics_agent-0.1.9-py3-none-any.whl.

File metadata

File hashes

Hashes for materials_informatics_agent-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0128b6f75d4b15b1c1ba7147903fe60c742ecf0c65fa82716095ab5629a20934
MD5 bd57bfcfbcfd97f9737a9c8377966c15
BLAKE2b-256 9953e8a5468a98aadfebe3d164f505f1230ee2229037f02f0a803554af93a7d6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page