- build an assistant
- embed a tool (Google search)
Install leicht
First things first, install theleicht package. You can install it using pip or from source.
Build an Assistant
We’ll be building an assistant using theAssistant class. The LLM of choice in this example is G4F 1.
Here, we’ll add the “search” tool to allow the LLM to look up resources online.
app.py
G4F is free, it should ONLY be used for trial and NOT for production.