Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(web)🛠️: Refactor web app structure and routing #144

Merged
merged 11 commits into from
Nov 17, 2024

Conversation

ericmjl
Copy link
Owner

@ericmjl ericmjl commented Nov 17, 2024

  • Extract database operations into a separate module for better separation of concerns.
  • Create routers for logs and prompt versions to organize endpoint handling.
  • Update HTML templates to reflect new routing paths.

- Extract database operations into a separate module for better separation of concerns.
- Create routers for logs and prompt versions to organize endpoint handling.
- Update HTML templates to reflect new routing paths.
- Modify the get_prompt_functions to include the Request object and use TemplateResponse.
- Update the prompt_dropdown.html template to display version counts next to function names.
- Add count of versions next to each function name in dropdowns.
- Modify SQL queries to include count of prompt versions.
- Update HTML templates to display function names with their respective counts.
@ericmjl
Copy link
Owner Author

ericmjl commented Nov 17, 2024

Feeling good with progress:
image

…dency updates

- Add experiments router with endpoints for managing ML experiment runs.
- Update dependencies in app.py to include new modules and response classes.
- Refactor database session handling across routers for consistency.
- Integrate experiments data into the main index page for better user navigation.
- Retrieve and display prompt details based on prompt hash in experiment details.
- Update experiment details HTML to show prompt function names and hashes.
- Add backend support for querying prompt details in the experiments router.
- Include new test cases for the added functionality.
- Create a new Runs model to record experiment runs with metadata and data stored in JSON format.
- Integrate Runs model with the database upgrade process, ensuring it is created during database initialization.
- Refactor experiment details and list endpoints to use the new Runs model, improving data handling and removing redundant code.
- Update tests to use the Runs model directly, simplifying setup and improving test reliability.
- Create a new __init__.py file to serve as the top-level API for routers in the llamabot project.
…-multipart

- Reformat version constraints for consistency across various packages.
- Add python-multipart to dependencies in pyproject.toml.
- Change JSON columns to Text in Runs model to standardize data handling.
- Update SQLAlchemy query filter method for better compatibility.
- Modify test cases to serialize JSON data for consistency with new column types.
- Enhance documentation in experimentation_api notebook for clarity.
…meters

- Add required query parameters to the test_client.get call in test_debug_logs.
- Deleted the test_debug_logs function which tested the debug logs endpoint.
@ericmjl ericmjl merged commit 9af32c9 into main Nov 17, 2024
10 checks passed
@ericmjl ericmjl deleted the experimentation-ui branch November 17, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant