Skip to content

Instantly share code, notes, and snippets.

View IvanCampos's full-sized avatar

Ivan Campos IvanCampos

View GitHub Profile
@IvanCampos
IvanCampos / openai-api-embeddings-search.py
Last active February 2, 2023 04:23
uses the open ai api embeddings for search
import os
import io
import openai
import numpy as np
from numpy.linalg import norm
import pandas as pd
def lambda_handler(event, context):
openai.api_key = os.getenv('OPENAI_API_KEY')
We can make this file beautiful and searchable if this error is corrected: It looks like row 7 should actually have 3 columns, instead of 1. in line 6.
Name,description,link
AWS robomaker, Makes it easy to develop simulate and deploy intelligent robotics, https://aws.amazon.com/about-aws/whats-new/2018/11/announcing-aws-robomaker-a-new-cloud-robotics-service/
EBS maximum PIOPS increase, Doubled EBS Provisioned IOPS SSD capacity, https://aws.amazon.com/about-aws/whats-new/2018/11/amazon-elastic-block-store-announces-double-the-performance-of-provisioned-iops-volumes/
AWS snowball edge general availability, AWS snowball edge compute optimized is now generally available, https://aws.amazon.com/about-aws/whats-new/2018/11/aws-snowball-edge-compute-optimized-is-available/
AWS SFTP to s3 service, A service for SFTP'ing to your bucket fully managed!, https://aws.amazon.com/about-aws/whats-new/2018/11/aws-transfer-for-sftp-fully-managed-sftp-for-s3/
AWS datasync, A service to simplify automate and accelerate online data transfer, https://aws.amazon.com/about-aws/whats-new/2018/11/introducing-aws-datasync-for-accelerated-online-data-transfer/
S3 Batch operations (pre