Code Monkey home page Code Monkey logo

llmob's Introduction

Code License

Large Language Models as Urban Residents: An LLM Agent Framework for Personal Mobility Generation

๐Ÿ“– Description

This repository is the implemetation of LLMob from Large Language Models as Urban Residents: An LLM Agent Framework for Personal Mobility Generation. LLMob is a simple framework that takes advantage of Large Language Models (LLMs) for personal activity trajectory generation.


Figure 1: The LLMob Framework Architecture.


Figure 2: Illustration of activity trajectory generated by LLM agent.

โญ Key Components

  • ./simulator/engine/person.py: Generate personal activity trajectory according to real-world check-in data.
  • ./simulator/engine/functions/traj_infer.py: Personal activity trajectory generation function.
  • ./simulator/engine/functions/PISC.py: Personal activity pattern identification function.
  • ./simulator/engine/memory/retrieval_helper.py: Function related to motivation retrieval.
  • ./simulator/prompt_template: Prompt template used in this project.

โš™๏ธ Usage

To get started with LLMob, follow these steps:

https://github.com/Wangjw6/LLMob.git
cd LLMob
conda env create -f environment.yml
conda activate llm
cd simulator/engine/
python person.py

๐Ÿ“š BibTex Citation

If you would like to cite our code or paper, please use:

@article{wang2024large,
  title={Large Language Models as Urban Residents: An LLM Agent Framework for Personal Mobility Generation},
  author={Wang, Jiawei and Jiang, Renhe and Yang, Chuang and Wu, Zengqing and Onizuka, Makoto and Shibasaki, Ryosuke and Xiao, Chuan},
  journal={arXiv preprint arXiv:2402.14744},
  year={2024}
}

๐ŸŒท Acknowledgments

This project refers to several open-source ChatGPT application:

The raw data used in this project is from Foursquare API.

llmob's People

Contributors

wangjw6 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar Zengqing Wu avatar Chuan Xiao avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.