RCRAG Converter

Automated API XML parsing for SAP ERP intelligence

Automated API XML parsing for SAP ERP intelligence converts each XML document attached to a record into searchable passages, so the assistant answers from the file rather than from fields someone typed.

How does automated API XML parsing feed SAP ERP intelligence?

Automated API XML parsing for SAP ERP intelligence converts each attached XML document into passages when the file is saved, so the assistant can cite the file instead of guessing from record fields.

Where the XML document sits in SAP

SAP keeps the file on the business object through Generic Object Services or ArchiveLink, beside the order, invoice, or vendor. The typed fields on that record are already searchable. The XML document is not, until automated API XML parsing copies its words into passages keyed to the same record. ERP intelligence that only reads the fields is intelligence about what a person typed, not about what the file says.

What an XML file actually yields

XML is read with the same markup walker as HTML, with network access and external entities disabled. The passage is the text in the document, not the angle brackets, and block boundaries keep neighboring elements from merging. An integration payload attached to an order becomes searchable words instead of a raw feed left in a file store. A document with no text is an error.

The API call that feeds SAP

An integration flow or an attachment event can POST those bytes when the document is linked. The response is JSONL, one passage per line, with the record id in metadata for the retrieval store beside SAP. Asking a model to reread the XML document inside chat for every question never builds that index. Automated API XML parsing runs when the file is saved, once, and later questions retrieve.

What the answer is allowed to cite

After a clean parse, an answer should cite the passage and the XML document it came from. A file that yields no text is a skip, named as a skip, not a blank passage that crowds real hits. The parsers are Remade with Rust crates, and RAG Converter is part of MATA. The longer note on this format is RAG for HTML.

More on converting for RAG