community: Use langchain-astradb for AstraDB caches (#18419)

- [x] Needs https://github.com/langchain-ai/langchain-datastax/pull/4
- [x] Needs a new release of langchain-astradb
This commit is contained in:
Christophe Bornet
2024-03-19 19:04:36 +01:00
committed by GitHub
parent 17c62e0f3a
commit 30e4a35d7a
2 changed files with 13 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ See the [usage example](/docs/integrations/memory/astradb_chat_message_history#e
```python
from langchain.globals import set_llm_cache
from langchain_community.cache import AstraDBCache
from langchain_astradb import AstraDBCache
set_llm_cache(AstraDBCache(
api_endpoint=ASTRA_DB_API_ENDPOINT,
@@ -71,7 +71,7 @@ Learn more in the [example notebook](/docs/integrations/llms/llm_caching#astra-d
```python
from langchain.globals import set_llm_cache
from langchain_community.cache import
from langchain_astradb import AstraDBSemanticCache
set_llm_cache(AstraDBSemanticCache(
embedding=my_embedding,