tanaike

The Thinker

Convert Contact URL to Resource Name for People API using Google Apps Script

Gists This is a sample script for converting a contact URL of “person/c###” to a resource name “people/c###” for People API using Google Apps Script. When you open each contact at Contacts with your browser, you can see the URL like https://contacts.google.com/person/c###################. Here, you might have a situation where you are required to retrieve the resource name for People API from this URL. But, in the current stage, person/c################### cannot be directly used as the resource name people/c###################.

Semantic Search using Corpus of Gemini API with Google Apps Script

Gists Description In the current stage, v1beta of Gemini API can use the corpora. Ref When the corpora are used, the values can be searched with the semantic search. In the current stage, 5 corpora can be created in a single project. And, each corpus can have 10,000 documents and 1,000,000 chunks. In this report, I would like to introduce a method for achieving the semantic search using the corpora with Google Apps Script.