Skip to content

Instantly share code, notes, and snippets.

View gautamborgohain's full-sized avatar

Gautam Borgohain gautamborgohain

  • Singapore
View GitHub Profile
@gautamborgohain
gautamborgohain / research_agent.py
Last active August 22, 2024 08:10
Simple script implementing a command line interface to run ReAct agent on PDFs and CSV using local LLM or OpenAI
"""
This script creates and interacts with ReActAgents for PDF and CSV data.
Dependencies (install in your virtual environment) :
python = "3.11.1"
llama-index-agent-openai = "^0.2.5"
openai = "^1.30.1"
pandas = "^2.2.2"
fitz = "^0.0.1.dev2"
@gautamborgohain
gautamborgohain / fastai2-test-drive.ipynb
Created August 23, 2020 14:25
fastai2 test drive.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gautamborgohain
gautamborgohain / Statistical Tests and how to used them.ipynb
Created August 7, 2020 05:32
Statistical tests and how to use them
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gautamborgohain
gautamborgohain / writing_code_python_way.ipynb
Last active August 5, 2020 02:07
pers/playground/notebooks/writing_code_python_way.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gautamborgohain
gautamborgohain / edit_trust_relationship.json
Created February 18, 2020 16:32
edit trust relationship json in zappa execution role
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "",
"Effect": "Allow",
"Principal": {
"Service": [
"lambda.amazonaws.com",
"events.amazonaws.com",
@gautamborgohain
gautamborgohain / zappa_lambda_execution.json
Created February 18, 2020 16:29
Permissions for lambda functions deployed with Zappa
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"logs:*"
],
"Resource": "arn:aws:logs:*:*:*"
},
@gautamborgohain
gautamborgohain / zappa_deployment_policy.json
Created February 18, 2020 16:23
Policy document for to allow zappa to deploy to AWS Lambda. Also gives access to some other services that could be tied with the Lambda app
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "VisualEditor0",
"Effect": "Allow",
"Action": [
"iam:GetPolicyVersion",
"cloudformation:DeleteStackInstances",
"events:EnableRule",