{"id":13935571,"url":"https://github.com/datastaxdevs/workshop-ai-as-api","last_synced_at":"2025-04-13T08:48:05.885Z","repository":{"id":70390708,"uuid":"457047432","full_name":"datastaxdevs/workshop-ai-as-api","owner":"datastaxdevs","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-05T16:27:41.000Z","size":13141,"stargazers_count":133,"open_issues_count":0,"forks_count":55,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-27T03:34:29.864Z","etag":null,"topics":["astradb","fastapi","pandas","python"],"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/datastaxdevs.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}},"created_at":"2022-02-08T18:05:16.000Z","updated_at":"2024-11-18T21:10:08.000Z","dependencies_parsed_at":"2023-07-14T21:45:18.362Z","dependency_job_id":null,"html_url":"https://github.com/datastaxdevs/workshop-ai-as-api","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/datastaxdevs%2Fworkshop-ai-as-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fworkshop-ai-as-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fworkshop-ai-as-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/datastaxdevs%2Fworkshop-ai-as-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/datastaxdevs","download_url":"https://codeload.github.com/datastaxdevs/workshop-ai-as-api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688190,"owners_count":21145762,"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":["astradb","fastapi","pandas","python"],"created_at":"2024-08-07T23:01:53.695Z","updated_at":"2025-04-13T08:48:05.862Z","avatar_url":"https://github.com/datastaxdevs.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Workshop: AI as an API (W026)\n\n\u003c!-- Time: *50 minutes*. Difficulty: *Intermediate*. --\u003e\n\n**The full course, including hands-on instructions, is on [DataStax Academy](https://datastax.academy/course/view.php?id=10). There,\nyou will learn how to work in the Interactive Lab**.\n\n_For best results: (1) Check the course [start page](https://datastax.academy/course/view.php?id=10)._\n_(2) Enroll in the course. (3) Start **learning** and **practicing**!_\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://datastax.academy/course/view.php?id=10\"\u003e\n\u003cimg src=\"images/launch-course.png?raw=true\" width=\"200\" alt=\"Start the course on DataStax Academy\" /\u003e        \n\u003c/a\u003e\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\n\u003ca href=\"https://gitpod.io/#https://github.com/datastaxdevs/workshop-ai-as-api\"\u003e\n\u003cimg src=\"images/launch-gitpod.png?raw=true\" width=\"200\" alt=\"Start the Interactive Lab on Gitpod\" /\u003e\n\u003c/a\u003e\n\u003c/p\u003e\n\n\n### Learn to build your own NLP text classifier and expose it as an API using the following technologies:\n\n\u003cimg src=\"images/workshop-cover.png?raw=true\" width=\"350\" align=\"right\" /\u003e\n\n- AI-based text analysis with Tensorflow/Keras;\n- Astra DB, a Database-as-a-Service built on Apache Cassandra®;\n- FastAPI, the high-performance Python framework for creating APIs;\n- Many useful Python libraries and packages including `pandas`, `pydantic`, `dotenv`, `sklearn`, `uvicorn`, and more.\n\n### During this hands-on workshop, you will:\n\n- prepare the labeled dataset for model training;\n- train the model to classify any input text;\n- export the trained model and test it interactively;\n- create your free NoSQL database for data storage;\n- set up and start an API exposing the classifier as a reusable class;\n- learn how to speed up the API with DB-based caching;\n- inspect how a streaming response is handled in the API.\n\n#### Prerequisites:\n\n- Familiarity with Python;\n- A Github account is required for the hands-on.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatastaxdevs%2Fworkshop-ai-as-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatastaxdevs%2Fworkshop-ai-as-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatastaxdevs%2Fworkshop-ai-as-api/lists"}