Notebooks
W
Weaviate
NY Roadshow Gemini

NY Roadshow Gemini

vector-searchvector-databaseretrieval-augmented-generationcloud-hyperscalersgooglellm-frameworksfunction-callingweaviate-recipesintegrationsPythonmultimodal-and-gemini-flashgenerative-aigemini

Open In Colab

Dependencies

[23]

Connect to Weaviate

1. Weaviate Cloud

The first option is the Weaviate Cloud, you can connect your notebook to a serverless Weaviate to keep the data persistent in the cloud.

[2]
[3]
True

2. Running Weaviate on GKE

[ ]

Configure Schema

[7]
<weaviate.collections.collection.Collection at 0x11d151b90>

Import Data

[4]
{'id': 'id_1',
, 'product_id': 'GGOEGAYC135814',
, 'title': 'Google Badge Tee',
, 'category': 'Apparel  Accessories Tops  Tees Tshirts',
, 'link': 'https://shop.googlemerchandisestore.com/store/20160512512/assets/items/images/GGOEGXXX1358.jpg',
, 'description': 'A classic crew neck tee made from 100 cotton Its soft and comfortable and features a small Google logo on the chest',
, 'color': "['Blue']",
, 'gender': 'Unisex',
, 'brand': 'Google'}
[5]
[6]
99

Query Time

Helper Functions

[32]

Hybrid Search

[8]
{
  "title": "Google Cloud Tshirt",
  "link": "https://shop.googlemerchandisestore.com/store/20190522377/assets/items/images/GGCPGXXX1000.jpg"
}
Output
{
  "title": "Google Cloud Puffy Stickers",
  "link": "https://shop.googlemerchandisestore.com/store/20210125633/assets/items/images/GGEBCCBA101699.jpg"
}
Output
{
  "title": "Google Art Tote Bag",
  "link": "https://shop.googlemerchandisestore.com/store/20190522377/assets/items/images/GGCPGCBA145499.jpg"
}
Output

Image to Media Search

[33]
Output
[34]
{
  "title": "Google Cloud Puffy Stickers",
  "link": "https://shop.googlemerchandisestore.com/store/20210125633/assets/items/images/GGEBCCBA101699.jpg"
}
Output
{
  "title": "Google Classic Sticker Sheet",
  "link": "https://shop.googlemerchandisestore.com/store/20160512512/assets/items/images/GGOEGFKA201499.jpg"
}
Output

Generative Search

Connect and Configure Gemini Model

[35]

Simple Test

[36]
##  Ice Breaker:  "The Story of Your Name" 

**Instructions:**

1. **Go around the circle and ask each person to tell a short, interesting story about the origin of their name.**  This could be:
    *  The meaning of their name
    *  A family member who inspired it
    *  A funny story about how they got their name
    *  Why they chose a nickname
    *  Any other personal connection to their name

2. **Encourage people to be creative and share something unique.**  It doesn't have to be a long story, just something that helps everyone learn a bit more about each other.

**Why it works:**

* **Personal:** It allows people to share something about themselves in a relaxed way.
* **Unique:** Everyone has a story about their name, making it a conversation starter.
* **Fun:** It's a lighthearted and engaging way to get to know each other.

**Bonus:** You can ask follow-up questions to keep the conversation flowing:

* "Is your name a family tradition?"
* "Do you like your name?"
* "Have you ever been mistaken for someone else with the same name?"

This ice breaker is a great way to build rapport and create a sense of community within a group. 

Generate Product Descriptions

[37]
https://shop.googlemerchandisestore.com/store/20190522377/assets/items/images/GGCPGXXX1593.jpg
Output
This lightweight and comfortable puffer jacket is perfect for any occasion. Featuring a quilted design for added warmth, it is ideal for transitioning between seasons. The hood provides extra protection from the elements, and the front zipper closure ensures a snug fit. With its sleek design and stylish black color, this jacket is perfect for men of all ages and styles.  The jacket also features a logo patch on the sleeve, which can be customized for your business or organization.
===
https://shop.googlemerchandisestore.com/store/20160512512/assets/items/images/GGOEGXXX2229.jpg
Output
This black puffer jacket is perfect for keeping you warm and stylish all winter long. It features a high collar and a zipper closure, and it's made from a lightweight, water-resistant material. It has a sleek and modern design that will go with anything in your wardrobe. Whether you're running errands or going out for a night on the town, this jacket will keep you looking and feeling your best.
===
https://shop.googlemerchandisestore.com/store/20190522377/assets/items/images/GGCPGXXX1175.jpg
Output
This is a black quilted jacket with a zipper closure and two zippered pockets. It features a company logo on the left chest. The jacket is paired with a black face mask.  This is a great option for employees to stay warm and comfortable while representing their company.
===

Search on Generated Descriptions

[39]
{
  "description": "This jacket is a great addition to any wardrobe It is lightweight and waterresistant making it perfect for a variety of weather conditions The jacket also has a hood and zip pockets making it both stylish and functional",
  "title": "GTech Puffer Jacket",
  "generated_description": "This lightweight and comfortable puffer jacket is perfect for any occasion. Featuring a quilted design for added warmth, it is ideal for transitioning between seasons. The hood provides extra protection from the elements, and the front zipper closure ensures a snug fit. With its sleek design and stylish black color, this jacket is perfect for men of all ages and styles.  The jacket also features a logo patch on the sleeve, which can be customized for your business or organization.",
  "link": "https://shop.googlemerchandisestore.com/store/20190522377/assets/items/images/GGCPGXXX1593.jpg"
}
Output