Giter Site home page Giter Site 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

cal.com icon cal.com

Scheduling infrastructure for absolutely everyone.

cheese icon cheese

Used for adaptive human in the loop evaluation of language and embedding models.

evals icon evals

Evals is a framework for evaluating OpenAI models and an open-source registry of benchmarks.

gmailjs-node-boilerplate icon gmailjs-node-boilerplate

A minimal extension which demonstrates how to create a extension with Gmail.JS and NodeJS-based bundling.

graphgpt icon graphgpt

Extrapolating knowledge graphs from unstructured text using GPT-3 ๐Ÿ•ต๏ธโ€โ™‚๏ธ

htmx icon htmx

</> htmx - high power tools for HTML

numba icon numba

NumPy aware dynamic Python compiler using LLVM

promptify icon promptify

Prompt Engineering | Use GPT or other prompt based models to get structured output. Join our discord for Prompt-Engineering, LLMs and other latest research

python-wasi icon python-wasi

Utilities for building CPython for the WASI platform

triton icon triton

Development repository for the Triton language and compiler

unsubscribe-gmail icon unsubscribe-gmail

Gmail Unsubscriber is a Google Apps Script for unsubscribing from unwanted newsletters and other bulk emails.

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.