Coder Social home page Coder Social logo

fede91 / catalogator Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 136 KB

The CATaloger is a plugin for Cheshire-Cat that enables the assignment of metadata to documents during upload and allows for the application of filters when generating responses

Python 100.00%

catalogator's Introduction

CATalogator

Enhancing Cheshire-Cat capabilities with metadata assignment and filtering.

Awesome plugin

The CATalogator Plugin is an open-source tool designed to integrate seamlessly with the Cheshire-Cat framework, enabling users to assign metadata to documents during upload and apply filters to the declarative memory to focus responses on specific documents.

Very Important

Use this plugin with custom clients where you can change the structure of WebSocket messages sended to Cheshire-Cat.

Getting Started

Prerequisites

There are no prerequisites to use CATalogator Plugin.

Installation and Configuration

Through Cheshire-Cat's GUI

  1. Open the Cheshire-Cat Admin UI and head over to the plugins section.
  2. Look for "CATalogator" plugin and choose to install it.
  3. After installation, locate the "Configure" button next to CATalogator plugin in the list and click it to open the configuration sidebar.
  4. Save your configurations to apply the changes.

CATalogator plugin will now be ready to use with your Cheshire-Cat projects.

Usage

Adding Metadata During Document Upload

Before uploading a new document, via plugin settings, you can add metadata in the following format:

key1: value1; key2: value2; ...

The plugin will set the metadata for each document accordingly.

Applying Filters Using a Custom WebSocket Client

Users can apply filters on documents' metadata by passing the filter_declarative_memory property in the WebSocket message. Example:

{
  "text": "Speak about Cheshire-Cat",
  "user_id": "user",
  "filter_declarative_memory": {
    "key1": "value1"
  }
}

The plugin will intercept these filters and apply them to the declarative memory, focusing the response only on matching documents.

Warning: If the user changes the filter in the same session while asking the same question, it's possible that Cheshire-Cat will give the same answer because it focuses on the history of the chat with the user.

Support

Encountering issues or have queries about CATalogator plugin? Feel free to create an issue on the GitHub repository.

Contributing

Contributions are warmly welcomed from the community! If you're interested in contributing, please fork the repository, commit your changes, and submit a pull request.

License

CATalogator Plugin is made available under the MIT License, allowing you to use, modify, and distribute it as per your needs.


Enhance your Cheshire-Cat experience with CATalogator Plugin. Happy coding!

catalogator's People

Contributors

fede91 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.