You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add Cosmos DB Chat Message History to Microsoft doc (#1306)
## Overview
Adding Cosmos DB Chat Message History to Microsoft doc
## Type of change
Update existing documentation
## Related issues/PRs
N/A
## Checklist
<!-- Put an 'x' in all boxes that apply -->
- [x] I have read the [contributing guidelines](README.md)
- [x] I have tested my changes locally using `docs dev`
- [x] All code examples have been tested and work correctly
- [x] I have used **root relative** paths for internal links
- [ ] I have updated navigation in `src/docs.json` if needed
- I have gotten approval from the relevant reviewers
- (Internal team members only / optional) I have created a preview
deployment using the [Create Preview Branch
workflow](https://github.com/langchain-ai/docs/actions/workflows/create-preview-branch.yml)
## Additional notes
I am a Cosmos DB PM at Microsoft and noticed this was missing.
Co-authored-by: Mason Daugherty <mason@langchain.dev>
Copy file name to clipboardExpand all lines: src/oss/python/integrations/providers/microsoft.mdx
+39-8Lines changed: 39 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -365,6 +365,37 @@ See a [usage example](/oss/integrations/document_loaders/url/#playwright-url-loa
365
365
from langchain_community.document_loaders.onenote import OneNoteLoader
366
366
```
367
367
368
+
## Memory
369
+
370
+
### Azure Cosmos DB Chat Message History
371
+
372
+
>[Azure Cosmos DB](https://learn.microsoft.com/azure/cosmos-db/) provides chat message history storage for conversational AI applications, enabling you to persist and retrieve conversation history with low latency and high availability.
373
+
374
+
<CodeGroup>
375
+
```bash pip
376
+
pip install langchain-azure-ai
377
+
```
378
+
379
+
```bash uv
380
+
uv add langchain-azure-ai
381
+
```
382
+
</CodeGroup>
383
+
384
+
Configure your Azure Cosmos DB connection:
385
+
386
+
```python
387
+
from langchain_azure_ai.chat_message_histories import CosmosDBChatMessageHistory
0 commit comments