Web Application Ai Agent to generate joke using the Incongruity technique
- Interactive web application
- Uses the LangGraph framework for natural language processing to help joke generation.
- Uses LLM to make two incongruent topics to create a joke
- Serverless backend API services
- Python 3.12
- Required Python libraries (see
requirements.txt
for details). - Groq API Key
- Create Groq API key. You can retrieve the key from the GROQ Console.
When installing dependencies for lambda
pip install -r ./requirements.txt --platform manylinux_2_17_x86_64 --only-binary=:all: --target ./{virtenv}/Lib/site-packages --upgrade --no-cache-dir
Create zip file
Compress-Archive .\joke-writer-env\Lib\site-packages\* aws_lambda.zip
Compress-Archive .\service\* -Update aws_lambda.zip
<-- run as you update service
npm run predeploy
- this generates 'out' folder