Skip to content

panchishin/genai_as_regular_code

Repository files navigation

README

Thanks for looking at these examples of how GEN AI can be used in everyday code using API calls.

There are 7 examples that use simple calls that help with regular everyday tasks.

They all use llm_service.py which is simply a REST call to Ollama

You can install Ollama locally from https://ollama.ai

Once installed you can load a wide variety of language models.

For these examples use the following zsh command that loads the ollama file which at the time of writing is a fairly powerful model that runs fairly fast on local hardward. You'll need about 8G of free RAM to run it, but that should be very doable on our hardware.

I recommend Python >= 3.9

ollama run qwen2.5-coder:7b
pip install -r requirements.txt

Once you run that on the command line the python files should work fine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages