Skip to content

Instantly share code, notes, and snippets.

View kination's full-sized avatar
🎯
Focusing

K.I. (Dennis) Jung kination

🎯
Focusing
View GitHub Profile
import boto3
from botocore.config import Config
INDEX_ID = 'add-kendra-index-id'
KENDRA_DATA_SOURCE_ID = 'add-kendra-data-source-id'
# ------- Dummy datasets --------
TITLES = list()
DOCS = list()
const fs = require('fs')
const readline = require('readline')
const { google } = require('googleapis')
// If modifying these scopes, delete token.json.
const SCOPES = ['https://www.googleapis.com/auth/spreadsheets.readonly']
// The file token.json stores the user's access and refresh tokens, and is
// created automatically when the authorization flow completes for the first
// time.
const TOKEN_PATH = 'token.json'
/build