'processingTimeMs': 2090.2822139996715,     'index_name': 'langchain-multimodal-demo',     'items': [{'_id': 'aa92fc1c-1fb2-4d86-b027-feb507c419f7',       'result': 'created',       'status': 201},      {'_id': '5142c258-ef9f-4bf2-a1a6-2307280173a0',       'result': 'created',       'status': 201}]}def get_content(res):    """Helper to format Marqo's documents into text to be used as page_content"""    return f"{res['caption']}: {res['image']}"docsearch = Marqo(client, index_name, page_content_builder=get_content)query = "vehicles that fly"doc_results = docsearch.similarity_search(query)for doc in doc_results:    print(doc.page_content)    Plane: https://raw.githubusercontent.com/marqo-ai/marqo/mainline/examples/ImageSearchGuide/data/image2.jpg    Bus: https://raw.githubusercontent.com/marqo-ai/marqo/mainline/examples/ImageSearchGuide/data/image4.jpgText only example‚Äã# use a new indexindex_name = "langchain-byo-index-demo"# incase the demo is re-runtry:    client.delete_index(index_name)except Exception:    print(f"Creating {index_name}")# This index could have been created by another systemclient.create_index(index_name)client.index(index_name).add_documents(    [        {            "Title": "Smartphone",            "Description": "A smartphone is a portable computer device that combines mobile telephone "            "functions and computing functions into one unit.",        },        {            "Title": "Telephone",            "Description": "A telephone is a telecommunications device that permits two or more users to"            "conduct a conversation when they are too far apart to be easily heard directly.",        },    ],)    {'errors': False,     'processingTimeMs': 139.2144540004665,     'index_name': 'langchain-byo-index-demo',     'items': [{'_id': '27c05a1c-b8a9-49a5-ae73-fbf1eb51dc3f',       'result': 'created',       'status': 201},      {'_id': '6889afe0-e600-43c1-aa3b-1d91bf6db274',       'result': 'created',       'status': 201}]}# Note
This notebook shows how to use functionality related to the Marqo vectorstore.
This notebook shows how to use functionality related to the Marqo vectorstore. ->: 'processingTimeMs': 2090.2822139996715,     'index_name': 'langchain-multimodal-demo',     'items': [{'_id': 'aa92fc1c-1fb2-4d86-b027-feb507c419f7',       'result': 'created',       'status': 201},      {'_id': '5142c258-ef9f-4bf2-a1a6-2307280173a0',       'result': 'created',       'status': 201}]}def get_content(res):    """Helper to format Marqo's documents into text to be used as page_content"""    return f"{res['caption']}: {res['image']}"docsearch = Marqo(client, index_name, page_content_builder=get_content)query = "vehicles that fly"doc_results = docsearch.similarity_search(query)for doc in doc_results:    print(doc.page_content)    Plane: https://raw.githubusercontent.com/marqo-ai/marqo/mainline/examples/ImageSearchGuide/data/image2.jpg    Bus: https://raw.githubusercontent.com/marqo-ai/marqo/mainline/examples/ImageSearchGuide/data/image4.jpgText only example‚Äã# use a new indexindex_name = "langchain-byo-index-demo"# incase the demo is re-runtry:    client.delete_index(index_name)except Exception:    print(f"Creating {index_name}")# This index could have been created by another systemclient.create_index(index_name)client.index(index_name).add_documents(    [        {            "Title": "Smartphone",            "Description": "A smartphone is a portable computer device that combines mobile telephone "            "functions and computing functions into one unit.",        },        {            "Title": "Telephone",            "Description": "A telephone is a telecommunications device that permits two or more users to"            "conduct a conversation when they are too far apart to be easily heard directly.",        },    ],)    {'errors': False,     'processingTimeMs': 139.2144540004665,     'index_name': 'langchain-byo-index-demo',     'items': [{'_id': '27c05a1c-b8a9-49a5-ae73-fbf1eb51dc3f',       'result': 'created',       'status': 201},      {'_id': '6889afe0-e600-43c1-aa3b-1d91bf6db274',       'result': 'created',       'status': 201}]}# Note