Simple Weather Agent created using Hugging Face's smolagents library
- Python
v3.3 > - Docker
This project uses Python's [venv][venv] to manage the Virtual Environment, you can create the .venv directory as follows:
python3 -m venv .venv
venvcomes as part of Python's standard library since Python v3.3
.venvshould not be commited to the Git Repository
Then activate the Virtual Environment by executing:
source .venv/bin/activateConfirm the virtual environment is activated by checking Python binary path:
which pythonWhile the virtual environment is active, the above command will output a filepath that includes the
.venvdirectory, e.g..venv/bin/python.
If you want to switch projects or leave your virtual environment, deactivate the environment:
deactivate
This project uses Dockerized Ollama as LLM, the included Justfile provides a convenient recipe to run the Ollama container.
just run-ollamaThen you can install the Model using:
just run-modelThis project is using a memory cheap model: https://ollama.com/library/smollm:1.7b