Skip to content

The agent engineering platform.

docs: make llm cache its own section (#22301)

Bagatur93049d15638d
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 1bf260e69b..42e2036eef 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 49a41ee5ca..d545d1ea02 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 be28a34965..cbef4c693b 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 827c654f92..790f8167aa 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 1710fb705a..5311f18192 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 52ad6b46bc..d14a466f47 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/"