Python#

与其他软件包一样,我们通过 pypi 提供简单直观的安装。

pip install argilla

软件包扩展#

我们的 Python 软件包需要一些额外的组件,这些组件可能会被下载以方便更自定义的工作流程。

  • pip install "argilla[listeners]"argilla.listeners-module 允许使用后台进程来监控数据集更改和调度作业。

  • pip install "argilla[server]"Argilla FastAPI 服务器 可以在本地部署以测试开发更改或自定义配置。

  • pip install "argilla[postgresql]":默认数据管理使用内置的 sqlite 完成,但可以替换为 PostgreSQL 数据库

  • pip install "argilla[integrations]":与其他库/框架的集成 可供使用。

  • pip install "argilla[tests]" 当作为开发者运行测试时,你可能需要第三方集成软件包来测试端到端工作流程。

develop 安装#

如果你想要 Argilla 的前沿版本,其中包含最新的更改和实验性功能,请按照以下步骤在你的终端中操作。请注意,此版本可能不稳定!

首先,你需要安装我们 Python 客户端的 develop 版本

 pip install -U git+https://github.com/argilla-io/argilla.git

然后,让我们的 Web 应用程序 develop 版本启动并运行的最简单方法是通过 docker-compose

注意

目前,我们仅通过 Docker 提供 Web 应用程序的 develop 版本。如果你想在不使用 Docker 的情况下运行 develop 分支的 Web 应用程序,我们建议你参考我们的开发设置

 # get the docker-compose yaml file
 mkdir argilla && cd argilla
 wget -O docker-compose.yaml https://raw.githubusercontent.com/argilla-io/argilla/develop/docker-compose.yaml
 # use the `develop` image of the argilla container instead of the latest
 sed -i 's/argilla:latest/argilla:develop/' docker-compose.yaml
 # start all services
 docker-compose up

如果你想使用原生的 Docker(并拥有自己的 Elasticsearch 实例运行),你可以只使用我们的 develop 镜像

docker run -p 6900:6900 -e "ARGILLA_ELASTICSEARCH=<your-elasticsearch-endpoint>" --network argilla-net --name argilla argilla/argilla-server:develop