Tool

Fetch dad jokes from icanhazdadjoke API

DadJoke Loader fetches dad jokes from icanhazdadjoke.com and loads them as documents into LlamaIndex.

Works with icanhazdadjokellamaindex

67
Spark score
out of 100
Updated 2 days ago
Version 0.14.23

Add to Favorites

Why it matters

Retrieve dad jokes from the icanhazdadjoke API and load them as documents into LlamaIndex for use in AI applications, chatbots, or content generation workflows.

Outcomes

What it gets done

01

Connect to the icanhazdadjoke API endpoint

02

Fetch a random dad joke from the service

03

Convert the joke into a LlamaIndex document format

04

Return the formatted document for downstream processing

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/li-reader-readers-dad-jokes | bash

Overview

DadJoke Loader

DadJoke Loader is a LlamaIndex reader that fetches jokes from the icanhazdadjoke API and converts them into LlamaIndex document objects. It provides a zero-configuration interface to retrieve dad jokes programmatically and load them into your LlamaIndex data pipelines. Use this loader when you need to load joke content from the icanhazdadjoke API into LlamaIndex. It requires no authentication and provides a straightforward way to fetch jokes as LlamaIndex documents.

What it does

DadJoke Loader is a LlamaIndex reader integration that fetches jokes from the icanhazdadjoke API and converts them into LlamaIndex document objects. It provides a simple interface to programmatically retrieve dad jokes and incorporate them into your LlamaIndex data pipelines.

When to use - and when NOT to

Use DadJoke Loader when you need to load joke content into LlamaIndex from an external API without authentication complexity.

Do NOT use this loader when you need guaranteed availability or content consistency, as the jokes are retrieved from a third-party API.

Inputs and outputs

The loader requires no input parameters or configuration - simply instantiate the DadJokesReader class and call its load_data() method. It outputs LlamaIndex document objects containing joke text fetched from the icanhazdadjoke service, ready to be indexed or processed by other LlamaIndex components.

Integrations

This loader integrates directly with LlamaIndex as a reader component. It is designed specifically to load data into LlamaIndex pipelines and works with the broader LlamaIndex ecosystem for document processing, indexing, and retrieval.

Who it's for

DadJoke Loader is for LlamaIndex developers who want to load joke content from the icanhazdadjoke API into their LlamaIndex applications.

Installation and usage

Install the package via pip:

pip install llama-index-readers-dad-jokes

Load jokes into your LlamaIndex application:

from llama_index.readers.dad_jokes import DadJokesReader

loader = DadJokesReader()
documents = loader.load_data()
Source README

DadJoke Loader

pip install llama-index-readers-dad-jokes

This loader fetches a joke from icanhazdadjoke.

Usage

To use this loader, load it.

from llama_index.readers.dad_jokes import DadJokesReader

loader = DadJokesReader()
documents = loader.load_data()

This loader is designed to be used as a way to load data into LlamaIndex.

FAQ

Common questions

Discussion

Questions & comments · 0

Sign In Sign in to leave a comment.