Anyone else experiencing this issue when building phoenix from source?
I build the app using pnpm run build
Then use hatch build to build the package
I install it using pip install arize_phoenix-4.4.2.tar.gz
But when I try from phoenix.evals import run_eval It is unable to resolve the import
Upon exploring the installed package in my environment, it looks like some additional build details need to be added for getting evals?
Please let me know what the best course of action is
Hi Nabeegh A. phoenix.evals is a sub-package of arize-phoenix. so you need to run pip install arize-phoenix-evals as well.
But I am building from source. An idea how I can build the sub package as well?
I get these two when using hatch build
It's a separate package that's just mounted on the same phoenix namespace as so (https://github.com/Arize-ai/phoenix/tree/main/packages/phoenix-evals)
so it's packaged outside of arize-phoenix
Mikyo Don't know why it is hard to explain but I kind of figured it out. Problem: I am building phoenix from source and I install the package using the tar.gz file. Evals module is unavailable. I get that it is a sub-package but for some reason, we just get a file with no extension called evals when we install it like that. Solution: I navigated to the phoenix-evals folder and used hatch build to build the evals package. Then install it. But before installing it, I have to delete that file with no extension. Is there a better way to do this?
Hmm, I'm not 100% sure. If you want to package everything together you could try just putting it as a dependency here? https://github.com/Arize-ai/phoenix/blob/0bfbb51d2825177537c30c735fe209e72cb29196/pyproject.toml#L59 We have it setup as an extra https://github.com/Arize-ai/phoenix/blob/0bfbb51d2825177537c30c735fe209e72cb29196/pyproject.toml#L88 So we support installing it via pip install `arize-phoenix[evals] ` but I'd assume that doesn't work with tar.gz
