Git Product home page Git Product logo

Assistance

The Python AI assistance library.

Installation

WASI Python Sandbox

Install wasmtime:

curl https://wasmtime.dev/install.sh -sSf | bash

Download python.wasm:

wget https://github.com/assistancechat/assistance/releases/download/python-wasm/python-3.11.1.wasm -O ~/.assistance/wasm/python.wasm

Test that it works:

wasmtime \
  --env PYTHONPATH=/assistance:/assistance/.venv/lib/python3.11/site-packages \
  --mapdir /assistance::$HOME/git/assistance \
  ~/.assistance/wasm/python.wasm \
  -- -c "print('hello world!')"

Acknowledgment to https://wasmlabs.dev/articles/python-wasm32-wasi/ where much of the above was inspired from.

Server Hosting

Supervisor

First time setup of supervisor:

sudo ln -s $HOME/git/assistance/dev/server/supervisor.conf /etc/supervisor/conf.d/assistance.conf
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl status assistance

Restart supervisorctl

sudo supervisorctl restart assistance

Nginx

First time setup of nginx:

sudo ln -s $HOME/git/assistance/dev/server/nginx-site.conf /etc/nginx/sites-enabled/assistance
sudo nginx -s reload

Notes

Dev Tooling

Poetry Python version

poetry env use $(which python)

Sync data locally

rsync -r assistance:~/.assistance/* ~/.assistance/
rsync -r server:~/.assistance/* ~/.assistance/

Jupyter

poetry run python -m ipykernel install --user --name assistance
jupyter lab --ip=10.0.0.163

assistancechat's Projects

assistancechat doesnโ€™t have any public repositories yet.

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.