Giter Club home page Giter Club logo

charites-ai's Introduction

charites-ai

Open in StackBlitz

これは何?

  • charites-ai は、自然言語による指示に基づいて、Mapbox style specification に従った json ファイルを生成することができる AI です
  • この AI は、@unvt/charitesを活用しています

Demo

Image from Gyazo

環境構築

  • Node.js がインストールされていることが前提です
  • npm がインストールされていることも前提です
  • 以下のコマンドを実行してください
export OPENAI_API_KEY=*****
git clone ...
cd charites-ai
npm ci
npm run dev
  • ブラウザで http://localhost:5173/ にアクセスしてください
  • 地図が表示されていることを確認してください

charites-ai の使い方

  • npm run dev は実行したままの状態で、以下のようなコマンドを実行してください
npm run instruct -- 国の名前を黄色で表示して
  • ブラウザで http://localhost:5173/ にアクセスしてください
  • 国の名前が黄色になった地図が表示されていることを確認してください
  • 以下のようなコマンドを実行してください
npm run instruct -- 国の名前を青色で表示して
  • ブラウザで http://localhost:5173/ にアクセスしてください
  • 国の名前が青色に変化した地図が表示されていることを確認してください

charites-ai の仕組み

  • Mapbox style specification に従った json ファイルは非常に巨大なものであるため、2023 年 12 月現在、LLMs で扱うことが困難です
  • charites は、複数に分割された YAML ファイルを結合して、Mapbox style specification に従った json ファイルを生成することができます
  • charites-ai は、charites の機能を活用して、自然言語による指示に基づいて、それぞれの YAML ファイルを編集することができます
  • これを実現するために、それぞれの YAML ファイルに対して、詳細なコメントを追加しました
  • そして、それらのコメントを解析する処理を実装しました
  • 自然言語による指示が与えられたとき、charites-ai は、その指示に最も適した YAML ファイルを選択し、それを編集します
  • そして、charites が、編集された YAML ファイルを結合して、Mapbox style specification に従った json ファイルを生成します

charites-ai's People

Contributors

yuiseki avatar renovate[bot] avatar dependabot[bot] avatar naogify avatar

Stargazers

Kentaro Ozeki avatar  avatar Nobusuke IWASAKI avatar Ryan E avatar suzuki avatar  avatar tsukumi avatar  avatar Sailean514 avatar xyz avatar shilik avatar kei avatar Masamune Ishihara avatar kimiyuki shirai avatar Sorami Hisamoto avatar  avatar  avatar masayannuu avatar  avatar Ko Nagase avatar  avatar Lizosy avatar

Watchers

 avatar  avatar

charites-ai's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

devcontainer
.devcontainer/devcontainer.json
  • mcr.microsoft.com/devcontainers/typescript-node 1-20-bullseye
docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • node 20-slim
github-actions
.github/workflows/lint.yml
  • actions/checkout v4
  • actions/setup-node v4
  • ubuntu 22.04
.github/workflows/publish_gh_pages.yml
  • actions/checkout v4
  • actions/setup-node v4
  • peaceiris/actions-gh-pages v4
npm
package.json
  • @langchain/core ^0.2.0
  • @langchain/openai ^0.2.0
  • langchain ^0.2.0
  • maplibre-gl ^4.0.0
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-map-gl ^7.1.6
  • sharp ^0.33.2
  • @types/react ^18.2.37
  • @types/react-dom ^18.2.15
  • @typescript-eslint/eslint-plugin ^7.0.0
  • @typescript-eslint/parser ^7.0.0
  • @unvt/charites ^0.5.2
  • @vitejs/plugin-react ^4.2.0
  • concurrently ^8.2.2
  • eslint ^8.53.0
  • eslint-plugin-react-hooks ^4.6.0
  • eslint-plugin-react-refresh ^0.4.4
  • http-server ^14.1.1
  • ts-node ^10.9.2
  • typescript ^5.2.2
  • vite ^5.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

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.