Giter Club home page Giter Club logo
title
Start

Hal9: Create and Share Generative Apps

License: MIT Hal9 PyPi Downloads jsDelivr hits (GitHub) GitHub star chart

Create and deploy generative (LLMs and diffusers) applications (chatbots and APIs) in seconds.

  • Open: Use any model (OpenAI, Llama, Groq, MidJourney) and any library like (LangChain, DSPy).
  • Intuitive: No need to learn app frameworks (Flask), simply use input() and print(), or write file to disk.
  • Scalable: Engineers can integrate your app with scalable technologies (Docker, Kubernetes, etc)
  • Powerful: Using an OS process (stdin, stdout, files) as our app contract, enables long-running agents, multiple programming languages, and complex system dependencies.

Focus on AI (RAG, fine-tuning, alignment, training) and skip engineering tasks (frontend development, backend integration, deployment, operations).

Getting started

Create and share a chatbot in seconds by running the following commands:

pip install hal9

hal9 create chatbot
hal9 deploy chatbot

To customize further, read the following sections.

Creation

By default hal9 create we will use the OpenAI template, you can choose different ones as follows:

hal9 create my-chatbot --template openai
hal9 create my-chatbot --template groq

A template provides ready to use code with specific technologies and use cases. If you already have code, you can skip this step.

Development

To make changes to your project, open my-chatbot/ in your IDE and modify my-chatbot/app.py.

You can then run your project as follows:

cd my-chatbot

pip install -r requirements.txt

export OPENAI_KEY=YOUR_OPENAI_KEY

If you customized your template with --template make sure to set the correct key, for example export GROQ_KEY=YOUR_GROQ_KEY.

You can then run your application locally with:

hal9 run .

or

cd ..
hal9 run my-chatbot

This command is just a convenience wrapper over python app.py

Deployment

The deploy command will prepare for deployment your generative app.

For example, you can prepare deployment as a generative app (Hal9), an API (Flask), a data app (Streamlit), or a container (Docker).

hal9 deploy my-chatbot --target hal9
hal9 deploy my-chatbot --target docker

Each command is tasked with preparing the deployment of your project folder. For example, --target docker will create a Dockerfile file that gets this project ready to run in cloud containers.

For personal use, --target hal9 supports a free tier at hal9.com; enterprise support is also available to deploy with --target hal9 --url hal9.yourcompany.com

hal9.ai's Projects

awesome-dataviz icon awesome-dataviz

:chart_with_upwards_trend: A curated list of awesome data visualization libraries and resources.

dspy icon dspy

Stanford DSPy: The framework for programming with foundation models

hal9 icon hal9

Hal9 — Create and Share Generative Apps

iobind icon iobind

Define inputs and outputs in python

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.