edu (@edreisMD) on X

1 min read Original article ↗

Post

Post

  • user avatar

    Apply plugins 🎸 to any LLM in one line of code 😱 In this tutorial I wrapped all the complexity of last example in one function that you can apply to your LLM using

    @PlugnPlai

    and

    @langchain

    : github.com/edreisMD/plugn… See the three steps bellow:

  • user avatar

    user avatar

    💫 2. Install the plugins: Use the function `plugnplai.install_and_activate()` to install the chosen plugins. This function will read all the plugins specification and build a default prompt describing the plugins to the LLM

    user avatar

    🪄 3. Apply plugins to your LLM: First define a function that receive a user message and outputs a text in response. Then use `@ plugins.apply_plugins` decorator to automatically apply plugins to it.

  • user avatar