{"id":19187468,"url":"https://github.com/materight/cooking-assistant","last_synced_at":"2025-10-28T05:41:27.016Z","repository":{"id":93569067,"uuid":"480042320","full_name":"materight/cooking-assistant","owner":"materight","description":"A conversational agent developed with Rasa to help searching and preparing food recipes.","archived":false,"fork":false,"pushed_at":"2022-08-11T08:30:25.000Z","size":2451,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T03:26:26.023Z","etag":null,"topics":["human-machine-dialogue","machine-learning","nlu","rasa"],"latest_commit_sha":null,"homepage":"","language":"Python","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/materight.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-10T14:29:27.000Z","updated_at":"2023-10-29T20:41:03.000Z","dependencies_parsed_at":"2023-03-21T01:02:41.582Z","dependency_job_id":null,"html_url":"https://github.com/materight/cooking-assistant","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/materight/cooking-assistant","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materight%2Fcooking-assistant","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materight%2Fcooking-assistant/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materight%2Fcooking-assistant/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materight%2Fcooking-assistant/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/materight","download_url":"https://codeload.github.com/materight/cooking-assistant/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/materight%2Fcooking-assistant/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281391764,"owners_count":26492903,"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","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["human-machine-dialogue","machine-learning","nlu","rasa"],"created_at":"2024-11-09T11:19:09.707Z","updated_at":"2025-10-28T05:41:27.009Z","avatar_url":"https://github.com/materight.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cooking Assistant with Rasa\nA *conversational agent* developed with [Rasa](https://rasa.com/) to help searching and preparing food recipes. Check the [report](report.pdf) for more details.\n\nThe NLU data is generated with [Chatette](https://github.com/SimGus/Chatette) and the recipes are provided by [justthedarnrecipe.com](https://justthedarnrecipe.com/).\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"img/screen1.jpg\" alt=\"Screenshot 1\" width=\"250\"\u003e\n    \u003cimg src=\"img/screen2.jpg\" alt=\"Screenshot 1\" width=\"250\"\u003e\n    \u003cimg src=\"img/screen3.jpg\" alt=\"Screenshot 1\" width=\"250\"\u003e\n\u003c/div\u003e\n\n\n## Get started\n- Install the required dependencies and models:\n    ```shell\n    pip install -r requirements.txt\n    python -m spacy download en_core_web_md\n    ```\n- Regenerate the NLU data and train the Rasa pipeline:\n    ```shell\n    python generate_data.py\n    python -m rasa train\n    ```\n- In two separate terminals, run the actions server and the trained model:\n    ```shell\n    python -m rasa run actions\n    python -m rasa shell\n    ```\n\n\n## Run on Google Assistant\n- Setup a new project on the [Google actions console](https://console.actions.google.com/).\n- In two separate terminals, run the actions server and the trained model:\n    ```shell\n    python -m rasa run actions\n    python -m rasa run --enable-api -p 5004\n    ```\n- Install [NGrok](https://ngrok.com/) and run `ngrok http 5004` to expose the local Rasa API server.\n- Copy the NGrok url in the two `url` fields in `action.json` as `{url}/webhooks/google_assistant/webhook`.\n- Install the [Google actions CLI](https://developers.google.com/actions/tools/gactions-cli) and run `gactions update --action_package action.json --project {PROJECT_ID}` to deploy on Google Assistant using the project id created in step 1.\n- Run `gactions test --action_package action.json --project {PROJECT_ID}` to enable testing of your action.\n\n## Hyperparameter optimization\nTo run an hyperparameter search:\n\n- Change the hyperparameters to use in `config.hyperopt.yml`, under the `hyperparams` key.\n- Run the `python hyperopt.py -n [N_ITERATIONS]` script.\n\nFor each configuration 3 runs will be executed, using different held-out fractions of the training data for evaluation. The configurations files, the trained models and the final evaluation results can be then found in the `hyperopts` directory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateright%2Fcooking-assistant","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmateright%2Fcooking-assistant","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmateright%2Fcooking-assistant/lists"}