Generic Functionality
=====================

The examples here all address certain "how-to" guides for working with LLMs.

`LLM Serialization <./examples/llm_serialization.html>`_: A walkthrough of how to serialize LLMs to and from disk.

`LLM Caching <./examples/llm_caching.html>`_: Covers different types of caches, and how to use a cache to save results of LLM calls.

`Custom LLM <./examples/custom_llm.html>`_: How to create and use a custom LLM class, in case you have an LLM not from one of the standard providers (including one that you host yourself).

`Token Usage Tracking <./examples/token_usage_tracking.html>`_: How to track the token usage of various chains/agents/LLM calls.


.. toctree::
   :maxdepth: 1
   :glob:
   :caption: Generic Functionality
   :name: Generic Functionality
   :hidden:

   ./examples/*
