Giter VIP home page Giter VIP logo

llm-npc-on-gcp's Introduction

Nuwa Project

Introduction

This project is an open source project that aiming to show the capability of Google Large Language Model. It includes two scenario: NPC powered by Google LLM and Knowledge Search powered by Google LLM.

GCP Services

This project uses PaLM API for generation, embedding and Vector Search (aka. Matching Engine) for embedding retrieval, and Bigtable for raw texts storage. The frontend and backend are hosted on Cloud Run.

  • Cloud Run
  • PaLM and embedding
  • Vector Search (Matching Engine)
  • Bigtable

Steps

  1. step into story folder, and use Colab to open the notebook. Run the notebook to create Vector Search and Bigtable, and transform the story texts into embedding and store them into Vector Search for later retrieval.

  2. Build docker image based on Dockerfile in backend folder

  3. Push the docker image to Artifact Registry

gcloud auth configure-docker
docker push $IMAGE_URI
  1. Create Cloud Run and deploy the docker image to Cloud Run
gcloud run deploy SERVICE_NAME --image IMAGE_URL
  1. Get backend server url from Cloud Run, configure it in app.py in frontend folder. And create a Cloud Run job using same steps as above.

Data

Data are configured in content folder. You should configure:

  • world.txt: world settings
  • new_hero_list_en.json: hero bio
  • hero_name.txt: hero list
  • hero.txt: hero list that will be requested from frontend
  • story/story.txt: story background
  • pre_conversation_chat/Jackie_Welles.json: talking style
  • pre_conversation/Jackid_Welles.json: talking styles in another format

Currently the data is open source CyberPunk 2047, You can change it to your own data.

llm-npc-on-gcp's People

Contributors

thuliusj avatar

Watchers

 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.