wren-ai-service/README.md
Please read the documentation here to understand the concepts of Wren AI Service.
Python: Install Python 3.12.*
pyenv to manage Python versionsPoetry: Install Poetry 1.8.3
curl -sSL https://install.python-poetry.org | python3 - --version 1.8.3
Just: Install Just command runner (version 1.36 or higher)
Install Dependencies:
poetry install
Generate Configuration Files:
just init
This creates both .env.dev and config.yaml. Use just init --non-dev to generate only config.yaml.
For Windows, add the line
set shell:= ["bash", "-cu"]at the start of the Justfile.
Configure Environment:
.env.dev to set environment variablesconfig.yaml to configure components, pipelines, and other settingsSet Up Development Environment (optional):
Install pre-commit hooks:
poetry run pre-commit install
Run initial pre-commit checks:
poetry run pre-commit run --all-files
Run Tests (optional):
just test
Start Required Containers:
just up
Launch the AI Service:
just start
Access the Service:
http://WREN_AI_SERVICE_HOST:WREN_AI_SERVICE_PORT (default: http://localhost:5556)http://WREN_UI_HOST:WREN_UI_PORT (default: http://localhost:3000)Stop the Service: When finished, stop the containers:
just down
This setup ensures a consistent development environment and helps maintain code quality through pre-commit hooks and tests. Follow these steps to get started with local development of the Wren AI Service.
For a comprehensive understanding of how to evaluate the pipelines, please refer to the evaluation framework. This document provides detailed guidelines on the evaluation process, including how to set up and run evaluations, interpret results, and utilize the evaluation metrics effectively. It is a valuable resource for ensuring that the evaluation is conducted accurately and that the results are meaningful.
DATASET_NAME in .env.devtests/locust/config_users.jsonjust up to start the docker containersjust start to start the ai servicejust load-testThank you for investing your time in contributing to our project! Please read this for more information!