cag_cli
is a CLI application built with Typer and cag — a simple Python library that allows loading various data sources into a unified XML format, which can be ingested into a model's context.
Model inference is not supported yet; however, loading PDFs, images (with OpenAI), and simple text files into the unified XML-text format is supported.
Here is a usage example (a directory with files was cached):
Here is an example of image file caching. Before running the commands, the OPENAI_API_KEY
environment variable was set: