Skip to content

hardiksgit/Intent-AI-Gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lambda-file-processor

Features

This lambda function gets triggered on the s3 event, which further reads the uploaded file and parses the messages. It uses OpenAI gpt-3.5-turbo model to find the intents from the messages. I recommend checking the credits on your openai free account before running, otherwise paid plan won't be a problem. After generating intents, it utilizes the huggingface AI model to match the best intent and build the response incluing the sender's username. The function stores all the data to mongodb.

Getting Started

1. Clone the Repository

git clone https://github.com/hardiksgit/Intent-AI-Gen.git
cd Intent-AI-Gen

2. Install Dependancies

npm install

4. Configure the Environment Variables in AWS lambda

HUGGINGFACE_API_KEY=""
MONGODB_URI=""
OPENAI_API_KEY=""

5: Create iam role and policies for lambda and allow getObject operation. Attach the same to lambda.

I recommend increasing RPM in openai API settings for larger csv files.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published