Caillou is a project to explore AI technologies (e.g. LLMs, LangChain etc.) by implementing some utilities for the terminal
Some topics to explore:
- Use an LLM to translate a text to another language
- Allow to use a local LLM to guaranty privacy and free of charge LLM usage
- Use an LLM to generate an answer by using the content of local documents
- Use an LLM to generate an answer by using a function or tool
etc.
You can install the application the following command:
pip install caillou
In order to use the application with an OpenAI LLM, you need to provide an API key defined as an environment variable OPENAI_API_KEY
.
N.B. This API key can also be defined directly in the configuration file created after the first execution (e.g. on Linux: $HOME/.config/caillou/config.json
)
In order to use the application with a local LLM, you need to:
- Install Ollama
- Install the desired LLM (e.g. "llama3", "mistral" etc.) with Ollama
- Adapt the configuration file created after the first execution (e.g. on Linux:
$HOME/.config/caillou/config.json
)
Using the translate
command, you can quickly translate a sentence:
$ caillou translate FR This app rocks bro!
Cette application déchire mec !
(Generated with LLM: openai-gpt-3.5-turbo)
Using the roll
command, you can list included applications:
$ caillou roll
Here is a list of available applications:
- translator
and launch one of them:
$ caillou roll translator