This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
gensec-westgate-djw2/hw2
2024-04-25 14:14:45 -07:00
..
__init__.py add support for ksp rag from hw1 2024-04-25 13:55:29 -07:00
.env.example update readme and .env.example 2024-04-25 14:14:45 -07:00
.requirements.txt start with adapting example, and seperating out tooling into file 2024-04-21 13:20:43 -07:00
app.py add support for ksp rag from hw1 2024-04-25 13:55:29 -07:00
README.md update readme and .env.example 2024-04-25 14:14:45 -07:00
requirements.txt start with adapting example, and seperating out tooling into file 2024-04-21 13:20:43 -07:00
screencast_url.txt initial commit for hw2 2024-04-19 18:48:45 +00:00
tools.py add support for ksp rag from hw1 2024-04-25 13:55:29 -07:00

David Westgate 26 April 2024

HW2 for gensec

This appliation is a langchain agent using both provided imported tools and custom tools. This agent is derived from agent and tools example found here and includes additions to support dall-e image generation, google jobs searching, and ansering of questions related to the game kerbal space program, from the RAG application developed for homework 1.

Setup

Install python3

If not already done, we first must load the documents needed for the kerbal space program rag application

cd hw1
pip install -r requirnments.txt
cp .env.example .env
#populate .env with the needed keys
python3 loader.py

After this, we can setup our langchain agent Install python3, then run the following:

cd ../hw2
pip install -r requirements.txt
cp .env.example .env
#populate .env with the needed keys

Running

python3 app.py

Example Queries

What is the IP address of dwestgate.us
What is the OS version and linux kernel version of the current machine?
Generate an image of a gray calico cat about to pounce on a laser pointer dot
Find an AI related software job posting near Portland, Oregon
Tell me about the planet Duna

Enjoy!