UNPKG

@tonytruong/chatbot-ai-lib

Version:

AI-powered healthcare automation, document parsing, OpenAI, embeddings, RAG, vector DB, Facebook OAuth.

13 lines 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchAndExtract = fetchAndExtract; const tslib_1 = require("tslib"); const axios_1 = tslib_1.__importDefault(require("axios")); function fetchAndExtract(url) { return tslib_1.__awaiter(this, void 0, void 0, function* () { const res = yield axios_1.default.get(url); const html = res.data; return html.replace(/<[^>]+>/g, " "); }); } //# sourceMappingURL=UrlService.js.map