---
title: "Library Source Search"
description: "This example highlights the different models in their ability to perform library search and answer."
canonical: "https://www.questportal.com/documentation/-8r9jDdPTx/library-source-search"
section: "Documentation / Misc / Assistant Model Selection Examples"
source: "Quest Portal documentation"
version: 237
---

# Library Source Search

This example highlights the different models in their ability to perform library search and answer.

A PDF of the 2024 D&D Player's Handbook was in the Library.

> How many spells/pack slots does the Warlock have at level 5?

## Summary

|  | 3.1 Pro | 3 Flash | 3.1 Flash Lite | 2.5 Flash |
| --- | --- | --- | --- | --- |
| Speed | 34.1s | 36.7s | 11.5s | 50.9 |
| Credits | 5 | 1 | 1 | 1 |

Based on the below results and the quality of answers we believe 3.1 Flash Lite performs the best if you need **quick answers** to straight up qusetions.

As the search becomes **more complex** we recommend 3 Flash or 3.1 Pro.

## **Gemini 3.1 Pro**

**Results**

- Speed: 34.1s
- Credits: 5

**Answer**

> At level 5, a Warlock in D&D 5.5e (2024) has 2 spell slots (Pact Magic slots).
>
> Because of how Pact Magic works, both of these slots are 3rd level. This means any spell you cast using these slots is automatically cast at the 3rd level, and you regain all expended Pact Magic slots when you finish a Short or Long Rest.

## **Gemini 3 Flash**

**Results**

- Speed: 36.7s
- Credits: 1

**Answer**

> At level 5, a Warlock has the following spellcasting capabilities according to the 2024 Player's Handbook:
>
> Pact Magic Spell Slots: 2
> Slot Level: 3rd Level
> Prepared Spells: 6
> Cantrips: 3
>
> All of your Warlock spell slots are of the same level (3rd level at level 5), and you regain them whenever you finish a Short or Long Rest. Additionally, you have the Magical Cunning feature, which allows you to regain one of those expended slots (half your maximum, rounded up) by performing a 1-minute rite once per Long Rest.

## **Gemini 3.1 Flash Lite**

**Results**

- Speed: 11.5s
- Credits: 1

**Answer**

> According to the D&D 2024 Player's Handbook, a Warlock at level 5 has two spell slots, and each of those slots is 3rd level.

## **Gemini 2.5 Flash**

**Results**

- Speed: 50.9s
- Credits: 1

**Answer**

> At level 5, a Warlock has two spell slots, and both are 3rd-level Pact Magic spell slots. They regain all expended Pact Magic spell slots when they finish a Short or Long Rest.

---

Part of the [Quest Portal documentation](https://www.questportal.com/documentation.md) (Documentation / Misc / Assistant Model Selection Examples). HTML version: <https://www.questportal.com/documentation/-8r9jDdPTx/library-source-search>.
