From 4db069026e981eb179bad8fb814c2645120bf3d9 Mon Sep 17 00:00:00 2001 From: David Westgate Date: Thu, 25 Apr 2024 14:14:45 -0700 Subject: [PATCH] update readme and .env.example --- hw2/.env.example | 3 +++ hw2/README.md | 26 +++++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 hw2/.env.example diff --git a/hw2/.env.example b/hw2/.env.example new file mode 100644 index 0000000..89e0ed5 --- /dev/null +++ b/hw2/.env.example @@ -0,0 +1,3 @@ +GOOGLE_API_KEY="" +SERPAPI_API_KEY="" +OPENAI_API_KEY="" diff --git a/hw2/README.md b/hw2/README.md index 71b47ca..a5799a0 100644 --- a/hw2/README.md +++ b/hw2/README.md @@ -1,14 +1,27 @@ +###### 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](https://github.com/wu4f/cs410g-src/blob/main/04_Agents) 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. -### Enviornment +### 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 ``` -After, populate .env with your OPENAI_API_KEY and FIREWALL_API_KEY - ### Running ``` @@ -17,8 +30,11 @@ 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! \ No newline at end of file