| .gitignore | ||
| 02_oms_sql_pipeline.py | ||
| README.md | ||
Østfold Milsim LLM RAG
This is a comprehensive script that uses database (MariaDB) querying to provide a retrieval augmented generation functionality for the language model accessed through OpenRouter middleware. All configuration values can be edited through open web ui's valve interface.
The language model is first asked to provide a syntactically correct query based on the question the user have asked. It then runs that query and sorts the results from a python toupple data set into a presentable markdown form.
Since the response token window for any LLM are limited when it comes to retrieving large results from a database, another layer is also introduced. The results from the database query are also exported to a Microsoft Excel file, uploaded to a cloud provider (seafile, but any cloud provider can be used through a restful API interface) and shared. The share link is exposed to the response, so the full dataset can be reviewed.