{"id":20718229,"url":"https://github.com/jerryblessed/gemini_ibtros","last_synced_at":"2026-04-19T08:32:02.772Z","repository":{"id":263215055,"uuid":"885537814","full_name":"Jerryblessed/gemini_IBTROS","owner":"Jerryblessed","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-17T22:34:04.000Z","size":24111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T07:45:54.101Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jerryblessed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-11-08T19:30:06.000Z","updated_at":"2025-02-17T22:34:08.000Z","dependencies_parsed_at":"2025-03-11T07:42:29.877Z","dependency_job_id":"de3a47dd-5629-489c-989d-d3400526baaa","html_url":"https://github.com/Jerryblessed/gemini_IBTROS","commit_stats":null,"previous_names":["jerryblessed/gemini_ibtros"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Jerryblessed/gemini_IBTROS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerryblessed%2Fgemini_IBTROS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerryblessed%2Fgemini_IBTROS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerryblessed%2Fgemini_IBTROS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerryblessed%2Fgemini_IBTROS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jerryblessed","download_url":"https://codeload.github.com/Jerryblessed/gemini_IBTROS/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jerryblessed%2Fgemini_IBTROS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000204,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"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":[],"created_at":"2024-11-17T03:12:53.014Z","updated_at":"2026-04-19T08:32:02.756Z","avatar_url":"https://github.com/Jerryblessed.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IBTROS Application Setup and Usage\n\nThe IBTROS application is divided into two main components: IBTROS_Telegram and IBTROS-Splunk-BigQuery-Fraud-Detection.\n\n\n### Natural language with Fraud (Anomaly) detection using Splunk at pilot side \n![High Level Architecture](shuttle_1.png)\n| ![Image 1](shuttle_3.png) | ![Image 2](shuttle_4.png) |\n|-------------------------|------------------------|\n| Converse naturally with prompt        | Get response from db  |\n\n![High Level Architecture](FD.png)\n\n\n\n## Setup Instructions\n\n### Clone repository\n\n```bash \ngit clone https://github.com/Jerryblessed/gemini_IBTROS.git\n```\n\n### Navigate to the IBTROS_Telegram Directory:\n```bash \ncd ./IBTROS_telegram\n```\n\n### Run the Core Application:\n```bash \npython core.py\n```\n\n##  Gemini 1.5 Feature:\n\n###  The Gemini 1.5 feature can be found in worker.py under the method definition:\n```bash \ndef __order_menu(self):\n```\nThe method is called in the core.py file, in the method definition:\n   \n\n# Fraud Detection with Splunk and BigQuery\n\nThanks to google cloud big query and splunk, we can do anomaly detection on financial transactions.\n\nThis project shows how customers can use Splunk and GCP BigQuery to do anomaly detection on financial transactions by ingesting data, training the model, and detecting the fraudulent transactions. Data used is randomly generated sample data without PII.\n\nThis project assumes that you already have a Splunk instance and a GCP BigQuery table. The creation, maintenance, and deletion of these upstream resources are outside the scope of this project.\n\n### Fraud (Anomaly) Detection with Splunk \n![High Level Architecture](FD.png)\n\n### Results\n_might take few seconds to load the media_\n![Results](FD.gif)\n\n### Generate some data\n```bash \n# start_date = '2023-01-01'\n# end_date = '2023-03-31'\npython datagen.py\n```\n\n### Load generated data to BigQuery\n![](load_data.gif)\n\n### Create Model for Anomaly Detection in BigQuery\nExecute the ```create_model.sql``` script in BigQuery\n\n### Generate some more data that will be ingested to Splunk\n```bash \n# start_date = '2023-04-01'\n# end_date = '2023-04-3'\npython datagen.py\n```\n\n### Start ingesting generated data to Splunk using REST APIs\n```bash \npython splunk-ingest.py\n# This ingest to main index\n# this will ingest one record every 5 seconds\n```\n\n### Use Model to detect anomalies on new data\nWhile splunk-ingest.py is running, Open ```Splunk.ipynb``` and run the cells.\n``` \n 0. Create index named 'anomalies' in Splunk and update the token in the notebook\n 1. Create a Search Job and Get SID from Splunk ( adjust time range in the notebook)\n 2. Get Results for the SID\n 3. Detect Anomaly using our trained model inBigQuery \n 4. Post new detected anomalies to Splunk\n``````\nResults\n\n![Results](FD.gif)\n\n### License\nCopyright 2024 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryblessed%2Fgemini_ibtros","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjerryblessed%2Fgemini_ibtros","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjerryblessed%2Fgemini_ibtros/lists"}