From 93049d15638dabb5c9d36a246bdbffa007cc8798 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 30 May 2024 00:17:33 -0700 Subject: [PATCH] docs: make llm cache its own section (#22301) --- docs/docs/integrations/{llms => }/llm_caching.ipynb | 2 +- docs/docs/integrations/providers/astradb.mdx | 4 ++-- docs/docs/integrations/providers/cassandra.mdx | 4 ++-- docs/docs/integrations/providers/motherduck.mdx | 2 +- docs/sidebars.js | 1 + docs/vercel.json | 4 ++++ 6 files changed, 11 insertions(+), 6 deletions(-) rename docs/docs/integrations/{llms => }/llm_caching.ipynb (99%) diff --git a/docs/docs/integrations/llms/llm_caching.ipynb b/docs/docs/integrations/llm_caching.ipynb similarity index 99% rename from docs/docs/integrations/llms/llm_caching.ipynb rename to docs/docs/integrations/llm_caching.ipynb index 1bf260e69b5..42e2036eef7 100644 --- a/docs/docs/integrations/llms/llm_caching.ipynb +++ b/docs/docs/integrations/llm_caching.ipynb @@ -5,7 +5,7 @@ "id": "f36d938c", "metadata": {}, "source": [ - "# LLM Caching integrations\n", + "# Model caches\n", "\n", "This notebook covers how to cache results of individual LLM calls using different caches." ] diff --git a/docs/docs/integrations/providers/astradb.mdx b/docs/docs/integrations/providers/astradb.mdx index 49a41ee5caa..d545d1ea026 100644 --- a/docs/docs/integrations/providers/astradb.mdx +++ b/docs/docs/integrations/providers/astradb.mdx @@ -64,7 +64,7 @@ set_llm_cache(AstraDBCache( )) ``` -Learn more in the [example notebook](/docs/integrations/llms/llm_caching#astra-db-caches) (scroll to the Astra DB section). +Learn more in the [example notebook](/docs/integrations/llm_caching#astra-db-caches) (scroll to the Astra DB section). ## Semantic LLM Cache @@ -80,7 +80,7 @@ set_llm_cache(AstraDBSemanticCache( )) ``` -Learn more in the [example notebook](/docs/integrations/llms/llm_caching#astra-db-caches) (scroll to the appropriate section). +Learn more in the [example notebook](/docs/integrations/llm_caching#astra-db-caches) (scroll to the appropriate section). Learn more in the [example notebook](/docs/integrations/memory/astradb_chat_message_history). diff --git a/docs/docs/integrations/providers/cassandra.mdx b/docs/docs/integrations/providers/cassandra.mdx index be28a349658..cbef4c693bc 100644 --- a/docs/docs/integrations/providers/cassandra.mdx +++ b/docs/docs/integrations/providers/cassandra.mdx @@ -40,7 +40,7 @@ from langchain_community.cache import CassandraCache set_llm_cache(CassandraCache()) ``` -Learn more in the [example notebook](/docs/integrations/llms/llm_caching#cassandra-caches) (scroll to the Cassandra section). +Learn more in the [example notebook](/docs/integrations/llm_caching#cassandra-caches) (scroll to the Cassandra section). ## Semantic LLM Cache @@ -54,7 +54,7 @@ set_llm_cache(CassandraSemanticCache( )) ``` -Learn more in the [example notebook](/docs/integrations/llms/llm_caching#cassandra-caches) (scroll to the appropriate section). +Learn more in the [example notebook](/docs/integrations/llm_caching#cassandra-caches) (scroll to the appropriate section). ## Document loader diff --git a/docs/docs/integrations/providers/motherduck.mdx b/docs/docs/integrations/providers/motherduck.mdx index 827c654f92f..790f8167aaa 100644 --- a/docs/docs/integrations/providers/motherduck.mdx +++ b/docs/docs/integrations/providers/motherduck.mdx @@ -48,6 +48,6 @@ eng = sqlalchemy.create_engine(conn_str) set_llm_cache(SQLAlchemyCache(engine=eng)) ``` -From here, see the [LLM Caching](/docs/integrations/llms/llm_caching) documentation on how to use. +From here, see the [LLM Caching](/docs/integrations/llm_caching) documentation on how to use. diff --git a/docs/sidebars.js b/docs/sidebars.js index 1710fb705a0..5311f181920 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -353,6 +353,7 @@ module.exports = { id: "integrations/stores/index", }, }, + "integrations/llm_caching", ], link: { type: "generated-index", diff --git a/docs/vercel.json b/docs/vercel.json index 52ad6b46bc0..d14a466f477 100644 --- a/docs/vercel.json +++ b/docs/vercel.json @@ -13,6 +13,10 @@ } ], "redirects": [ + { + "source": "/docs/integrations/llms/llm_caching(/?)", + "destination": "docs/integration/llm_caching/" + }, { "source": "/docs/how_to/tool_calls_multi_modal(/?)", "destination": "/docs/how_to/multimodal_inputs/"