@absolutejs/rag 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +37 -0
- package/changelog.json +23 -0
- package/dist/adapter-kit/index.js +6 -3
- package/dist/adapter-kit/index.js.map +3 -3
- package/dist/index.js +6 -3
- package/dist/index.js.map +3 -3
- package/dist/src/web/index.d.ts +42 -0
- package/dist/src/web/playwright.d.ts +9 -0
- package/dist/src/web/transport.d.ts +22 -0
- package/dist/web/index.js +6741 -0
- package/dist/web/index.js.map +13 -0
- package/dist/web/playwright.js +270 -0
- package/dist/web/playwright.js.map +11 -0
- package/package.json +17 -4
package/dist/index.js
CHANGED
|
@@ -15251,6 +15251,9 @@ var inferFormatFromName = (value) => {
|
|
|
15251
15251
|
};
|
|
15252
15252
|
var inferFormatFromContentType = (contentType) => {
|
|
15253
15253
|
const normalizedType = (contentType || "").toLowerCase();
|
|
15254
|
+
if (normalizedType.includes("html")) {
|
|
15255
|
+
return "html";
|
|
15256
|
+
}
|
|
15254
15257
|
if (normalizedType.includes("xml")) {
|
|
15255
15258
|
return "xml";
|
|
15256
15259
|
}
|
|
@@ -19963,7 +19966,7 @@ var loadRAGDocumentFromURL = async (input) => {
|
|
|
19963
19966
|
contentType: input.contentType ?? response.headers.get("content-type") ?? undefined,
|
|
19964
19967
|
data,
|
|
19965
19968
|
extractorRegistry: input.extractorRegistry,
|
|
19966
|
-
format: input.format ?? inferFormatFromUrl(url),
|
|
19969
|
+
format: input.format ?? inferFormatFromContentType(input.contentType ?? response.headers.get("content-type")) ?? inferFormatFromUrl(url),
|
|
19967
19970
|
metadata: input.metadata,
|
|
19968
19971
|
name: basename(new URL(url).pathname),
|
|
19969
19972
|
source: input.source ?? url,
|
|
@@ -20011,7 +20014,7 @@ var loadRAGDocumentsFromURLs = async (input) => {
|
|
|
20011
20014
|
contentType: urlInput.contentType ?? response.headers.get("content-type") ?? undefined,
|
|
20012
20015
|
data,
|
|
20013
20016
|
extractorRegistry: urlInput.extractorRegistry ?? input.extractorRegistry,
|
|
20014
|
-
format: urlInput.format ?? inferFormatFromUrl(url),
|
|
20017
|
+
format: urlInput.format ?? inferFormatFromContentType(urlInput.contentType ?? response.headers.get("content-type")) ?? inferFormatFromUrl(url),
|
|
20015
20018
|
metadata: urlInput.metadata,
|
|
20016
20019
|
name: basename(new URL(url).pathname),
|
|
20017
20020
|
source: urlInput.source ?? url,
|
|
@@ -36929,5 +36932,5 @@ export {
|
|
|
36929
36932
|
xaiEmbeddings
|
|
36930
36933
|
};
|
|
36931
36934
|
|
|
36932
|
-
//# debugId=
|
|
36935
|
+
//# debugId=3E13A042CB51A53E64756E2164756E21
|
|
36933
36936
|
//# sourceMappingURL=index.js.map
|