{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "id": "TpJu6BBeooES" }, "outputs": [], "source": [ "# Copyright 2023 Google LLC\n", "#\n", "# Licensed under the Apache License, Version 2.0 (the \"License\");\n", "# you may not use this file except in compliance with the License.\n", "# You may obtain a copy of the License at\n", "#\n", "# https://www.apache.org/licenses/LICENSE-2.0\n", "#\n", "# Unless required by applicable law or agreed to in writing, software\n", "# distributed under the License is distributed on an \"AS IS\" BASIS,\n", "# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n", "# See the License for the specific language governing permissions and\n", "# limitations under the License." ] }, { "cell_type": "markdown", "metadata": { "id": "EQbZKS7_ooET" }, "source": [ "# Build a Vector Search application using BigQuery DataFrames (aka BigFrames)", "\n", "
\n",
" \n",
" Run in Colab\n",
" \n",
" | \n",
" \n",
" \n",
" \n",
" View on GitHub\n",
" \n",
" | \n",
" \n",
" \n",
" | \n",
" \n",
" \n",
" | \n",
"
| \n", " | publication_number | \n", "title | \n", "title_translated | \n", "abstract | \n", "abstract_translated | \n", "cpc | \n", "cpc_low | \n", "cpc_inventive_low | \n", "top_terms | \n", "similar | \n", "url | \n", "country | \n", "publication_description | \n", "cited_by | \n", "embedding_v1 | \n", "
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "WO-2007022924-B1 | \n", "Pharmaceutical compositions with melting point... | \n", "False | \n", "The invention relates to the use of chemical f... | \n", "False | \n", "[{'code': 'A61K47/32', 'inventive': True, 'fir... | \n", "['A61K47/32' 'A61K47/30' 'A61K47/00' 'A61K' 'A... | \n", "['A61K47/32' 'A61K47/30' 'A61K47/00' 'A61K' 'A... | \n", "['composition' 'mucosa' 'melting point' 'agent... | \n", "[{'publication_number': 'WO-2007022924-B1', 'a... | \n", "https://patents.google.com/patent/WO2007022924B1 | \n", "WIPO (PCT) | \n", "Amended claims | \n", "[] | \n", "[ 5.3550040e-02 -9.3632710e-02 1.4337189e-02 ... | \n", "
| 1 | \n", "WO-03043855-B1 | \n", "Convenience lighting for interior and exterior... | \n", "False | \n", "A lighting apparatus for a vehicle(21) include... | \n", "False | \n", "[{'code': 'B60Q1/247', 'inventive': True, 'fir... | \n", "['B60Q1/247' 'B60Q1/24' 'B60Q1/02' 'B60Q1/00' ... | \n", "['B60Q1/247' 'B60Q1/24' 'B60Q1/02' 'B60Q1/00' ... | \n", "['vehicle' 'light' 'apparatus defined' 'pillar... | \n", "[{'publication_number': 'WO-03043855-B1', 'app... | \n", "https://patents.google.com/patent/WO2003043855B1 | \n", "WIPO (PCT) | \n", "Amended claims | \n", "[] | \n", "[ 0.00484032 -0.02695554 -0.20798226 -0.207528... | \n", "
| 2 | \n", "AU-2020396918-A2 | \n", "Shot detection and verification system | \n", "False | \n", "A shot detection system for a projectile weapo... | \n", "False | \n", "[{'code': 'F41A19/01', 'inventive': True, 'fir... | \n", "['F41A19/01' 'F41A19/00' 'F41A' 'F41' 'F' 'H04... | \n", "['F41A19/01' 'F41A19/00' 'F41A' 'F41' 'F' 'H04... | \n", "['interest' 'region' 'property' 'shot' 'test' ... | \n", "[{'publication_number': 'US-2023228510-A1', 'a... | \n", "https://patents.google.com/patent/AU2020396918A2 | \n", "Australia | \n", "Amended post open to public inspection | \n", "[] | \n", "[-1.49729420e-02 -2.27105440e-01 -2.68012730e-... | \n", "
| 3 | \n", "PL-347539-A1 | \n", "Concrete mix of increased fire resistance | \n", "False | \n", "The burning resistance of concrete containing ... | \n", "False | \n", "[{'code': 'Y02W30/91', 'inventive': False, 'fi... | \n", "['Y02W30/91' 'Y02W30/50' 'Y02W30/00' 'Y02W' 'Y... | \n", "['Y02W30/91' 'Y02W30/50' 'Y02W30/00' 'Y02W' 'Y... | \n", "['fire resistance' 'concrete mix' 'increased f... | \n", "[{'publication_number': 'DK-1564194-T3', 'appl... | \n", "https://patents.google.com/patent/PL347539A1 | \n", "Poland | \n", "Application | \n", "[] | \n", "[ 0.01849568 -0.05340371 -0.19257502 -0.174919... | \n", "
| 4 | \n", "AU-PS049302-A0 | \n", "Methods and systems (ap53) | \n", "False | \n", "A charging stand for charging a mobile phone, ... | \n", "False | \n", "[{'code': 'H02J7/00', 'inventive': True, 'firs... | \n", "['H02J7/00' 'H02J' 'H02' 'H' 'H04B1/40' 'H04B1... | \n", "['H02J7/00' 'H02J' 'H02' 'H' 'H04B1/40' 'H04B1... | \n", "['connection pin' 'mobile phone' 'cartridge' '... | \n", "[{'publication_number': 'AU-PS049302-A0', 'app... | \n", "https://patents.google.com/patent/AUPS049302A0 | \n", "Australia | \n", "Application filed, as announced in the Gazette... | \n", "[] | \n", "[ 0.00064732 -0.2136009 0.0040593 -0.024562... | \n", "
| \n", " | publication_number | \n", "title | \n", "content | \n", "ml_generate_embedding_result | \n", "ml_generate_embedding_status | \n", "
|---|---|---|---|---|---|
| 5611 | \n", "WO-2014005277-A1 | \n", "Resource management in a cloud computing envir... | \n", "Technologies and implementations for managing ... | \n", "[-2.92946529e-02 -1.24640828e-02 1.27173709e-... | \n", "\n", " |
| 6895 | \n", "AU-2011325479-B2 | \n", "7-([1,2,3]triazol-4-yl)-pyrrolo[2,3-b]pyrazine... | \n", "Compounds of formula I, in which R | \n", "[-6.45397678e-02 1.19616119e-02 -9.85191786e-... | \n", "\n", " |
| 6 | \n", "IL-45347-A | \n", "7h-indolizino(5,6,7-ij)isoquinoline derivative... | \n", "Compounds of the formula:\\n[US3946019A] | \n", "[-3.82784344e-02 -2.31682733e-02 -4.35006060e-... | \n", "\n", " |
| 5923 | \n", "WO-2005111625-A3 | \n", "Method to predict prostate cancer | \n", "A method for predicting the probability or ris... | \n", "[ 0.02480386 -0.01648765 0.03873815 -0.025998... | \n", "\n", " |
| 6370 | \n", "US-7868678-B2 | \n", "Configurable differential lines | \n", "Embodiments related to configurable differenti... | \n", "[ 2.71715336e-02 -1.93733890e-02 2.82729534e-... | \n", "\n", " |
5 rows × 5 columns
\n", "| \n", " | query | \n", "publication_number | \n", "title (relevant match) | \n", "abstract (relevant match) | \n", "distance | \n", "
|---|---|---|---|---|---|
| 0 | \n", "Chip assemblies employing solder bonds to back... | \n", "CN-103515336-A | \n", "Chip package, chip arrangement, circuit board ... | \n", "A chip package is provided, the chip package i... | \n", "0.287274 | \n", "
| 0 | \n", "Chip assemblies employing solder bonds to back... | \n", "US-9548145-B2 | \n", "Microelectronic assembly with multi-layer supp... | \n", "A method of forming a microelectronic assembly... | \n", "0.290519 | \n", "
| 0 | \n", "Chip assemblies employing solder bonds to back... | \n", "JP-2012074505-A | \n", "Semiconductor mounting device substrate, semic... | \n", "To provide a substrate for a semiconductor mou... | \n", "0.294241 | \n", "
| 0 | \n", "Chip assemblies employing solder bonds to back... | \n", "US-2015380164-A1 | \n", "Ceramic electronic component | \n", "A ceramic electronic component includes an ele... | \n", "0.295716 | \n", "
| 0 | \n", "Chip assemblies employing solder bonds to back... | \n", "US-2012153447-A1 | \n", "Microelectronic flip chip packages with solder... | \n", "Processes of assembling microelectronic packag... | \n", "0.300337 | \n", "
5 rows × 5 columns
\n", "