Globy
Official repo of Globy runtime and dependencies.
Globy Runtime
Microservices for running Globy.
Running Globy Locally
This will start all required backend services for Globy.
unset GLOBY_NOOP # Use .env file to set this variable when using docker
docker-compose up --build
To also run optional services, use the following command:
unset GLOBY_NOOP # Use .env file to set this variable when using docker
docker-compose --profile optional up --build
Testing Individual Services When testing individual services without Docker, make sure to include the globy_core package in your PYTHONPATH to avoid re-installing this package in your local environment:
# Change the path below accordingly
export PYTHONPATH=$(pwd)/src # While in git repo root directory
# Example of running tests for globy-hello
pytest apps/globy-hello
Running Globy in AWS
TODO
Linting and Code Formatting
Only use black to format code, to maintain consistency.
# pip install black
black "</path/to/code>"
# Format everything
black .
Other Make sure globy_core is in your PYTHONPATH (see above).
Generate Chat Conversations with globy-hello
# Generate conversation of all types
python3 apps/globy-hello/conversation-generator.py
# You can also use GLOBY_NOOP here to test without using an LLM backend
GLOBY_NOOP=1 python3 apps/globy-hello/conversation-generator.py
Test the Chat Conversation Using globy-hello-api
python3 apps/globy-hello-api/chat_test.py
Test Generation of a Globy Site
Copy
pytest apps/globy-site-inferencer/inferencer_test.py -s
Or with NOOP:
Copy
GLOBY_NOOP=1 pytest apps/globy-site-inferencer/inferencer_test.py -s