• Stars
    star
    193
  • Rank 201,081 (Top 4 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The Genie open source kit for voice assistant (formerly known as Almond)

Genie

Build Status Coverage Status Dependency Status Language grade: JavaScript Discord Discourse status

This repository hosts Genie, a toolkit which allows you to quickly create new semantic parsers that translate from natural language to a formal language of your choice.

Genie was described in the paper:

Genie: A Generator of Natural Language Semantic Parsers for Virtual Assistant Commands
Giovanni Campagna (*), Silei Xu (*), Mehrad Moradshahi, Richard Socher, and Monica S. Lam
In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation (PLDI 2019), Phoenix, AZ, June 2019.

If you use Genie in any academic work, please cite the above paper.

Installation

Genie depends on additional libraries, including the ThingTalk library and the GenieNLP machine learning library. See doc/install.md for details and installation instructions.

License

This package is covered by the Apache 2.0 license. See LICENSE for details. Note that this package depends on several nodejs modules by third-parties, each with their own license. In particular, some modules might have licensing requirements that are more restrictive than Genie's. It is your responsability to comply with Genie's copyright license, as well as all licenses of included dependencies.

Reproducing The Results In Our Papers

To reproduce the machine learning results in Stanford papers that use Genie (including the PLDI 2019 paper and the ACL 2020 paper), please use the associated artifacts, available for download from our website. The artifact includes all the necessary datasets (including ablation and case studies), pretrained models and evaluation scripts. Please follow the instructions in the README file to reproduce individual experiments.

Using Genie

Genie Concepts

Genie is a synthesis-based tool to build dialogue agents. Genie is based on the Genie template language, which succintly defines a space of synthesized sentences. Genie can use the template language to generate a dataset, then sample a subset of sentences to paraphrase using crowdsourcing. Commonly, the template language is paired with a skill definition, entered in a repository like Thingpedia, which defines the APIs available to the dialogue agent.

A Turnkey Solution For Genie+Almond

A all-in-one solution to use Genie to extend ThingTalk with new skills and new templates is provided by almond-cloud. Please refer to its documentation for installation instructions.

After installation, administrators can create new natural language models, trigger automated training and deploy the trained models to any Almond system.

Manual Genie Usage

If one wants to avoid the complexity of setting up a database and web server, it is possible to invoke Genie manually from the command-line, and have it manipulate datasets stored as TSV/CSV files.

A number of tutorials are included in the doc/ folder, describing common Genie usage.

NOTE: Genie assumes all files are UTF-8, and ignores the current POSIX locale (LC_CTYPE and LANG enviornment varialbes). Legacy encodings such as ISO-8859-1 or Big5 are not supported and could cause problems.

Modifying ThingTalk

If you want to also extend ThingTalk (with new syntax or new features) you will need to fork and modify the library, which lives at https://github.com/stanford-oval/thingtalk. After modifying the library, you can use npm link to point the almond-cloud installation to your library. You must make sure that only one copy of the ThingTalk library is loaded (use npm ls thingtalk to check).

More Repositories

1

storm

An LLM-powered knowledge curation system that researches a topic and generates a full-length report with citations.
Python
11,955
star
2

WikiChat

WikiChat stops the hallucination of large language models by retrieving data from Wikipedia.
Python
965
star
3

genie-cloud

Genie As A Service and Thingpedia
JavaScript
295
star
4

genie-server

The home server version of Almond
JavaScript
268
star
5

suql

SUQL: Conversational Search over Structured and Unstructured Data with LLMs
Python
193
star
6

almond-gnome

The Almond Virtual Assistant, Linux desktop version
JavaScript
86
star
7

genienlp

GenieNLP: A versatile codebase for any NLP task
Python
84
star
8

thingtalk

The Programming Language of Virtual Assistants
TypeScript
84
star
9

wikidata-emnlp23

WikiSP, a semantic parser for Wikidata. WikiWebQuestions, a SPARQL-annotated dataset on Wikidata
Python
77
star
10

almond-dialog-agent

The Open Virtual Assistant
JavaScript
56
star
11

thingengine-core

A Modular, Powerful Virtual Assistant Engine
JavaScript
38
star
12

thingpedia-common-devices

Thingpedia interface code for commonly used devices
JavaScript
38
star
13

ovalchat

OVALChat is a customizable Web app aimed at conducting user studies with chatbots
TypeScript
27
star
14

almond-cmdline

Full-featured command-line version of Almond & ThingEngine
JavaScript
26
star
15

zero-shot-multiwoz-acl2020

Artifact associated with the paper "Zero-Shot Transfer Learning with Synthesized Data for Multi-Domain Dialogue State Tracking"
Makefile
24
star
16

schema2qa

Schema2QA Question Answering Dataset
Makefile
18
star
17

chainlite

LangChain + LiteLLM that works
Python
18
star
18

genie-parser

Neural Network Semantic Parser for Almond
Python
16
star
19

noora-v1

[ARCHIVED] A platform utilizing conversational AI to improve the social skills of individuals with ASD.
TypeScript
15
star
20

dialogues

A unified versatile interface for dialogue datasets
Python
15
star
21

node-pulseaudio

A fork of https://bitbucket.org/kayo/node-pulseaudio, which was unmantained. Home of pulseaudio2 npm module
C++
15
star
22

almond-android

The Almond Android App
C
12
star
23

almond-hassio-repository

Dockerfile
10
star
24

node-smtlib

Node.js wrappers for SMT-Lib 2.0
TypeScript
10
star
25

genie-client

C++
10
star
26

SPL

Semantic Parser Localizer (SPL) code repository
Python
9
star
27

thingpedia-api

Shared code for Thingpedia interfaces
TypeScript
8
star
28

noora

Using conversational AI to improve the social conversation of individuals with ASD.
TypeScript
7
star
29

genie-k8s

Kubernetes scripts to train models with Genie
Python
7
star
30

trade-dst

Jupyter Notebook
6
star
31

cs224v-fall2021

Makefile
6
star
32

pyGenieScript

A packaged GenieScript in Python
Python
5
star
33

diya

Make an API for things that don't have an API
JavaScript
5
star
34

almond-voice

A prototype voice interface for Almond, an open-source virtual assistant developed at Stanford.
TypeScript
5
star
35

ThingEngine

An open source platform for IoT rules that you can execute anywhere you want
5
star
36

almond-tokenizer

The tokenizer and preprocessor part of the Almond parser
Java
5
star
37

spinach

SPINACH: SPARQL-Based Information Navigation for Challenging Real-World Questions
5
star
38

genie-sdk

Genie skill development kit
Shell
4
star
39

pyalmond

Python client for the Almond API
Python
4
star
40

almond-bot

The Almond Bot Service.
TypeScript
4
star
41

consumer-queue

JavaScript
3
star
42

genie_open_text

Python
3
star
43

transparent-rpc

Automatic Proxy-based RPC for Node.js
TypeScript
3
star
44

CSP-DST

Code implementation for the paper "Contextual Semantic Parsing for Multilingual Task-Oriented Dialogues"
Python
3
star
45

cs294-homework-workdir

The workdir for cs294s/w homeworks
Makefile
3
star
46

oval-website

The new OVAL website
Astro
3
star
47

medxchange

Medical Data Exchange (MedXchange) platform
JavaScript
2
star
48

almond-enterprise

On-premise multi-user, single-profile Almond
JavaScript
2
star
49

thingpedia-discovery

Device discovery components for ThingPedia
JavaScript
2
star
50

query-validation

Server-side validation of query and body parameters for Express
TypeScript
2
star
51

project-cardiology

A virtual assistant, based on Almond, that helps doctors remind patients to track their blood pressure regularly.
JavaScript
1
star
52

thingpedia-demos

Demo, testing and mock devices for ThingPedia
JavaScript
1
star
53

node-libcanberra

Node.js bindings for libcanberra (event sound playing)
C++
1
star
54

thingpedia-cli

Command-line tools to interact with Thingpedia
JavaScript
1
star
55

gpt3-example

A simple example on how to use GPT-3 via the OpenAI API
Python
1
star
56

GenieScript-Python

Python
1
star
57

thingtalk-units

Unit conversion library from ThingTalk
TypeScript
1
star
58

slackmond

Almond-Slack bridge with multi-user support
JavaScript
1
star
59

cs224v-fall2022

Makefile
1
star
60

web-questions-wikidata

TypeScript
1
star
61

wikidata-scripts

Wikidata Scripts
JavaScript
1
star
62

thingpedia-client

Thingpedia client side libraries
JavaScript
1
star