sagarsdeshmukh/swayam-ai-chatbot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sagarsdeshmukh/swayam-ai-chatbot

最新稳定版本:1.0.0

Composer 安装命令:

composer require sagarsdeshmukh/swayam-ai-chatbot

包简介

WordPress Swayam AI Chatbot plugin using LLPhant, Llama 3.2, and Elasticsearch

README 文档

README

PHP Version WordPress License

A WordPress plugin that provides an AI-powered chatbot using RAG (Retrieval-Augmented Generation) architecture with LLPhant, Llama 3.2 (via Ollama), and Elasticsearch.

Why "Swayam"?

Swayam (स्वयं)—an ancient Sanskrit word meaning "self." Your content. Your knowledge. Autonomously intelligent.

Features

  • RAG-Powered Q&A: Answers questions based on your WordPress content
  • Automatic Content Indexing: Syncs posts, pages, and custom post types to Elasticsearch
  • Auto-Sync on Publish: Automatically updates the index when content is published/updated/deleted
  • Customizable Chat Interface: Shortcode and floating widget options
  • Admin Dashboard: Easy configuration with connection testing
  • REST API: Programmatic access to the chatbot
  • Rate Limiting: Built-in protection against spam
  • PHP 8.2+ Compatible: Works with PHP 8.2, 8.3, and later versions

Download plugin on wordpress.org

Requirements

  • PHP: 8.2 or higher
  • WordPress: 6.0 or higher
  • Ollama: Running locally with Llama 3.2 model
  • Elasticsearch: 9.x with vector search support
  • Composer: For dependency management

Installation

1. Install the Plugin

# Navigate to your WordPress plugins directory
cd /path/to/wordpress/wp-content/plugins/

# Clone or copy the plugin
cp -r /path/to/swayam-ai-chatbot ./

# Install dependencies
cd swayam-ai-chatbot
composer install

2. Install and Start Ollama

You can install Llama 3.2 using ollama.

For installing ollama on Linux, run the following command:

curl -fsSL https://ollama.com/install.sh | sh

For macOS or Windows use the download page.

It is recommended to install Llama 3.2-1B or 3B for optimized CPU/GPU, and RAM usage.

For installing Llama3.2-3B use the following command:

ollama run llama3.2:3b

You can start interacting to the LLama3.2 model using a chat. To exit, write /bye in the chat.

3. Install and Start Elasticsearch

curl -fsSL https://elastic.co/start-local | sh

This script will install Elasticsearch and Kibana using a docker-compose.yml file stored in elastic-start-local folder.

Elasticsearch and Kibana will run locally at http://localhost:9200 and http://localhost:5601.

All the settings of Elasticsearch and Kibana are stored in the elastic-start-local/.env file.

You can use the start and stop commands available in the elastic-start-local folder.

To stop the Elasticsearch and Kibana Docker services, use the stop command:

cd elastic-start-local
./stop.sh

To start the Elasticsearch and Kibana Docker services, use the start command:

cd elastic-start-local
./start.sh

License

GPL v3

Credits

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-02-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固