UNPKG

mongodb-rag-core

Version:

Common elements used by MongoDB Chatbot Framework components.

11 lines 417 B
/** This function extracts frontmatter from a string. The generic type does not validate that the frontmatter conforms to the type. It just provides the type for developer convenience. */ export declare function extractFrontMatter<T extends Record<string, unknown>>(text: string, language?: string, delimiter?: string): { metadata?: T; body: string; }; //# sourceMappingURL=extractFrontMatter.d.ts.map