LLM-Assisted Data Cleaning with Multi-Provider Support

Detects and suggests fixes for semantic inconsistencies in data frames by calling large language models (LLMs) through a unified, provider-agnostic interface. Supported providers include 'OpenAI' ('GPT-4o', 'GPT-4o-mini') < https://platform.openai.com>, 'Anthropic' ('Claude') < https://www.anthropic.com>, 'Google' ('Gemini') < https://ai.google.dev>, 'Groq' (free-tier 'LLaMA' and 'Mixtral') < https://groq.com>, and local 'Ollama' models < https://ollama.com>. The package identifies issues that rule-based tools cannot detect: abbreviation variants, typographic errors, case inconsistencies, and malformed values. Results are returned as tidy data frames with column, row index, detected value, issue type, suggested fix, and confidence score. An offline fallback using statistical and fuzzy-matching methods is provided for use without any application programming interface (API) key. Interactive fix application with human review is supported via 'apply_fixes()'. Methods follow de Jonge and van der Loo (2013) < https://cran.r-project.org/doc/contrib/de_Jonge+van_der_Loo-Introduction_to_data_cleaning_with_R.pdf> and Chaudhuri et al. (2003) .


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("llmclean")

0.1.1 by Sadikul Islam, 4 months ago


Browse source code at https://github.com/cran/llmclean


Authors: Sadikul Islam [aut, cre] (ORCID: , Rajesh Kaushal [aut]


Documentation:   PDF Manual  


GPL-3 license


Imports stats, utils, dplyr, rlang

Suggests knitr, rmarkdown, testthat, httr2, jsonlite


See at CRAN