Kratos - Since that requires you changing the Phoenix code, you will first have to fork the Phoenix repository from github.com/arize-ai/phoenix. Once you do, you can explore the Development.md file on instruction of how to setup the project locally. Once that is done, you can then go to changing the code.
Afterwards, you will have to create a new build of the system. First in the phoenix/app, you can create a build using pnpm run build Then in the main folder, you can use hatch build to build the whole system.
You can then build a new docker image, or install the built python package in your application.