sagarsdeshmukh/swayam-ai-chatbot
Composer 安装命令:
composer require sagarsdeshmukh/swayam-ai-chatbot
包简介
WordPress Swayam AI Chatbot plugin using LLPhant, Llama 3.2, and Elasticsearch
README 文档
README
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
Credits
- LLPhant - PHP LLM framework
- Ollama - Local LLM runtime
- Elasticsearch - Vector database
sagarsdeshmukh/swayam-ai-chatbot 适用场景与选型建议
sagarsdeshmukh/swayam-ai-chatbot 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sagarsdeshmukh/swayam-ai-chatbot 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sagarsdeshmukh/swayam-ai-chatbot 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2026-02-20