前言介紹
- 這款 WordPress 外掛「Alpaca Bot」是 2024-04-21 上架。
- 目前有 50 個安裝啟用數。
- 上一次更新是 2024-07-06,距離現在已有 301 天。
- 外掛最低要求 WordPress 6.4 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 8.1 以上。
- 有 1 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
AI | ollama | chatbot | embedding | large language model |
內容簡介
### 摘要:
- 使用 Alpaca Bot 外掛可以輕鬆從任何對話草擬一篇文章或頁面。動態地即時建立新內容或透過代理來收集遠端資源。Alpaca Bot 在桌面和手機上都提供熟悉的聊天介面,讓您在任何設備上都能獲得無縫的聊天體驗!需要擁有一個 Ollama 實例,Ollama 讓大型語言模型在本地或雲端自助託管非常容易。如果自助託管對您來說太難了,請考慮成為 Patreon,以獲得我們提供的 Ollama 實例和高級 Discord 支援。
### 問答:
1. 如何在 WordPress 上與 AI 模型溝通?
- 在管理選單中,找到 Alpaca Bot,點擊,位於 Dashboard 之下、Posts 之上;或者使用短碼 [alpacabot] 在任何文章或頁面中生成回應。
2. 什麼是 Agent 在這外掛中的作用?
- 使用 [alpacabot_agent] 短碼來代表您執行任務。Agents 是強大的方式,讓您的 AI 模型代表您執行任務,例如從遠端來源檢索內容。
3. 如何在 Alpaca Bot 上進行基本網頁摘要?
- 使用以下 HTML 範例:
```html
[alpacabot_agent name=summarize model=tinyllama url=https://example.com/]
```
4. 如何透過緩存功能進行請求?
- 可透過設置 cache 屬性進行緩存,cache 支援短期和長期選項。Responses 默認緩存在當前文章或頁面中。
5. 能否與 Ollama 交流以支援 [alpacabot] 屬性?
- 能,Agent 與 Ollama 通信支援 [alpacabot] 屬性。
原文外掛簡介
Easily draft a post or page from any conversation. Dynamically create new content on the fly or with remote resources collected via agents. Alpaca Bot offers a familiar chat interface on both desktop and mobile. You can expect a seamless chat experience on any device!
An Ollama instance is required. Ollama makes it incredibly easy to self-host large language models locally or in the cloud.
Features
Chose to store conversation history privately in your wp_ database or not at all.
Use [alpacabot_agent] to execute tasks on your behalf, generate dynamic content and more.
Chat with dozens of pre-trained LLMs or train your own.
Switch conversational model on the fly.
Create your own custom system messages for highly predictable or formatted responses.
Usage
Text Completion
You have two options to communicate with your AI models;
Click Alpaca Bot found in the admin menu, below Dashboard and above Posts.
Use the shortcode [alpacabot] to generate a response within any post or page.
Agents
Use the [alpacabot_agent] shortcode to execute tasks on your behalf. Agents are a powerful way to empower your AI models to perform tasks on your behalf.
For example, you can use the [alpacabot_agent] shortcode to retrieve content from a remote source. [alpacabot_agent]s can interact directly with your models and help summarize a webpage or rewrite content.
Example
Basic webpage summarization:
[alpacabot_agent name=summarize model=tinyllama url=https://example.com/]
Shortcodes
[alpacabot] – Chat with Alpaca Bot
Chat with Alpaca Bot from any post or page.
Attributes
model – The model to use for the text generation. (optional)
system – Specifies the system message that will be set in the template. (optional)
[alpacabot_agent] – Execute tasks on your behalf
Execute tasks via Agents.
Attributes
The following are core attributes that are supported by all agents.
name – The agent to execute.
Agent’s communicating with Ollama support [alpacabot] attributes.
Caching
Requests can be cached by setting the cache attribute. cache supports short and long term options.
By default responses are cached to the current post or page.
Transient
Numeric values are treated as seconds and will cache the response for the specified duration.
cache=60 – Cache the response for 60 seconds.
cache=3600 – Cache the response for 1 hour.
Post Meta
This is useful for caching responses permanently and associating them with a specific post or page.
cache=postmeta – Cache to current post or page.
Option
Use WordPress option storage to cache permanently but not associated with a specific post or page.
This can be useful for sharing responses across multiple pages.
cache=option – Cache to WordPress options.
Disable
The following values can disable caching.
cache=0 – Disable caching.
cache=disable – Disable caching.
cache=false – Disable caching.
Core Agents
The following are core agents that are provided by the Alpaca Bot plugin.
get
Retrieve content from a remote source.
Attributes
url – The URL to retrieve content from.
summarize
Summarize remote content.
Attributes
url – The URL to summarize.
length – Describe the length of the summary.
content – The type of content we want to summarize.
Support
If you need help or have questions, please join our Discord community.
Premium support and video calls are available to our Patreon subscribers. We can help setup your Ollama instance, troubleshoot issues, demonstrate shortcode functionality and more.
Patreon’s also receive;
Access to our hosted Ollama instances.
Priority feature requests.
Early access to new features and releases.
Video and community support.
Please consider becoming a Patreon today!
Made Possible By
Emma Delaney’s How to Create Your Own ChatGPT in HTML CSS and JavaScript
Google Material Design Icons – Apache-2.0 license
Hint.css A CSS only tooltip library – MIT license
TextRank Automatic text summarization for PHP – MIT license
Ollama Get up and running with large language models locally – MIT license
Parsedown A better Markdown parser – MIT license
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Alpaca Bot」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
暫無相關外掛推薦。