What You Need:
AWS Account with Bedrock enabled
Laravel app
About 2 hours
Step 1: Enable Bedrock in AWS Console (5 mins)
1. Go to AWS Console → Search "Bedrock"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Hence this pinned gist. |
- Create an S3 Data Source
- Setup AOSS Vector Index and Configure BKB Access Permissions
- Configure Amazon Bedrock Knowledge Base and Synchronize it with Data Source
Amazon Bedrock Knowledge Bases (BKBs) provide a fully managed capability to implement RAG-based solutions. By integrating your own data — such as documents, manuals, and other domain-specific sources of information — into a knowledge base, you can improve the accuracy, relevance, and usefulness of model-generated responses. When a user submits a query, Amazon Bedrock Knowledge Bases search across the available data sources, retrieve the most relevant content, and pass this information to the foundation model to generate a more informed response.
Please make sure that you have enabled the following model access in Amazon Bedrock Console:
Amazon Titan Text Embeddings V2.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {_ as e, L as t} from "./index-4deec983.js"; | |
| import {a as n, C as i} from "./Controller-26bd1e9e.js"; | |
| import {S as s} from "./ScrollObserver-d0732a2c.js"; | |
| import {F as o} from "./index-bee741e4.js"; | |
| class r { | |
| constructor(e, t, n, i=!1) { | |
| const s = this | |
| , o = -1 !== document.location.search.toLowerCase().indexOf("debug=webgl"); | |
| s.canvas = e, | |
| s.gl = s.canvas.getContext("webgl", { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Can I Remove MySQL Binary Log Yes, as long as the data is replicated to Slave server, it’s safe to remove the file. It’s recommend only remove MySQL Binary Log older than 1 month. | |
| Besides, if Recovery of data is the main concern, it’s recommend to archive MySQL Binary Log. | |
| There are several ways to remove or clean up MySQL Binary Log, it’s not recommend to clean up the file manually, manually means running the remove command. | |
| Remove MySQL Binary Log with RESET MASTER Statement Reset Master statement is uses for new database start up during replication for Master and Slave server. This statement can be used to remove all Binary Log. | |
| To clean up Binary Log on Master Server |
For production:
- Invoices for the current month will be generated on the 1st of that month, or any day after that if onboarding a new agency/agent.
- Subscriptions will be valid until the last day of that month, unless suspended
For testing purposes:
- Billing period is set to 5 minutes
- Subscriptions expire from when the invoice is generated + 5 minutes
- Cron jobs will run every minute
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Route::get('/sample-csv-generation/{numberOfRows}', function (Request $request, $numberOfRows) { | |
| $faker = Faker\Factory::create(); | |
| $numberOfRows = (int) $numberOfRows; | |
| // Define the headers for the CSV file | |
| $headers = [ | |
| 'Content-Type' => 'text/csv', | |
| 'Content-Disposition' => 'attachment; filename="filename.csv"', | |
| ]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Function to add a new card for your customer. | |
| function sd_process_add_customer_card(){ | |
| $redirect = false; | |
| if ( isset( $_POST['action'] ) && $_POST['action'] == 'add_customer_card' && wp_verify_nonce( $_POST['stripe_nonce'], 'stripe-nonce' ) ){ | |
| if ( !isset( $_POST['card_number'] ) || !isset( $_POST['card_cvc'] ) || !isset( $_POST['card_exp_month'] ) || !isset( $_POST['card_exp_year'] ) ){ | |
| $redirect = add_query_arg( array( | |
| 'card' => 'not-created', | |
| ), $_POST['redirect'] ); |
NewerOlder