mirror of
https://github.com/hwchase17/langchain
synced 2024-10-29 17:07:25 +00:00
303 lines
1.5 MiB
Plaintext
303 lines
1.5 MiB
Plaintext
|
{
|
||
|
"cells": [
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "cd835d40",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Multi-modal outputs: Image & Text"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "fa88e03a",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"This notebook shows how non-text producing tools can be used to create multi-modal agents.\n",
|
||
|
"\n",
|
||
|
"This example is limited to text and image outputs and uses UUIDs to transfer content across tools and agents. \n",
|
||
|
"\n",
|
||
|
"This example uses Steamship to generate and store generated images. Generated are auth protected by default. \n",
|
||
|
"\n",
|
||
|
"You can get your Steamship api key here: https://steamship.com/account/api"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 2,
|
||
|
"id": "0653da01",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"from steamship import Block, Steamship\n",
|
||
|
"import re\n",
|
||
|
"from IPython.display import Image"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 3,
|
||
|
"id": "f6933033",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"from langchain import OpenAI\n",
|
||
|
"from langchain.agents import initialize_agent\n",
|
||
|
"from langchain.agents import AgentType\n",
|
||
|
"from langchain.tools import SteamshipImageGenerationTool"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 4,
|
||
|
"id": "71e51e53",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"llm = OpenAI(temperature=0)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "a9fc769d",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## Dall-E "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 5,
|
||
|
"id": "cd177dfe",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tools = [\n",
|
||
|
" SteamshipImageGenerationTool(model_name= \"dall-e\")\n",
|
||
|
"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 6,
|
||
|
"id": "c71b1e46",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"mrkl = initialize_agent(tools, \n",
|
||
|
" llm, \n",
|
||
|
" agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, \n",
|
||
|
" verbose=True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 7,
|
||
|
"id": "603aeb9a",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
|
||
|
"\u001b[32;1m\u001b[1;3m I need to generate an image of a parrot playing soccer.\n",
|
||
|
"Action: GenerateImage\n",
|
||
|
"Action Input: A parrot wearing a soccer uniform, kicking a soccer ball.\u001b[0m\n",
|
||
|
"Observation: \u001b[36;1m\u001b[1;3mE28BE7C7-D105-41E0-8A5B-2CE21424DFEC\u001b[0m\n",
|
||
|
"Thought:\u001b[32;1m\u001b[1;3m I now have the UUID of the generated image.\n",
|
||
|
"Final Answer: The UUID of the generated image is E28BE7C7-D105-41E0-8A5B-2CE21424DFEC.\u001b[0m\n",
|
||
|
"\n",
|
||
|
"\u001b[1m> Finished chain.\u001b[0m\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"output = mrkl.run(\"How would you visualize a parot playing soccer?\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 8,
|
||
|
"id": "25eb4efe",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"def show_ouput(output):\n",
|
||
|
" \"\"\"Display the multi-modal output from the agent.\"\"\"\n",
|
||
|
" UUID_PATTERN = re.compile(\n",
|
||
|
" r\"([0-9A-Za-z]{8}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{4}-[0-9A-Za-z]{12})\"\n",
|
||
|
" )\n",
|
||
|
"\n",
|
||
|
" outputs = UUID_PATTERN.split(output)\n",
|
||
|
" outputs = [re.sub(r\"^\\W+\", \"\", el) for el in outputs] # Clean trailing and leading non-word characters\n",
|
||
|
"\n",
|
||
|
" for output in outputs: \n",
|
||
|
" maybe_block_id = UUID_PATTERN.search(output)\n",
|
||
|
" if maybe_block_id:\n",
|
||
|
" display(Image(Block.get(Steamship(), _id=maybe_block_id.group()).raw()))\n",
|
||
|
" else:\n",
|
||
|
" print(output, end=\"\\n\\n\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 9,
|
||
|
"id": "082792a0",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"The UUID of the generated image is \n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAAAaGVYSWZNTQAqAAAACAACknwAAgAAACkAAAAmkoYAAgAAABgAAABQAAAAAE9wZW5BSS0tYjcxM2Y4N2E3MGY4M2NhOGI3MzQwZDlkNWZiZjljOTAAAE1hZGUgd2l0aCBPcGVuQUkgREFMTC1FAAkzXE4AAQAASURBVHgBABaE6X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/wEAAAEBAAEBAAIAAAD/AAECAAEBAgABAAABAP8CAAAB/wAAAP8BAQD/AP8AAP8AAAD/AAAAAAD//gAAAAAA/wEA/wEB/gAAAAH/AQAAAP//AAAAAQEAAAEAAAH/AQEAAAIAAAAAAAEAAQAAAAAA/wD+/wD//gAAAAAAAQACAf8BAQIA/wAA/wAAAP8AAQD/AAD/Af//AAAAAP8A/wEAAAEBAf8AAAAAAAAAAQIBAAIAAP///wEAAAIBAAEAAAAA/wH//wAB/wD+AP8AAAEAAP//AAAA//////8A/wD//gD/AP4AAP8BAAEBAAABAAAAAAD/AAAAAP8BAP8AAAAAAQEA//8AAAAAAAH/AQAAAAAA/wABAAAAAgAAAQEB/wH/AAD//wAAAAEBAP//AAAAAAAAAP8AAAD/AQEBAQEBAAEBAAEA/wABAQEAAAABAQAAAP8AAQAAAAAAAAAAAQEAAQEAAf8BAAEAAAD/Af8AAAD/AAAA/wABAAAAAQAC/wEAAAEAAQAA//8BAAAAAP8BAAABAP//AQABAAABAbKztPj19QA
|
||
|
"text/plain": [
|
||
|
"<IPython.core.display.Image object>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"show_ouput(output)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "markdown",
|
||
|
"id": "e247b2c4",
|
||
|
"metadata": {},
|
||
|
"source": [
|
||
|
"## StableDiffusion "
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 10,
|
||
|
"id": "315025e7",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"tools = [\n",
|
||
|
" SteamshipImageGenerationTool(model_name= \"stable-diffusion\")\n",
|
||
|
"]"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 11,
|
||
|
"id": "7930064a",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": [
|
||
|
"mrkl = initialize_agent(tools, \n",
|
||
|
" llm, \n",
|
||
|
" agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, \n",
|
||
|
" verbose=True)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 12,
|
||
|
"id": "611a833d",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\n",
|
||
|
"\n",
|
||
|
"\u001b[1m> Entering new AgentExecutor chain...\u001b[0m\n",
|
||
|
"\u001b[32;1m\u001b[1;3m I need to generate an image of a parrot playing soccer.\n",
|
||
|
"Action: GenerateImage\n",
|
||
|
"Action Input: A parrot wearing a soccer uniform, kicking a soccer ball.\u001b[0m\n",
|
||
|
"Observation: \u001b[36;1m\u001b[1;3m25BB588F-85E4-4915-82BE-67ADCF974881\u001b[0m\n",
|
||
|
"Thought:\u001b[32;1m\u001b[1;3m I now have the UUID of the generated image.\n",
|
||
|
"Final Answer: The UUID of the generated image is 25BB588F-85E4-4915-82BE-67ADCF974881.\u001b[0m\n",
|
||
|
"\n",
|
||
|
"\u001b[1m> Finished chain.\u001b[0m\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"output = mrkl.run(\"How would you visualize a parot playing soccer?\")"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": 13,
|
||
|
"id": "d7a3edaf",
|
||
|
"metadata": {},
|
||
|
"outputs": [
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"The UUID of the generated image is \n",
|
||
|
"\n"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"data": {
|
||
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAgAAAAIACAIAAAB7GkOtAAEAAElEQVR4nFT9aayt2XYdho055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8z2Nkpi30eYDVAIYIAe/hM9rApohHBfphnHJBgA52iJukuytYY7I3SfRx4DQQUsSGEKzBRFXf2uISNiCFiVCjKYJSZ6clYpaiDxBzG7hEWKcjeiWlUMAioAiIebqYJ8U6conKrqoZHBvMZVBjgEIHsKbwvmWpEA5KlSaSbWRRYwBKMb1kys/cOBCLnuatZCgTB6+qexmcyd4iqsc2XTLiHqmQSziPohKx0zKSQEGQgnQG+fibrNtbgEZWBtw8weZyCgCGTTGYkAaMIiNarV9XkUe6uTQmPjHzsrDS8eyQ00ZChIj1cRKtdqmI5oSlENLpHpqmJqULqWSNFERkiMFNN8T7zHbfJfPa2aBmB0UoKMdVgTZmtTQioaEQQ9CcqpGYhgdEjbG9eJrp3SajZFi5lDFQVd5YMRKskhUWLREY6CKuYSgba1CLDVMMjMjJgTeHR0xUtK8UW9hoZqqqNBzqDoKaKiKaHFpSeLDcS6fyxg4QQYdLCOPqeCFXZwpHRnVV8ocURSDFTMOL/AvhP5EdE+Goy05haRjrKzEQ2s/pOTJOAqmUgJDKcfx1S/QQATRGVZvXNTRVC6IC5plAdbUasbY4uouRSMnlxRnITU5HsXvHP2hx9alOfgeyTLeCzZa5am9a+ckw9dwM7jtWmt4tYbrKt+/IipjnaJu1ixiYXok0NtspJ5gbZ35FpEYuFTlNa9uy2mFSXfT11rDZi4ZlqHuvN5TxLnqOfT37R8jTnE2x
|
||
|
"text/plain": [
|
||
|
"<IPython.core.display.Image object>"
|
||
|
]
|
||
|
},
|
||
|
"metadata": {},
|
||
|
"output_type": "display_data"
|
||
|
},
|
||
|
{
|
||
|
"name": "stdout",
|
||
|
"output_type": "stream",
|
||
|
"text": [
|
||
|
"\n",
|
||
|
"\n"
|
||
|
]
|
||
|
}
|
||
|
],
|
||
|
"source": [
|
||
|
"show_ouput(output)"
|
||
|
]
|
||
|
},
|
||
|
{
|
||
|
"cell_type": "code",
|
||
|
"execution_count": null,
|
||
|
"id": "55556043",
|
||
|
"metadata": {},
|
||
|
"outputs": [],
|
||
|
"source": []
|
||
|
}
|
||
|
],
|
||
|
"metadata": {
|
||
|
"kernelspec": {
|
||
|
"display_name": "Python 3 (ipykernel)",
|
||
|
"language": "python",
|
||
|
"name": "python3"
|
||
|
},
|
||
|
"language_info": {
|
||
|
"codemirror_mode": {
|
||
|
"name": "ipython",
|
||
|
"version": 3
|
||
|
},
|
||
|
"file_extension": ".py",
|
||
|
"mimetype": "text/x-python",
|
||
|
"name": "python",
|
||
|
"nbconvert_exporter": "python",
|
||
|
"pygments_lexer": "ipython3",
|
||
|
"version": "3.11.2"
|
||
|
}
|
||
|
},
|
||
|
"nbformat": 4,
|
||
|
"nbformat_minor": 5
|
||
|
}
|