Skip to main content

DocAPI.v1.MDExport

class DocAPI.v1.MDExport

Class to create JSON for LLMs

Method Inventory

Parameters

parameter MAXLENGTH = 97000;

Methods

classmethod CommonGetRecordForMarkdown(item As %String = "") as %DynamicObject
classmethod PermittedToWriteMarkdown(instance As %String = "", server As %String = "", verbose As %Boolean = 0) as %Boolean
Returns 1 or 0 depending on whether the current instance is configured to write JSON files for LLMs If you pass in an instance (with or without a server name), we look up that information in the same config file.
classmethod ProcessConfigFile(verbose As %Boolean = 1)
Check the config file that specifies which instances should export Markdown, and update ^Settings("exportForMarkdown") accordingly. Also caches information in ^SAVEDMARKDOWNCONFIG.
classmethod WriteMarkdownFiles(verbose As %Boolean = 1)
classmethod WriteMetadataFile(exportdir=$$$MARKDOWNGENERATED, verbose=1)
FeedbackOpens in a new tab