nugen-cookbook

Nugen Cookbook

Nugen Logo

Nugen Intelligence develops domain-aligned foundation models and agentic workflows.

The Nugen Cookbook provides example code and guides for common tasks using the Nugen API. These examples demonstrate how to leverage Nugen’s technology in various regulated industries.

Prerequisites

To use these recipes, you’ll need a Nugen API key. You can get one by creating a free Nugen account.

While most code examples are in Python, the concepts can be applied to any language. For implementation examples in other languages (cURL, GO, JavaScript, PHP, and Java), refer to our API reference.

To get the most out of these recipes, we recommend starting with our Getting Started guide to familiarize yourself with key concepts.

Table of Recipes

Getting Started

| Title | Description | Open in Colab | |——-|————-|—————| | Getting Started with Nugen | Learn the basics of using Nugen API | Open In Colab | | Understanding Nugen Models | Explore the different Nugen models and their capabilities | Open In Colab |

Framework Integrations

| Title | Description | Open in Colab | |——-|————-|—————| | Nugen with LlamaIndex | Integrate Nugen API with LlamaIndex framework | Open In Colab | | Nugen with LangChain | Integrate Nugen API with LangChain framework | Open In Colab |

Advanced Capabilities

| Title | Description | Open in Colab | |——-|————-|—————| | Using Reasoning for Routine Generation | Leverage Nugen’s reasoning capabilities for routine generation | Open In Colab |

| Title | Description | Open in Colab | |——-|————-|—————| | How to Create Embeddings | Learn how to create embeddings using Nugen API | Open In Colab | | Embedding Wikipedia Articles for Search | Build a semantic search system with Wikipedia articles | Open In Colab |

Retrieval Augmented Generation (RAG)

| Title | Description | Open in Colab | |——-|————-|—————| | Generate Responses from Documents | Extract information and generate responses from documents | Open In Colab | | Build Your RAG System | Implement a complete RAG system with Nugen | Open In Colab |

Alignment Workflows

Title Description Open in Colab
Alignment with the Nugen API Build a domain-specific aligned model using the Nugen API through dataset upload, benchmark generation, benchmark editing, and aligning the model to your domain. Open In Colab

Agentic Workflows

| Title | Description | Open in Colab | |——-|————-|—————| | Build Your Agents | Create autonomous agents using Nugen’s agentic capabilities | Open In Colab |

Build an Application Using Your Aligned Model.

| Title | Description | Open in Colab | |——-|————-|—————| | Build an Application Using Your Aligned Model | Follow the steps to use your aligned model with the Nugen Inference API to build your own application | Open In Colab |

Inference Workflows

| Title | Description | Open in Colab | |——-|————-|—————| | Run Inference with Nugen API | Learn how to run inference using a aligned model with the Nugen Inference API. | Open In Colab |

Vision Alignment

| Title | Description | Open in Colab | |——-|————-|—————| | Vision Alignment with Nugen API | Create a Vision Alignment Model using your own image dataset for domain-specific | Open In Colab |

Explore Further

To learn more about Nugen and its capabilities:

Community Contributions

The Nugen Cookbook is a community-driven resource. We welcome contributions such as:

Before contributing:

  1. Check existing issues and pull requests to avoid duplication.
  2. Share ideas for new examples or guides on our issues page.
  3. Review our contribution guidelines for new content submissions.

Your contributions help make this resource valuable for the entire developer community working with Nugen’s domain-aligned foundation models and agentic workflows.