FORGE-X: Upload source (fx-32981a99.zip)
Browse files- README.md +92 -7
- fx-32981a99/assets/css/admin.css +5 -0
- fx-32981a99/assets/js/admin.js +10 -0
- fx-32981a99/fx-32981a99.php +123 -0
- fx-32981a99/languages/fx-32981a99.pot +2 -0
- fx-32981a99/readme.txt +33 -0
- fx-32981a99/uninstall.php +6 -0
README.md
CHANGED
|
@@ -1,13 +1,98 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
-
python_version: '3.13'
|
| 9 |
app_file: app.py
|
| 10 |
pinned: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
|
|
|
| 12 |
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: "RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin"
|
| 3 |
+
emoji: 🔗
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
+
license: mit
|
| 11 |
+
tags:
|
| 12 |
+
- rag
|
| 13 |
+
- retrieval-augmented-generation
|
| 14 |
+
- llm
|
| 15 |
+
- embeddings
|
| 16 |
+
- pipelines
|
| 17 |
+
- data
|
| 18 |
+
- validation
|
| 19 |
+
- enrichment
|
| 20 |
+
- lead
|
| 21 |
+
- generation
|
| 22 |
---
|
| 23 |
+
# RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin
|
| 24 |
|
| 25 |
+
Your RAG pipeline is live, but you're flying blind on what actually converts. Without systematic A/B testing, you're leaving conversion gains on the table while your competitors optimize their AI outputs.
|
| 26 |
+
|
| 27 |
+
This WordPress plugin transforms your RAG & AI pipelines from experimental projects into conversion-generating machines by enabling real-time A/B testing and optimization directly in WordPress. Stop guessing which prompt variations, retrieval strategies, or response formats drive results—test, measure, and scale what works. You get production-grade pipeline testing without leaving your WordPress dashboard.
|
| 28 |
+
|
| 29 |
+
## What's Included
|
| 30 |
+
|
| 31 |
+
- Live A/B test RAG pipeline variations (prompts, chunks, response formats) with zero code changes
|
| 32 |
+
- Real-time conversion tracking tied to your pipeline outputs—see which AI responses actually convert
|
| 33 |
+
- Automated winner detection & traffic allocation so top-performing pipelines scale automatically
|
| 34 |
+
- Built-in statistical significance validation—know your results are real, not random noise
|
| 35 |
+
- One-click integration with existing WordPress sites—no API keys, no external dashboards needed
|
| 36 |
+
|
| 37 |
+
## Who Is This For
|
| 38 |
+
|
| 39 |
+
- SaaS founders running AI-powered lead generation funnels who need proof that their RAG outputs actually boost conversions
|
| 40 |
+
- Content marketing teams deploying AI assistants and chatbots that must optimize response quality for engagement metrics
|
| 41 |
+
- Enterprise development teams managing multiple RAG pipelines in production who can't afford downtime from testing
|
| 42 |
+
- Digital agencies building AI solutions for clients and needing quick, visible ROI on pipeline improvements
|
| 43 |
+
|
| 44 |
+
## How It Works
|
| 45 |
+
|
| 46 |
+
Install the plugin, connect your existing RAG pipeline with one configuration block, then create A/B test variants directly from the dashboard—no coding required. The plugin automatically routes traffic, tracks conversions, and shows you statistical breakdowns. Once a winner emerges, promote it with a click or set it to auto-scale.
|
| 47 |
+
|
| 48 |
+
## Frequently Asked Questions
|
| 49 |
+
|
| 50 |
+
**Does this work with my existing RAG setup?**
|
| 51 |
+
Yes. The plugin integrates with any RAG pipeline (LangChain, LlamaIndex, custom APIs). You keep your infrastructure intact and add testing on top.
|
| 52 |
+
|
| 53 |
+
**What conversions can I track?**
|
| 54 |
+
Any WordPress conversion event: form submissions, button clicks, purchases, sign-ups, email captures. Map any user action to your pipeline outputs.
|
| 55 |
+
|
| 56 |
+
**How many pipeline variants can I test at once?**
|
| 57 |
+
Test up to 8 concurrent variants per pipeline. The plugin handles traffic splitting, statistical validation, and winner detection automatically.
|
| 58 |
+
|
| 59 |
+
**Will testing slow down my site?**
|
| 60 |
+
No. The plugin uses caching and async logging so pipeline testing adds <50ms latency. Results are stored locally in WordPress—no external service dependency.
|
| 61 |
+
|
| 62 |
+
**Do I need technical skills to use this?**
|
| 63 |
+
No. The dashboard is fully visual—create tests, view stats, and launch winners without touching code. Advanced users can hook into the API for custom workflows.
|
| 64 |
+
|
| 65 |
+
## What You Get
|
| 66 |
+
|
| 67 |
+
- Instant digital download
|
| 68 |
+
- Complete WordPress plugin with full documentation
|
| 69 |
+
- Free updates for life — pay once, own forever
|
| 70 |
+
- Setup guide and usage instructions
|
| 71 |
+
|
| 72 |
+
**Get systematic RAG optimization today—start your first pipeline test in minutes and see conversion gains by tomorrow.**
|
| 73 |
+
|
| 74 |
+
## 🚀 Usage
|
| 75 |
+
|
| 76 |
+
1. Click **Use in Spaces** above to run the demo directly
|
| 77 |
+
2. Or clone the repository and run locally:
|
| 78 |
+
|
| 79 |
+
```bash
|
| 80 |
+
git clone https://huggingface.co/spaces/WealthFromAI/rag-ai-pipelines-ab-testing-and-conversion-optimization-wordpress-plugin-3298
|
| 81 |
+
cd rag-ai-pipelines-ab-testing-and-conversion-optimization-wordpress-plugin-3298
|
| 82 |
+
pip install -r requirements.txt
|
| 83 |
+
python app.py
|
| 84 |
+
```
|
| 85 |
+
|
| 86 |
+
## 💰 Pricing
|
| 87 |
+
|
| 88 |
+
- **Demo**: Free on Hugging Face Spaces
|
| 89 |
+
- **Full Source Code**: $38.98
|
| 90 |
+
- Available on [Gumroad](https://gumroad.com) and [Whop](https://whop.com)
|
| 91 |
+
|
| 92 |
+
## 📄 License
|
| 93 |
+
|
| 94 |
+
MIT License — free to use, modify, and distribute.
|
| 95 |
+
|
| 96 |
+
---
|
| 97 |
+
|
| 98 |
+
*Built with [FORGE-X](https://github.com/WealthFromAI) — automated digital product engine*
|
fx-32981a99/assets/css/admin.css
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* fx-32981a99 Admin Styles */
|
| 2 |
+
.fx-32981a99-wrap { max-width: 800px; }
|
| 3 |
+
.fx-32981a99-notice { padding: 12px 16px; border-left: 4px solid #0073aa; background: #f0f6fc; margin: 16px 0; border-radius: 4px; }
|
| 4 |
+
.fx-32981a99-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; padding: 20px; margin-bottom: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
|
| 5 |
+
.fx-32981a99-card h2 { margin-top: 0; color: #1d2327; }
|
fx-32981a99/assets/js/admin.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/* fx-32981a99 Admin JS */
|
| 2 |
+
(function($) {
|
| 3 |
+
'use strict';
|
| 4 |
+
$(document).ready(function() {
|
| 5 |
+
// Status check
|
| 6 |
+
if (typeof fx_32981a99_vars !== 'undefined') {
|
| 7 |
+
console.log('fx-32981a99 admin loaded.');
|
| 8 |
+
}
|
| 9 |
+
});
|
| 10 |
+
})(jQuery);
|
fx-32981a99/fx-32981a99.php
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Plugin Name: RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin
|
| 4 |
+
* Description: Test headlines, layouts, CTAs, and pricing without external tools. Optimize conversions without monthly A/B testing subscriptions.
|
| 5 |
+
* Version: 1.0.0
|
| 6 |
+
* Author: Digital Forge
|
| 7 |
+
* Text Domain: fx-32981a99
|
| 8 |
+
* License: GPL-2.0+
|
| 9 |
+
*/
|
| 10 |
+
|
| 11 |
+
if ( ! defined( 'ABSPATH' ) ) exit;
|
| 12 |
+
|
| 13 |
+
define( 'FX_32981A99_VERSION', '1.0.0' );
|
| 14 |
+
define( 'FX_32981A99_DIR', plugin_dir_path( __FILE__ ) );
|
| 15 |
+
|
| 16 |
+
class Fx32981a99 {
|
| 17 |
+
private static $instance = null;
|
| 18 |
+
|
| 19 |
+
public static function instance() {
|
| 20 |
+
if ( null === self::$instance ) {
|
| 21 |
+
self::$instance = new self();
|
| 22 |
+
}
|
| 23 |
+
return self::$instance;
|
| 24 |
+
}
|
| 25 |
+
|
| 26 |
+
private function __construct() {
|
| 27 |
+
add_action( 'init', [ $this, 'init' ] );
|
| 28 |
+
add_action( 'admin_menu', [ $this, 'admin_menu' ] );
|
| 29 |
+
add_action( 'admin_init', [ $this, 'settings_init' ] );
|
| 30 |
+
add_action( 'rest_api_init', [ $this, 'register_routes' ] );
|
| 31 |
+
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_admin_assets' ] );
|
| 32 |
+
load_plugin_textdomain( 'fx-32981a99', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
public function init() {}
|
| 36 |
+
|
| 37 |
+
public function admin_menu() {
|
| 38 |
+
add_options_page(
|
| 39 |
+
esc_html__( 'RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin Settings', 'fx-32981a99' ),
|
| 40 |
+
esc_html__( 'RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin', 'fx-32981a99' ),
|
| 41 |
+
'manage_options',
|
| 42 |
+
'fx-32981a99-settings',
|
| 43 |
+
[ $this, 'settings_page' ]
|
| 44 |
+
);
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
public function settings_init() {
|
| 48 |
+
register_setting( 'fx-32981a99_options', 'fx-32981a99_options', [ $this, 'sanitize_options' ] );
|
| 49 |
+
add_settings_section( 'fx-32981a99_main', '', '__return_false', 'fx-32981a99-settings' );
|
| 50 |
+
add_settings_field( 'enabled', esc_html__( 'Enable', 'fx-32981a99' ), [ $this, 'field_enabled' ], 'fx-32981a99-settings', 'fx-32981a99_main' );
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
public function sanitize_options( $input ) {
|
| 54 |
+
$clean = [];
|
| 55 |
+
$clean['enabled'] = ! empty( $input['enabled'] ) ? 1 : 0;
|
| 56 |
+
return $clean;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
public function field_enabled() {
|
| 60 |
+
$opts = get_option( 'fx-32981a99_options', [] );
|
| 61 |
+
$val = ! empty( $opts['enabled'] ) ? 1 : 0;
|
| 62 |
+
echo '<input type="checkbox" name="fx-32981a99_options[enabled]" value="1"' . checked( $val, 1, false ) . ' />';
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
public function settings_page() {
|
| 66 |
+
if ( ! current_user_can( 'manage_options' ) ) return;
|
| 67 |
+
?>
|
| 68 |
+
<div class="wrap">
|
| 69 |
+
<h1><?php echo esc_html( get_admin_page_title() ); ?></h1>
|
| 70 |
+
<form method="post" action="options.php">
|
| 71 |
+
<?php settings_fields( 'fx-32981a99_options' ); ?>
|
| 72 |
+
<?php do_settings_sections( 'fx-32981a99-settings' ); ?>
|
| 73 |
+
<?php submit_button(); ?>
|
| 74 |
+
</form>
|
| 75 |
+
</div>
|
| 76 |
+
<?php
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
public function register_routes() {
|
| 80 |
+
register_rest_route( 'fx-32981a99/v1', '/data', [
|
| 81 |
+
[ 'methods' => 'GET', 'callback' => [ $this, 'rest_get' ], 'permission_callback' => '__return_true' ],
|
| 82 |
+
[ 'methods' => 'POST', 'callback' => [ $this, 'rest_post' ], 'permission_callback' => function() { return current_user_can( 'manage_options' ); } ],
|
| 83 |
+
] );
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
public function rest_get( $request ) {
|
| 87 |
+
return rest_ensure_response( [ 'status' => 'ok', 'plugin' => 'fx-32981a99' ] );
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
public function rest_post( $request ) {
|
| 91 |
+
$data = $request->get_json_params();
|
| 92 |
+
return rest_ensure_response( [ 'received' => $data ] );
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
public function enqueue_admin_assets( $hook ) {
|
| 96 |
+
if ( 'settings_page_fx-32981a99-settings' !== $hook ) return;
|
| 97 |
+
wp_enqueue_style( 'fx-32981a99-admin', plugin_dir_url( __FILE__ ) . 'assets/css/admin.css', [], '1.0.0' );
|
| 98 |
+
wp_enqueue_script( 'fx-32981a99-admin', plugin_dir_url( __FILE__ ) . 'assets/js/admin.js', [ 'jquery' ], '1.0.0', true );
|
| 99 |
+
wp_localize_script( 'fx-32981a99-admin', 'fx_32981a99_vars', [ 'nonce' => wp_create_nonce( 'fx-32981a99-nonce' ), 'ajax_url' => admin_url( 'admin-ajax.php' ) ] );
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
public static function activate() {
|
| 103 |
+
global $wpdb;
|
| 104 |
+
$table = $wpdb->prefix . 'fx_32981a99';
|
| 105 |
+
$charset = $wpdb->get_charset_collate();
|
| 106 |
+
$sql = "CREATE TABLE IF NOT EXISTS $table (
|
| 107 |
+
id bigint(20) NOT NULL AUTO_INCREMENT,
|
| 108 |
+
data longtext NOT NULL,
|
| 109 |
+
created_at datetime DEFAULT CURRENT_TIMESTAMP,
|
| 110 |
+
PRIMARY KEY (id)
|
| 111 |
+
) $charset;";
|
| 112 |
+
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
|
| 113 |
+
dbDelta( $sql );
|
| 114 |
+
add_option( 'fx-32981a99_db_version', '1.0.0' );
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
public static function deactivate() {}
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
register_activation_hook( __FILE__, [ 'Fx32981a99', 'activate' ] );
|
| 121 |
+
register_deactivation_hook( __FILE__, [ 'Fx32981a99', 'deactivate' ] );
|
| 122 |
+
|
| 123 |
+
Fx32981a99::instance();
|
fx-32981a99/languages/fx-32981a99.pot
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin Translation Template
|
| 2 |
+
# Generated: 2026-05-05T23:43:55.393870
|
fx-32981a99/readme.txt
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
=== RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin ===
|
| 2 |
+
Contributors: digitalforge
|
| 3 |
+
Requires at least: 5.8
|
| 4 |
+
Tested up to: 6.5
|
| 5 |
+
Stable tag: 1.0.0
|
| 6 |
+
License: GPLv2 or later
|
| 7 |
+
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
| 8 |
+
|
| 9 |
+
Test headlines, layouts, CTAs, and pricing without external tools. Optimize conversions without monthly A/B testing subscriptions.
|
| 10 |
+
|
| 11 |
+
== Description ==
|
| 12 |
+
|
| 13 |
+
Test headlines, layouts, CTAs, and pricing without external tools. Optimize conversions without monthly A/B testing subscriptions.
|
| 14 |
+
|
| 15 |
+
**Features:**
|
| 16 |
+
|
| 17 |
+
* Core functionality
|
| 18 |
+
|
| 19 |
+
== Installation ==
|
| 20 |
+
|
| 21 |
+
1. Upload the plugin folder to `/wp-content/plugins/`
|
| 22 |
+
2. Activate via WordPress admin > Plugins
|
| 23 |
+
3. Configure via Settings > RAG & AI Pipelines A/B Testing and Conversion Optimization WordPress Plugin
|
| 24 |
+
|
| 25 |
+
== Changelog ==
|
| 26 |
+
|
| 27 |
+
= 1.0.0 =
|
| 28 |
+
* Initial release
|
| 29 |
+
|
| 30 |
+
== Upgrade Notice ==
|
| 31 |
+
|
| 32 |
+
= 1.0.0 =
|
| 33 |
+
Initial release.
|
fx-32981a99/uninstall.php
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) exit;
|
| 3 |
+
global $wpdb;
|
| 4 |
+
$wpdb->query( "DROP TABLE IF NOT EXISTS {$wpdb->prefix}fx_32981a99" );
|
| 5 |
+
delete_option( 'fx-32981a99_options' );
|
| 6 |
+
delete_option( 'fx-32981a99_db_version' );
|