mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-27 17:08:47 +00:00
docs: make llm cache its own section (#22301)
This commit is contained in:
parent
04631439c9
commit
93049d1563
@ -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."
|
||||||
]
|
]
|
@ -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).
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
|
||||||
|
@ -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",
|
||||||
|
@ -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/"
|
||||||
|
Loading…
Reference in New Issue
Block a user