=== AI RAG Assistant ===
Contributors:      S M Tanvir Ahsan
Tags:              ai, chatbot, rag, openai, woocommerce, chat widget, gpt, embeddings, knowledge base
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.1
Stable tag:        2.0.0
License:           GPLv2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html

AI-powered chat widget with Retrieval-Augmented Generation (RAG), vector embeddings, and WooCommerce integration for WordPress.

== Description ==

**AI RAG Assistant** adds an intelligent floating chat widget to your WordPress site. Unlike basic chatbots, it uses **Retrieval-Augmented Generation (RAG)** to answer questions based on YOUR actual content — not hallucinations.

= Free Features =

* AI Chat Widget with beautiful floating bubble
* 50 messages per day
* Works with free AI providers (Groq, Gemini, OpenRouter)
* Keyword search for basic content matching
* Conversation history
* Dark mode support
* Mobile responsive (full-screen on mobile)
* Suggested questions / quick replies
* Markdown rendering in responses
* Typing indicator
* Multiple AI provider support

= Premium Features (Starter $19/year) =

* RAG Knowledge Base — AI answers from your content
* PDF Upload & Indexing
* Custom Post Type support with ACF field extraction
* 500 messages per day
* CSV Export
* Auto-index on post save

= Premium Features (Pro $49/year) =

* Everything in Starter
* Unlimited messages
* Vector Embeddings with cosine similarity search
* Full WooCommerce integration (products, cart, orders)
* Product recommendation cards in chat
* Priority support (24h response)

= Premium Features (Agency $199/year) =

* Everything in Pro
* Unlimited site activations
* VIP support (12h response)
* All future features included free

= Supported AI Providers =

* **Groq** — Completely FREE, no credit card required
* **Google Gemini** — Free tier with 1,500 requests/day
* **OpenAI** — GPT-4o, GPT-4o-mini (paid, best quality)
* **Ollama** — Run locally, 100% private
* **OpenRouter** — Free models available
* Any OpenAI-compatible API endpoint

= How It Works =

1. Install and activate the plugin
2. Go to AI Assistant → Settings → API tab
3. Add your free Groq API key (or any provider)
4. The chat widget appears on your site
5. Upgrade to unlock RAG, PDF upload, WooCommerce, and more

= Links =

* [Website](https://esolverai.online)
* [Documentation](https://esolverai.online/docs/)
* [Support](https://esolverai.online/support/)
* [Pricing](https://esolverai.online/pricing/)

== Installation ==

1. Upload the `ai-rag-assistant` folder to `/wp-content/plugins/`
2. Activate via **Plugins → Installed Plugins**
3. Go to **AI Assistant → Settings**
4. Add your API key (Groq is free — no credit card needed)
5. The chat widget appears automatically on your site

== Frequently Asked Questions ==

= Is it really free? =

Yes! The free version includes the chat widget with 50 messages/day. Works with free AI providers like Groq (no credit card needed).

= Which AI providers are free? =

Groq is completely free with no credit card. Google Gemini has a free tier. OpenRouter has free models. Ollama runs locally for free.

= What is RAG? =

RAG (Retrieval-Augmented Generation) searches your content before answering questions. The AI finds relevant information from your posts, pages, products, and PDFs — then generates accurate answers based on your actual content.

= Do I need coding skills? =

Zero. Install, add API key, done. Everything is configured through a visual settings page.

= Will it slow down my website? =

No. The widget loads asynchronously and uses AJAX for AI requests. Zero performance impact.

= Can I upgrade from Free to Paid? =

Yes! Purchase a plan, enter your license key, and premium features unlock instantly. All settings preserved.

= Is my data safe? =

Yes. All data stored on YOUR server. We don't collect anything. Messages sent to your chosen AI provider only for responses.

== Screenshots ==

1. Chat widget on frontend
2. Admin dashboard with stats
3. Settings page — API configuration
4. Knowledge base manager
5. PDF library
6. License & pricing page
7. Conversation viewer
8. Mobile responsive chat

== Changelog ==

= 2.0.0 =
* NEW: Vector embeddings with cosine similarity search
* NEW: WooCommerce full integration (products, orders, cart)
* NEW: PDF upload and indexing system
* NEW: Custom post type support with ACF field extraction
* NEW: License management system (Free/Starter/Pro/Agency)
* NEW: Support ticket system
* NEW: Plugin auto-updater
* NEW: Knowledge base admin with embedding coverage
* NEW: Product recommendation cards in chat
* NEW: Markdown rendering in chat responses
* NEW: Dark mode support
* NEW: Mobile full-screen experience
* IMPROVED: Chunking with sentence-aware splitting
* IMPROVED: Block theme support (Twenty Twenty-Five)
* IMPROVED: Settings preserved across tabs

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 2.0.0 =
Major update with RAG, embeddings, WooCommerce, PDF upload, and license system.