npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexabot-plugin-ollama

v2.0.2

Published

The Ollama Plugin Extension for Hexabot Chatbot / Agent Builder that provides a custom block for Generative AI + RAG

Downloads

694

Readme

Ollama Plugin Extension for Hexabot AI Chatbot / Agent Builder

Overview

The Ollama Plugin Extension is a custom block for the Hexabot Chatbot / Agent Builder that introduces Generative AI and Retrieval-Augmented Generation (RAG) capabilities. This plugin allows you to enhance your chatbot with cutting-edge AI features, providing more context-aware and intelligent responses by leveraging generative models and document-based retrieval.

Hexabot is an open-source chatbot / agent solution that allows users to create and manage AI-powered, multi-channel, and multilingual chatbots and/or agents with ease. If you would like to learn more, please visit the official github repo.

Features

  • Generative AI Capability: Leverage state-of-the-art language models, such as Llama 3.2, to generate human-like responses for your chatbot.
  • RAG Integration: Combine generative models with retrieved content from the Hexabot Knowledge Base to provide grounded responses based on managed documents, enhancing both accuracy and relevance.
  • Customizable Settings: Modify model parameters, control context length, adjust temperature, and customize system instructions for fine-tuned behavior.

Plugin Settings

The plugin offers a wide range of customizable settings, grouped into two categories: default and options. These settings allow you to fine-tune the behavior of the generative AI to meet specific needs.

Default Settings

  • Model (text): Specifies the language model used. Default is llama3.2.
  • Keep Alive (text): Duration to keep the model in memory. Default is 5m.
  • Max Context Messages (number): Number of messages to retrieve for contextual conversations. Default is 5.
  • Context (text): A context description for the AI. Default is: "You are an AI Assistant that works for Hexastack, the IT company behind Hexabot the chatbot builder."
  • Instructions (textarea): Custom instructions to guide the AI responses.
  • Fallback Message (textarea): Message to send when an error occurs.

Optional Settings

  • Mirostat (number): Mirostat tuning. Default is 0 (disabled).
  • Mirostat Eta (number): Mirostat eta parameter. Default is 0.1.
  • Mirostat Tau (number): Mirostat tau parameter. Default is 5.0.
  • Context Window Size (number): Maximum number of tokens for the model's context window. Default is 2048.
  • Repeat Last N (number): Number of tokens to consider for repetition penalty. Default is 64.
  • Repeat Penalty (number): Penalty for repeated phrases. Default is 1.1.
  • Temperature (number): Sampling temperature for response variability. Default is 0.8.
  • Seed (number): Seed value for deterministic outputs. Default is 0.
  • Stop (text): Stop sequence for model output. Default is "AI assistant:".
  • TFS Z (number): TFS Z value (top fractional sampling). Default is 1.0.
  • Maximum number of tokens (number): Maximum number of tokens to predict. Default is 20.
  • Top K (number): Top-k sampling value. Default is 40.
  • Top P (number): Top-p sampling value. Default is 0.9.
  • Min P (number): Minimum probability for sampling. Default is 0.0.

Installation

  1. Install the plugin package using:
cd ~/projects/my-chatbot
npm install hexabot-plugin-ollama
hexabot dev --services ollama

Usage

After installing and registering the plugin, the Ollama block will be available in the visual editor of Hexabot. You can drag and drop the Ollama block into your chatbot's workflow to add generative AI + RAG capabilities. Configure the settings through the block to customize the model and behavior.

This plugin utilizes document-based retrieval from the Knowledge Base to enhance responses, which means your chatbot can leverage specific documents to generate more relevant answers. You can find more about the Knowledge Base in the official documentation : https://docs.hexabot.ai/user-guide/knowledge-base

Contributing

We welcome contributions from the community! Whether you want to report a bug, suggest new features, or submit a pull request, your input is valuable to us.

Please refer to our contribution policy first : How to contribute to Hexabot

Contributor Covenant

Feel free to join us on Discord

License

This software is licensed under the GNU Affero General Public License v3.0 (AGPLv3) with the following additional terms:

  1. The name "Hexabot" is a trademark of Hexastack. You may not use this name in derivative works without express written permission.
  2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).

Happy Chatbot Building!