Important
This repository has been archived and is no longer maintained. If you are looking for the latest version of the Argilla server, please visit the Argilla mono repo, code for Argilla server is located at argilla-server folder.
Argilla is a collaboration platform for AI engineers and domain experts that require high-quality outputs, full data ownership, and overall efficiency.
This repository only contains developer info about the backend server. If you want to get started, we recommend taking a look at our main repository or our documentation.
Are you a contributor or do you want to understand what is going on under the hood, please keep reading the documentation below.
argilla-server is using argilla repository as submodule to build frontend statics so when cloning use the following command:
git clone --recurse-submodules git@github.com:argilla-io/argilla-server.gitIf you already cloned the repository without using --recurse-submodules you can init and update the submodules with:
git submodule update --remote --recursive --initImportant
By default argilla submodule is using develop branch so the previous command will get the latest commit from that branch.
When doing a release we should change argilla submodule to use an specific tag. In the following example we are setting tag v1.22.0:
cd argilla
git fetch --tags
git checkout v1.22.0Note
You should see some changes on the argilla-server root folder where the subproject commit is now changed to the one from the tag version. Feel free to commit these changes.
By default all commands executed with pdm run will get environment variables from .env.dev except command pdm test that will overwrite some of them using values coming from .env.test file.
These environment variables can be overrided if necessary so feel free to defined your own ones locally.
pdm cliBy default a SQLite located at ~/.argilla/argilla.db will be used. You can create the database and run migrations with the following custom PDM command:
pdm migrateA SQLite database located at ~/.argilla/argilla-test.db will be automatically created to run tests. You can run the entire test suite using the following custom PDM command:
pdm testBefore running Argilla development server we need to build the frontend static files. Node version 18 is required for this action:
brew install node@18After that you can build the frontend static files:
./scripts/build_frontend.shAfter running the previous script you should have a folder at src/argilla_server/static with all the frontend static files successfully generated.
pdm server