@absolutejs/rag 0.0.6 → 0.0.8
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/dist/ai/rag/index.js +159 -13
- package/dist/ai/rag/index.js.map +5 -4
- package/dist/src/ai/rag/contactProviders.d.ts +7 -0
- package/dist/src/ai/rag/index.d.ts +1 -0
- package/package.json +131 -131
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RAGConnectorRuntime } from "@absolutejs/ai";
|
|
2
|
+
export declare const GOOGLE_CONTACTS_READ_SCOPES: string[];
|
|
3
|
+
export declare const createRAGGoogleContactsConnector: (input?: {
|
|
4
|
+
baseUrl?: string;
|
|
5
|
+
fetch?: typeof fetch;
|
|
6
|
+
pageSize?: number;
|
|
7
|
+
}) => RAGConnectorRuntime;
|
|
@@ -9,6 +9,7 @@ export { buildRAGLexicalHaystack, fuseRAGQueryResults, resolveRAGHybridSearchOpt
|
|
|
9
9
|
export { alibabaEmbeddings, deepseekEmbeddings, geminiEmbeddings, googleEmbeddings, metaEmbeddings, mistralaiEmbeddings, moonshotEmbeddings, ollamaEmbeddings, openaiCompatibleEmbeddings, openaiEmbeddings, xaiEmbeddings, } from "./embeddingProviders";
|
|
10
10
|
export { anthropicOCR, geminiOCR, ollamaOCR, ollamaTranscriber, openaiCompatibleOCR, openaiCompatibleTranscriber, openaiOCR, openaiTranscriber, } from "./extractorProviders";
|
|
11
11
|
export { createRAGGmailEmailSyncClient, createRAGLinkedGmailEmailSyncClient, createRAGGraphEmailSyncClient, createRAGIMAPEmailSyncClient, } from "./emailProviders";
|
|
12
|
+
export { createRAGGoogleContactsConnector, } from "./contactProviders";
|
|
12
13
|
export { createRAGFacebookPageConnector, createRAGInstagramBusinessConnector, } from "./socialProviders";
|
|
13
14
|
export { buildRAGUpsertInputFromDirectory, buildRAGUpsertInputFromDocuments, buildRAGUpsertInputFromUploads, createBuiltinArchiveExpander, createEmailExtractor, createEPUBExtractor, createLegacyDocumentExtractor, createRAGPDFOCRExtractor, createRAGArchiveExpander, createRAGArchiveFileExtractor, createOfficeDocumentExtractor, createPDFFileExtractor, createRAGFileExtractor, createRAGFileExtractorRegistry, createRAGChunkingRegistry, createRAGImageOCRExtractor, createRAGMediaFileExtractor, createRAGMediaTranscriber, createRAGOCRProvider, createTextFileExtractor, loadRAGDocumentFromURL, loadRAGDocumentUpload, loadRAGDocumentsFromUploads, buildRAGUpsertInputFromURLs, loadRAGDocumentFile, loadRAGDocumentsFromDirectory, loadRAGDocumentsFromURLs, prepareRAGDirectoryDocuments, prepareRAGDocument, prepareRAGDocumentFile, prepareRAGDocuments, } from "./ingestion";
|
|
14
15
|
export { buildRAGContext } from "./types";
|
package/package.json
CHANGED
|
@@ -1,133 +1,133 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
2
|
+
"name": "@absolutejs/rag",
|
|
3
|
+
"version": "0.0.8",
|
|
4
|
+
"description": "Standalone RAG ingestion, sync, retrieval, evaluation, clients, and framework adapters extracted from AbsoluteJS",
|
|
5
|
+
"license": "BSL-1.1",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/ai/rag/index.js",
|
|
8
|
+
"types": "./dist/src/ai/rag/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"README.md"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/ai/rag/index.js",
|
|
16
|
+
"types": "./dist/src/ai/rag/index.d.ts"
|
|
17
|
+
},
|
|
18
|
+
"./client": {
|
|
19
|
+
"import": "./dist/ai/client/index.js",
|
|
20
|
+
"types": "./dist/src/ai/client/index.d.ts"
|
|
21
|
+
},
|
|
22
|
+
"./client/ui": {
|
|
23
|
+
"import": "./dist/ai/client/ui.js",
|
|
24
|
+
"types": "./dist/src/ai/client/ui.d.ts"
|
|
25
|
+
},
|
|
26
|
+
"./ui": {
|
|
27
|
+
"import": "./dist/ai/rag/ui.js",
|
|
28
|
+
"types": "./dist/src/ai/rag/ui.d.ts"
|
|
29
|
+
},
|
|
30
|
+
"./quality": {
|
|
31
|
+
"import": "./dist/ai/rag/quality.js",
|
|
32
|
+
"types": "./dist/src/ai/rag/quality.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./react": {
|
|
35
|
+
"import": "./dist/react/ai/index.js",
|
|
36
|
+
"types": "./dist/src/react/ai/index.d.ts"
|
|
37
|
+
},
|
|
38
|
+
"./vue": {
|
|
39
|
+
"import": "./dist/vue/ai/index.js",
|
|
40
|
+
"types": "./dist/src/vue/ai/index.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"./svelte": {
|
|
43
|
+
"import": "./dist/svelte/ai/index.js",
|
|
44
|
+
"types": "./dist/src/svelte/ai/index.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"./angular": {
|
|
47
|
+
"import": "./dist/angular/ai/index.js",
|
|
48
|
+
"types": "./dist/src/angular/ai/index.d.ts"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@absolutejs/ai": "0.0.5",
|
|
53
|
+
"@absolutejs/linked-providers": "0.0.2"
|
|
54
|
+
},
|
|
55
|
+
"peerDependencies": {
|
|
56
|
+
"@angular/core": "^21.0.0",
|
|
57
|
+
"elysia": "^1.4.18",
|
|
58
|
+
"react": "^19.2.0",
|
|
59
|
+
"svelte": "^5.35.2",
|
|
60
|
+
"vue": "^3.5.27"
|
|
61
|
+
},
|
|
62
|
+
"peerDependenciesMeta": {
|
|
63
|
+
"@angular/core": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
66
|
+
"react": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
69
|
+
"svelte": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
72
|
+
"vue": {
|
|
73
|
+
"optional": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"devDependencies": {
|
|
77
|
+
"@angular/core": "^21.0.0",
|
|
78
|
+
"@types/bun": "1.3.9",
|
|
79
|
+
"@types/react": "19.2.0",
|
|
80
|
+
"elysia": "1.4.18",
|
|
81
|
+
"react": "19.2.1",
|
|
82
|
+
"svelte": "5.55.0",
|
|
83
|
+
"typescript": "^5.9.3",
|
|
84
|
+
"vue": "3.5.27",
|
|
85
|
+
"@eslint/js": "^10.0.1",
|
|
86
|
+
"eslint": "^10.0.3",
|
|
87
|
+
"globals": "^17.4.0",
|
|
88
|
+
"prettier": "^3.5.3",
|
|
89
|
+
"typescript-eslint": "^8.56.1",
|
|
90
|
+
"eslint-plugin-absolute": "^0.2.6",
|
|
91
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
92
|
+
"react-dom": "19.2.1"
|
|
93
|
+
},
|
|
94
|
+
"scripts": {
|
|
95
|
+
"build": "bun run scripts/build.ts",
|
|
96
|
+
"typecheck": "tsc --noEmit --project tsconfig.json",
|
|
97
|
+
"lint": "eslint . --max-warnings 0",
|
|
98
|
+
"format": "prettier --write .",
|
|
99
|
+
"test": "bun test",
|
|
100
|
+
"release": "bun publish --access public"
|
|
101
|
+
},
|
|
102
|
+
"publishConfig": {
|
|
103
|
+
"access": "public"
|
|
104
|
+
},
|
|
105
|
+
"typesVersions": {
|
|
106
|
+
"*": {
|
|
107
|
+
"client": [
|
|
108
|
+
"dist/src/ai/client/index.d.ts"
|
|
109
|
+
],
|
|
110
|
+
"client/ui": [
|
|
111
|
+
"dist/src/ai/client/ui.d.ts"
|
|
112
|
+
],
|
|
113
|
+
"ui": [
|
|
114
|
+
"dist/src/ai/rag/ui.d.ts"
|
|
115
|
+
],
|
|
116
|
+
"quality": [
|
|
117
|
+
"dist/src/ai/rag/quality.d.ts"
|
|
118
|
+
],
|
|
119
|
+
"react": [
|
|
120
|
+
"dist/src/react/ai/index.d.ts"
|
|
121
|
+
],
|
|
122
|
+
"vue": [
|
|
123
|
+
"dist/src/vue/ai/index.d.ts"
|
|
124
|
+
],
|
|
125
|
+
"svelte": [
|
|
126
|
+
"dist/src/svelte/ai/index.d.ts"
|
|
127
|
+
],
|
|
128
|
+
"angular": [
|
|
129
|
+
"dist/src/angular/ai/index.d.ts"
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
133
|
}
|