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

This commit is contained in:
Bagatur 2024-05-30 00:17:33 -07:00 committed by GitHub
parent 04631439c9
commit 93049d1563
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 11 additions and 6 deletions

View File

@ -5,7 +5,7 @@
"id": "f36d938c", "id": "f36d938c",
"metadata": {}, "metadata": {},
"source": [ "source": [
"# LLM Caching integrations\n", "# Model caches\n",
"\n", "\n",
"This notebook covers how to cache results of individual LLM calls using different caches." "This notebook covers how to cache results of individual LLM calls using different caches."
] ]

View File

@ -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 ## 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). Learn more in the [example notebook](/docs/integrations/memory/astradb_chat_message_history).

View File

@ -40,7 +40,7 @@ from langchain_community.cache import CassandraCache
set_llm_cache(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 ## 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 ## Document loader

View File

@ -48,6 +48,6 @@ eng = sqlalchemy.create_engine(conn_str)
set_llm_cache(SQLAlchemyCache(engine=eng)) 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.

View File

@ -353,6 +353,7 @@ module.exports = {
id: "integrations/stores/index", id: "integrations/stores/index",
}, },
}, },
"integrations/llm_caching",
], ],
link: { link: {
type: "generated-index", type: "generated-index",

View File

@ -13,6 +13,10 @@
} }
], ],
"redirects": [ "redirects": [
{
"source": "/docs/integrations/llms/llm_caching(/?)",
"destination": "docs/integration/llm_caching/"
},
{ {
"source": "/docs/how_to/tool_calls_multi_modal(/?)", "source": "/docs/how_to/tool_calls_multi_modal(/?)",
"destination": "/docs/how_to/multimodal_inputs/" "destination": "/docs/how_to/multimodal_inputs/"