Skip to main content

Add your description here

Project description

[ChatBattery] Expert-Guided LLM Reasoning for Battery Discovery: From AI-Driven Hypothesis to Synthesis and Characterization

Authors: Shengchao Liu*, Hannan Xu*, Yan Ai*, Huanxin Li+, Yoshua Bengio+, Harry Guo+

1 Environment Setup

conda create -n ChatBattery python=3.9
conda activate ChatBattery

pip install pandas
pip install openai==0.28
pip install Levenshtein
pip install pymatgen==2024.4.13
pip install ase
pip install scikit-learn
pip install xgboost
pip install mp-api==0.41.2
pip install Flask
pip install -e .

2 Data Preprocess

In our case, we download all the chemical formula including Lithium from ICSDN. Then after preprocessing, the file is data/Li_battery/preprocessed.csv.

3 Run Scripts

You need to set up two keys:

  • First set the OpenAI API key, type this in terminal export OPENAI_API_KEY=xxxxx.
  • Then is the MP API key, you can change it in the file ChatBattery/search_agent and reset MP_api_key = 'xxx'.

3.1 Exploration Phase

For stage 1 to 4, run this CMD in terminal

python main.py

The default address is 127.0.0.1:5000. Simply open this address in your browser, and you will see the interface displayed like this:

Then please follow the instructions from stage 1 to stage 4. Enter Ctrl + C if you want to stop the program. The results are collected into a csv file, which will be fed into the next stage.

3.2 Exploitation Phase
  • Stage 5, first please get prepared the input file
cd stage_05_deduplication
python stage_05_deduplication.py --input_file=xxx
  • Stage 6, then run the following CMD
cd stage_06_ranking
bash stage_06_ranking.sh

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

chatbattery-0.1.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

chatbattery-0.1.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file chatbattery-0.1.0.tar.gz.

File metadata

  • Download URL: chatbattery-0.1.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for chatbattery-0.1.0.tar.gz
Algorithm Hash digest
SHA256 705a72f4b9df03410cdfcc865a39b507fed8e962c441d8d426aca4641706b235
MD5 f59292a5aceb3b79f6dc0a674d958d5f
BLAKE2b-256 2b4852e58ef02fdad3fe8ebd7d5fdad52f70ed2d54572738606f5f9d060dfb8a

See more details on using hashes here.

File details

Details for the file chatbattery-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: chatbattery-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for chatbattery-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6eaf21d0cc3a1d787f11714424fb1175bab9c62dc75aac2fccb4239a8acf90df
MD5 ebedc00b031f7aea508fa7a274321494
BLAKE2b-256 cc3d1a0f10a1166aa5beff8f6039d2bb8bbf3eeff5c38d6157d4f48c3c405161

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