{"id":18806654,"url":"https://github.com/lefred/oci-genai-hw","last_synced_at":"2025-06-23T14:38:11.935Z","repository":{"id":247724784,"uuid":"826674527","full_name":"lefred/oci-genai-hw","owner":"lefred","description":"OCI GenAI with MySQL HeatWave - demo","archived":false,"fork":false,"pushed_at":"2024-07-10T12:36:07.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T08:12:28.545Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"upl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lefred.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-10T06:53:37.000Z","updated_at":"2024-09-05T06:40:02.000Z","dependencies_parsed_at":"2024-11-07T22:49:18.986Z","dependency_job_id":"a448f235-8fbd-4acd-8473-8385ea37e7b2","html_url":"https://github.com/lefred/oci-genai-hw","commit_stats":null,"previous_names":["lefred/oci-genai-hw"],"tags_count":0,"template":false,"template_full_name":"oracle-devrel/repo-template","purl":"pkg:github/lefred/oci-genai-hw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Foci-genai-hw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Foci-genai-hw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Foci-genai-hw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Foci-genai-hw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lefred","download_url":"https://codeload.github.com/lefred/oci-genai-hw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefred%2Foci-genai-hw/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261495944,"owners_count":23167404,"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":[],"created_at":"2024-11-07T22:49:15.193Z","updated_at":"2025-06-23T14:38:11.907Z","avatar_url":"https://github.com/lefred.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OCI GenAI and MySQL HeatWave Demo\n\n[![License: UPL](https://img.shields.io/badge/license-UPL-green)](https://img.shields.io/badge/license-UPL-green) [![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=oracle-devrel_test)](https://sonarcloud.io/dashboard?id=oracle-devrel_test)\n\n\n## Introduction\n\nMySQL HeatWave supports VECTOR datatype and functions like STRING_TO_VECTOR() and VECTOR_DISTANCE() allowing you to store vectors from embeddings existing data stored in your DB System.\n\nThe embeddings, prompt, and answer can be generated using the OCI GenAI service.\n\nThe code proposed in this repository illustrates the blog post related to OCI GenAI, MySQL HeatWave Vector capabilities to query WordPress content.\n\n\n## Getting Started\n\nYou need to edit the code to provide the credentials to your OCI account and\nMySQL HeatWave DB System.\n\n### Prerequisites\n\nYou need:\n* an OCI account\n* a MySQL HeatWave DB System 9.x\n* a compute instance or access to your DB System (bastion, LB, ...)\n* Python \u003e= 3.9\n\nYou also need to create a table to save your embeddings:\n\n```\ncreate table wp_embeddings (\n   id bigint unsigned auto_increment,\n   content varchar(4000), \n   vec vector(1024), \n   wp_post_id bigint unsigned, \n   primary key(id)\n);\n```\n## URLs\n* Nothing at this time\n\n## Contributing\n\u003c!-- If your project has specific contribution requirements, update the\n    CONTRIBUTING.md file to ensure those requirements are clearly explained. --\u003e\n\nThis project welcomes contributions from the community. Before submitting a pull\nrequest, please [review our contribution guide](./CONTRIBUTING.md).\n\n## Security\n\nPlease consult the [security guide](./SECURITY.md) for our responsible security\nvulnerability disclosure process.\n\n## License\nCopyright (c) 2024 Oracle and/or its affiliates.\n\nLicensed under the Universal Permissive License (UPL), Version 1.0.\n\nSee [LICENSE](LICENSE.txt) for more details.\n\nORACLE AND ITS AFFILIATES DO NOT PROVIDE ANY WARRANTY WHATSOEVER, EXPRESS OR IMPLIED, FOR ANY SOFTWARE, MATERIAL OR CONTENT OF ANY KIND CONTAINED OR PRODUCED WITHIN THIS REPOSITORY, AND IN PARTICULAR SPECIFICALLY DISCLAIM ANY AND ALL IMPLIED WARRANTIES OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.  FURTHERMORE, ORACLE AND ITS AFFILIATES DO NOT REPRESENT THAT ANY CUSTOMARY SECURITY REVIEW HAS BEEN PERFORMED WITH RESPECT TO ANY SOFTWARE, MATERIAL OR CONTENT CONTAINED OR PRODUCED WITHIN THIS REPOSITORY. IN ADDITION, AND WITHOUT LIMITING THE FOREGOING, THIRD PARTIES MAY HAVE POSTED SOFTWARE, MATERIAL OR CONTENT TO THIS REPOSITORY WITHOUT ANY REVIEW. USE AT YOUR OWN RISK. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Foci-genai-hw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flefred%2Foci-genai-hw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefred%2Foci-genai-hw/lists"}