an ongoing and growing gathering of python stuff (mostly for wrestling with those enigmatic LLMs!)
evalrouting_code_generator.py- make the LLM write code snippets for you
- makes use of evaluative routing (iterative improvement)
orchestrated_trip.py- travel itinerary maker
- makes use of LLM orchestration (splits big task into subtasks)
output_json.py- prompt response as a JSON object
- makes use of
response_format
prompt_chaining_summarizer.py- LLM response summarizer (get output in 1 sentence and 3 bullet points!)
- makes use of prompt chaining
git clone https://github.com/joncoded/jonopyth.git
you will require a free Groq API key
(Groq is not to be confused with xAI's Grok)
% export GROQ_API_KEY=your_api_key
C:\> set GROQ_API_KEY=your_api_key
after cloning the repo onto your local machine, run this command
on Terminal (Mac/Linux):
% python3 anypyfile.py
on Command Prompt (Windows):
C:\> python anypyfile.py
note: everything is text-based (no website or local web app yet!)