docs: Classification Notebook Update (#32357)

- **Description:** Updating the Classification notebook which was raised
[here](https://github.com/langchain-ai/langchain/issues/32354)
- **Issue:** Fixes #32354

---------

Co-authored-by: Mason Daugherty <github@mdrxy.com>
This commit is contained in:
Mohammad Mohtashim 2025-08-18 23:45:03 +05:00 committed by GitHub
parent a6690eb9fd
commit 4fb1132e30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -49,7 +49,7 @@
"metadata": {},
"outputs": [],
"source": [
"pip install --upgrade --quiet langchain-core"
"pip install -U langchain-core"
]
},
{
@ -89,7 +89,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "39f3ce3e",
"metadata": {},
"outputs": [],
@ -124,7 +124,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "5509b6a6",
"metadata": {},
"outputs": [
@ -134,7 +134,7 @@
"Classification(sentiment='positive', aggressiveness=1, language='Spanish')"
]
},
"execution_count": 8,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
@ -157,17 +157,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "9154474c",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'sentiment': 'enojado', 'aggressiveness': 8, 'language': 'es'}"
"{'sentiment': 'angry', 'aggressiveness': 8, 'language': 'Spanish'}"
]
},
"execution_count": 10,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
@ -218,7 +218,7 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 5,
"id": "6a5f7961",
"metadata": {},
"outputs": [],
@ -237,7 +237,7 @@
},
{
"cell_type": "code",
"execution_count": 15,
"execution_count": 6,
"id": "e5a5881f",
"metadata": {},
"outputs": [],
@ -268,17 +268,17 @@
},
{
"cell_type": "code",
"execution_count": 12,
"execution_count": 7,
"id": "d9b9d53d",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Classification(sentiment='positive', aggressiveness=1, language='Spanish')"
"Classification(sentiment='happy', aggressiveness=1, language='spanish')"
]
},
"execution_count": 12,
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
@ -291,17 +291,17 @@
},
{
"cell_type": "code",
"execution_count": 13,
"execution_count": 8,
"id": "1c12fa00",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Classification(sentiment='enojado', aggressiveness=8, language='es')"
"Classification(sentiment='sad', aggressiveness=4, language='spanish')"
]
},
"execution_count": 13,
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
@ -314,17 +314,17 @@
},
{
"cell_type": "code",
"execution_count": 14,
"execution_count": 9,
"id": "0bdfcb05",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Classification(sentiment='neutral', aggressiveness=1, language='English')"
"Classification(sentiment='happy', aggressiveness=1, language='english')"
]
},
"execution_count": 14,
"execution_count": 9,
"metadata": {},
"output_type": "execute_result"
}
@ -359,7 +359,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "langchain-monorepo",
"language": "python",
"name": "python3"
},
@ -373,7 +373,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.4"
"version": "3.12.11"
}
},
"nbformat": 4,