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

@rpidanny/llm-prompt-templates

v1.6.0

Published

The LLM Prompt Templates NPM Package provides a collection of reusable prompt templates that can be used to enhance the quality and relevance of responses in various LLMs. With this package installed, you can easily generate effective and accurate prompts

Downloads

48

Readme

LLM Prompt Templates NPM Package

The LLM Prompt Templates NPM Package provides a collection of reusable prompt templates that can be used to enhance the quality and relevance of responses in various LLMs. With this package installed, you can easily generate effective and accurate prompts in your code.

Installation

To use the LLM Prompt Templates NPM Package, simply install it from the npm registry:

npm i --save llm-prompt-templates

Usage

Using the LLM Prompt Templates NPM Package is simple. Import the desired prompt template from the package and use it in your code. Here's an example:

import { ZeroShotCoT } from 'llm-prompt-templates';

Available Prompt Templates

The LLM Prompt Templates NPM Package provides a variety of prompt templates, including:

  • ZeroShotCoT: Chain-of-thought (CoT) prompting enables complex reasoning capabilities through intermediate reasoning steps. Useful for more complex arithmetic, commonsense, and symbolic reasoning tasks.
  • ZeroShotCoTAPE: Chain-of-thought (CoT) prompt discovered by automatic prompt engineer (APE) which is better than the human engineered zero-shot CoT prompt.
  • GeneralKnowledge: Incorporates general knowledge or information to help the model make more accurate common sense reasoning.
  • QuestionWithReasoning: A prompt that guides critical thinking by instructing the LLM to provide it's initial thoughts, critique them, and provide a final answer.
  • QuestionWithContext: A prompt that asks the LLM to answer a question based on a provided context.

Contributing

We welcome contributions from anyone interested in improving the quality and effectiveness of LLM prompts. If you have a suggestion for a new prompt template or would like to improve an existing one, please feel free to submit a pull request.

License

The LLM Prompt Templates NPM Package is licensed under the MIT License. See the LICENSE file for details.