docs: fix for title of llm_caching nb (#9891)

Fixed title for the `extras/integrations/llms/llm_caching.ipynb`.
Existing title breaks the sorted order of items in the navbar.
Updated some formatting.
This commit is contained in:
Leonid Ganeline 2023-08-28 18:34:04 -07:00 committed by GitHub
parent e01b00aa54
commit b1bffea9c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,8 +5,9 @@
"id": "f36d938c",
"metadata": {},
"source": [
"# Caching integrations\n",
"This notebook covers how to cache results of individual LLM calls."
"# LLM Caching integrations\n",
"\n",
"This notebook covers how to cache results of individual LLM calls using different caches."
]
},
{
@ -26,9 +27,12 @@
{
"cell_type": "markdown",
"id": "b50f0598",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## In Memory Cache"
"## `In Memory` Cache"
]
},
{
@ -108,9 +112,12 @@
{
"cell_type": "markdown",
"id": "4bf59c12",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## SQLite Cache"
"## `SQLite` Cache"
]
},
{
@ -203,9 +210,12 @@
{
"cell_type": "markdown",
"id": "278ad7ae",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## Redis Cache"
"## `Redis` Cache"
]
},
{
@ -385,9 +395,12 @@
{
"cell_type": "markdown",
"id": "684eab55",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## GPTCache\n",
"## `GPTCache`\n",
"\n",
"We can use [GPTCache](https://github.com/zilliztech/GPTCache) for exact match caching OR to cache results based on semantic similarity\n",
"\n",
@ -614,9 +627,12 @@
{
"cell_type": "markdown",
"id": "726fe754",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## Momento Cache\n",
"## `Momento` Cache\n",
"Use [Momento](/docs/ecosystem/integrations/momento.html) to cache prompts and responses.\n",
"\n",
"Requires momento to use, uncomment below to install:"
@ -723,9 +739,14 @@
{
"cell_type": "markdown",
"id": "934943dc",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## SQLAlchemy Cache"
"## `SQLAlchemy` Cache\n",
"\n",
"You can use `SQLAlchemyCache` to cache with any SQL database supported by `SQLAlchemy`."
]
},
{
@ -735,8 +756,6 @@
"metadata": {},
"outputs": [],
"source": [
"# You can use SQLAlchemyCache to cache with any SQL database supported by SQLAlchemy.\n",
"\n",
"# from langchain.cache import SQLAlchemyCache\n",
"# from sqlalchemy import create_engine\n",
"\n",
@ -795,7 +814,10 @@
{
"cell_type": "markdown",
"id": "0c69d84d",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## Optional Caching\n",
"You can also turn off caching for specific LLMs should you choose. In the example below, even though global caching is enabled, we turn it off for a specific LLM"
@ -874,7 +896,10 @@
{
"cell_type": "markdown",
"id": "5da41b77",
"metadata": {},
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
},
"source": [
"## Optional Caching in Chains\n",
"You can also turn off caching for particular nodes in chains. Note that because of certain interfaces, its often easier to construct the chain first, and then edit the LLM afterwards.\n",
@ -1022,9 +1047,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "venv"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
@ -1036,7 +1061,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.3"
"version": "3.10.12"
}
},
"nbformat": 4,