Hi. I found in source code a lot of "generated" code. How can I re generate it again ?
To regenerate the "generated" code in Phoenix (such as TypeScript types and API interfaces), run the codegen script after updating the OpenAPI schema. In the phoenix-client directory, execute: LBKSpnpm run generateLBKSThis uses openapi-typescript to generate code from schemas/openapi.json and outputs it to src/__generated__/api/v1.ts. Always commit the updated generated code if there are changes. See Development Guide for @arizeai/phoenix-client for details.Would you like more detail on regenerating code for other parts of the project?Sources:
- Development Guide for @arizeai/phoenix-client
馃挕聽Hint: Mention RunLLM in the thread for followups.
How generate ui, in app directory
It seems likely that to generate (build) the UI in the app directory, you should first install dependencies with pnpm install, then run the build script with: LBKSpnpm run buildLBKSThis compiles the JavaScript, CSS, and GraphQL queries, and scaffolds the static assets for the Phoenix UI. For development with hot reloading, run: LBKSpnpm run devLBKSYou must run the backend Python server as well, since the UI is served via the backend. See app/README.md.Would you like step-by-step setup instructions?Sources:
- app/README.md
馃挕聽Hint: Mention RunLLM in the thread for followups.
My understanding is that the app/src/pages/settings/__generated__ directory contains code generated by tools like Relay or GraphQL codegen, based on your GraphQL schema and queries. To regenerate this code, you typically run the Relay compiler or the relevant codegen script defined in the project.Would you like more detail on the exact command or setup for regenerating these files?Sources:
- https://github.com/Arize-ai/phoenix/pull/1306
- https://github.com/Arize-ai/phoenix/blob/main/app/src/pages/settings/generated/settingsDataPageLoaderQuery.graphql.ts
馃挕聽Hint: Mention RunLLM in the thread for followups.
To regenerate app/src/pages/settings/__generated__/settingsDataPageLoaderQuery.graphql.ts, you need to run the Relay compiler in the app directory. This is typically done with: LBKSpnpm run buildLBKSor, for just GraphQL codegen: LBKSpnpm relayLBKSif such a script exists in package.json. This will recompile all GraphQL queries and update the __generated__ files. See app/README.md.Would you like step-by-step instructions for setting up and running the Relay compiler?Sources:
- app/README.md
馃挕聽Hint: Mention RunLLM in the thread for followups.
Hi Andrei, I believe the bot here is correct. Those __generated__ files under app/src/pages/... are created by Relay, which compiles all the GraphQL queries in the app against the local schema. If you鈥檝e changed a query or updated the GraphQL schema, you can regenerate everything with just pnpm relay or to run the build with the full build set up, it's pnpm run build I think if you only modified one query, it鈥檚 fine to just rerun the compiler; it鈥檒l detect and update the affected files automatically Could you try this out and let me know if it resolves the issue?
