Ensure you have Python version 3.8.1 or higher installed.
To install the necessary package, run the following command:
pip install chatsky-ui
You may add a .env
file in the root directory and configure any of following environment variables. The values shown below are the default ones.
HOST=0.0.0.0
PORT=8000
CONF_RELOAD=False
LOG_LEVEL=info
GRACEFUL_TERMINATION_TIMEOUT=2 # Waiting for process to stop
PING_PONG_TIMEOUT=0.5 # Waiting the process to response before it mark it as still `running`
# For tests:
BUILD_COMPLETION_TIMEOUT=10
RUN_RUNNING_TIMEOUT=5
💡 You are encouraged to run chatsky.ui --help
to explore the available CLI options.
Initialize your project by running:
chatsky.ui init
The chatsky.ui init
command will start an interactive cookiecutter
process to create a project based on a predefined template. The resulting project will be a simple example template that you can customize to suit your needs.
To start your project, use the following command:
chatsky.ui run_app --project-dir <PROJECT-SLUG> # Replace <PROJECT-SLUG> with the slug you specified during initialization
You can refer to the documentaion to dig into the application code understanding.