What's Catnip? π± Β· Why Use Catnip? π Β· How Does It Work? βοΈ Β· Who Is It For? π― Β· Modes of Catnip ποΈ Β· How to Use π οΈ Β· Using Nino with Ollama πΆ Β· Templates π Β· Examples π Β· License π Β· Contribution π€
Catnip is an AI model designed to help you generate comprehensive categories related to your topics or areas of interest. By leveraging Ollama, Catnip simplifies the process of organizing and categorizing information, enabling you to create customized AI assistants that generate detailed category lists tailored to your needs.
Catnip offers two modes to suit your needs:
- Catnip Panorama π: Generates a comprehensive list of categories related to your topic.
- Catnip Spotlight π¦: Provides a single, randomly selected category relevant to your topic.
- Effortless Brainstorming π: Automatically generate detailed category lists or discover a single category for any topic.
- Enhanced Organization β³: Organize complex subjects into manageable categories quickly.
- Customizable Output π¨: Tailor the AI assistant to produce categories that suit your specific needs.
- Versatility π: Fully compatible with Ollama, ensuring seamless model creation and deployment.
Catnip uses Modelfiles that define AI models capable of generating comprehensive category lists or providing a single category based on user-provided input. By creating these models with Ollama, you can interact with Catnip in the mode that best suits your needs.
Catnip is for anyone who wants to organize and categorize information more effectively:
- Students π: For creating study guides and breaking down complex subjects.
- Researchers π¬: To map out areas of study and identify key categories.
- Content Creators βοΈ: For outlining content topics and subtopics.
- Educators π©βπ«: To develop structured curricula and lesson plans.
- Business Analysts π: For organizing business domains and market segments.
- Project Managers π: To break down projects into manageable categories.
Generates a comprehensive list of categories related to your topic. Ideal for when you need an extensive overview or are brainstorming multiple aspects of a subject.
Provides a single, randomly selected category relevant to your topic. Great for when you need a quick idea or focus point without the overload of a full list.
Follow these steps to use Catnip and generate comprehensive category lists or a single category:
git clone https://github.com/lucianoayres/catnip.git
cd catnipMake sure you have Ollama installed on your system.
ollama create catnip-panorama1.0 -f ./modelfiles/Catnip-Panorama1.0ollama create catnip-spotlight1.0 -f ./modelfiles/Catnip-Spotlight1.0ollama run catnip-panorama1.0ollama run catnip-spotlight1.0When prompted, input your topic or area of interest. For example:
Modern Programming Languages
- Catnip Panorama will output a comprehensive list of categories based on your input.
- Catnip Spotlight will output a single, randomly selected category relevant to your topic.
You can copy the output and save it as a plain text file for future reference.
You can also use Nino to interact with your Ollama models more freely. Nino allows you to send prompts directly to the models from the command line without entering interactive mode, and it also allows you to export the AI's response to a local file.
nino "Mathematics for Computer Science" --model catnip-panorama1.0 --output categories.txtnino "Mathematics for Computer Science" --model catnip-spotlight1.0 --output category.txtThe Catnip templates streamline task definition by organizing key components, making it easy to configure and customize AI models while ensuring compatibility with Ollama. The structure includes:
-
Objective and Rules π: Defines the assistant's purpose and lays out guidelines to ensure the generated output meets your needs.
-
Command Specification π³: Details essential commands used in a Modelfile, such as:
- META: Contains metadata about the Modelfile, added as comments.
- FROM: Specifies the base model version (e.g.,
llama2). - PARAMETER: Sets model parameters like
temperature,num_ctx, andtop_p. - MESSAGE: Provides initial messages or prompts for the assistant.
- LICENSE: Includes licensing information for the Modelfile.
-
Template and Configuration π§©: Offers a standard Modelfile template with placeholders (
<< >>) that can be customized based on your specific idea, goal, or problem. -
User Input π‘: The specific idea, goal, or problem to generate the most effective output.
We recommend using Modelzilla π¦ to generate custom-tailored AI models. Modelzilla can help you create Modelfiles for your specific tasks, allowing you to build personalized AI assistants that are perfectly suited to your needs.
The original prompt templates are available for reference in the prompts directory. These resources are valuable for understanding the structure of Modelfiles and can serve educational purposes.
Examples of prompts you can provide to Catnip Panorama:
- Topic: "Renewable Energy Technologies"
- Area: "Ancient Civilizations"
- Field: "Artificial Intelligence Applications"
For the topic "Renewable Energy Technologies," Catnip Panorama might generate:
- Solar Energy
- Wind Energy
- Hydroelectric Power
- Geothermal Energy
- Biomass Energy
- Tidal Energy
- Wave Energy
- Hydrogen Fuel Cells
Examples of prompts you can provide to Catnip Spotlight:
- Topic: "Renewable Energy Technologies"
- Area: "Ancient Civilizations"
- Field: "Artificial Intelligence Applications"
For the topic "Renewable Energy Technologies", Catnip Spotlight might output:
- Tidal Energy
This project is licensed under the MIT License. See the LICENSE file for more details.
Contributions are welcome! Please fork the repository and submit a pull request if you'd like to propose any changes.
