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/README.md
2024-04-25 14:14:45 -07:00

40 lines
1.2 KiB
Markdown

###### 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.
### 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!