{"id":15478816,"url":"https://github.com/codekie/snow_report_mapper","last_synced_at":"2025-03-28T14:15:50.177Z","repository":{"id":52242264,"uuid":"520852446","full_name":"codekie/snow_report_mapper","owner":"codekie","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-04T14:12:12.000Z","size":27,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-02T14:35:07.571Z","etag":null,"topics":["rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codekie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-08-03T11:26:55.000Z","updated_at":"2022-10-09T20:15:06.000Z","dependencies_parsed_at":"2022-08-30T18:21:58.846Z","dependency_job_id":null,"html_url":"https://github.com/codekie/snow_report_mapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Fsnow_report_mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Fsnow_report_mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Fsnow_report_mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekie%2Fsnow_report_mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekie","download_url":"https://codeload.github.com/codekie/snow_report_mapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246042012,"owners_count":20714147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust"],"created_at":"2024-10-02T04:07:46.851Z","updated_at":"2025-03-28T14:15:50.151Z","avatar_url":"https://github.com/codekie.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ServiceNow report mapper\n\nThis crate creates a OpenAI fine-tuning file to enable the model to categorize ServiceNow incidents into assignment\ngroups.\n\n# Usage\n\n ```\n USAGE:\n     snow_report_mapper [OPTIONS] \u003cFILE_INCIDENTS\u003e \u003cFILE_ASSIGNMENT_GROUPS\u003e \u003cFILE_OUTPUT\u003e\n\n ARGS:\n     \u003cFILE_INCIDENTS\u003e            Filepath to the SNOW incidents export\n     \u003cFILE_ASSIGNMENT_GROUPS\u003e    Filepath to the SNOW export of the assignment groups\n     \u003cFILE_OUTPUT\u003e               Filepath where the mapped training file should be stored to\n\n OPTIONS:\n     -h, --help       Print help information\n     -s, --stats      Prints additional statistics\n     -v, --verbose    Verbose output\n     -V, --version    Print version information\n ```\n\n To get this help, run:\n\n ```bash\n $ snow_report_mapper --help\n ```\n\nFor more details, check the rust documentation of this crate.\n\n# Fine tune the model\n\nCheck the [official docs](https://beta.openai.com/docs/guides/fine-tuning) on how to fine-tune the model.\n\nBefore the generated files can be used, they have to be mapped to the `JSONL` format. For that it's recommended to use\nthe official [utility tools](https://beta.openai.com/docs/guides/fine-tuning/cli-data-preparation-tool):\n\n```bash\n$ openai tools fine_tunes.prepare_data -f \u003cLOCAL_FILE\u003e\n```\n\nIt also shows suggestions if there are any and provides you with the proper command, to actual fine tune the model, in\nthe end.\n\n## Troubleshooting\n\nIf you encounter an error message like:\n\n```\nThe number of classes in file-7zfLf0xUhfTomlH7XPs5OGUL does not match the number of classes specified in the\nhyperparameters\n```\n\nAfter triggering the fine tuning job, you can omit the parameters `--compute_classification_metrics` and\n`--classification_n_classes` (additionally to its numeric value). You will lose the\n[Classification specific metrics](https://beta.openai.com/docs/guides/fine-tuning/classification-specific-metrics)\nbut at least it works then.\n\n# Motivation\n\nThe main reasons why I've built this, is to learn Rust and to get a bit more familiar with OpenAI. As a\n\"starter project\" I've decided to train a model so that it's able to determine an appropriate assignment group for a\nServiceNow incident, based on the incident title. In order to that, I need training data in the appropriate format.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekie%2Fsnow_report_mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekie%2Fsnow_report_mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekie%2Fsnow_report_mapper/lists"}