@hazeljs/rag 0.2.0 → 0.2.1
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/README.md +2 -2
- package/dist/loaders/web.loader.d.ts +1 -1
- package/dist/loaders/web.loader.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -156,7 +156,7 @@ const wordDocs = await new DocxLoader({ filePath: './agreement.docx' }).load();
|
|
|
156
156
|
|
|
157
157
|
// Web scraping
|
|
158
158
|
const webDocs = await new WebLoader({
|
|
159
|
-
urls: ['https://hazeljs.
|
|
159
|
+
urls: ['https://hazeljs.ai/docs', 'https://hazeljs.ai/blog'],
|
|
160
160
|
timeout: 10_000,
|
|
161
161
|
maxRetries: 3,
|
|
162
162
|
}).load();
|
|
@@ -282,7 +282,7 @@ console.log(`${result.mode} search in ${result.duration}ms`);
|
|
|
282
282
|
### Incremental updates
|
|
283
283
|
|
|
284
284
|
```typescript
|
|
285
|
-
const newDocs = await new WebLoader({ urls: ['https://hazeljs.
|
|
285
|
+
const newDocs = await new WebLoader({ urls: ['https://hazeljs.ai/blog/new'] }).load();
|
|
286
286
|
await graphRag.addDocuments(newDocs);
|
|
287
287
|
// Re-runs community detection and regenerates reports automatically
|
|
288
288
|
```
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* @example
|
|
19
19
|
* ```typescript
|
|
20
20
|
* // Scrape a single page (no extra deps)
|
|
21
|
-
* const loader = new WebLoader({ url: 'https://hazeljs.
|
|
21
|
+
* const loader = new WebLoader({ url: 'https://hazeljs.ai/docs' });
|
|
22
22
|
* const docs = await loader.load();
|
|
23
23
|
*
|
|
24
24
|
* // Scrape multiple URLs
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
* @example
|
|
20
20
|
* ```typescript
|
|
21
21
|
* // Scrape a single page (no extra deps)
|
|
22
|
-
* const loader = new WebLoader({ url: 'https://hazeljs.
|
|
22
|
+
* const loader = new WebLoader({ url: 'https://hazeljs.ai/docs' });
|
|
23
23
|
* const docs = await loader.load();
|
|
24
24
|
*
|
|
25
25
|
* // Scrape multiple URLs
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hazeljs/rag",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Retrieval-Augmented Generation (RAG) and vector search for HazelJS framework",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"clean": "rm -rf dist"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@hazeljs/prompts": "^0.2.
|
|
28
|
+
"@hazeljs/prompts": "^0.2.1",
|
|
29
29
|
"reflect-metadata": "^0.2.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@hazeljs/memory": "^0.2.
|
|
124
|
+
"@hazeljs/memory": "^0.2.1",
|
|
125
125
|
"@types/node": "^20.17.50",
|
|
126
126
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
127
127
|
"@typescript-eslint/parser": "^8.18.2",
|
|
@@ -158,6 +158,6 @@
|
|
|
158
158
|
"bugs": {
|
|
159
159
|
"url": "https://github.com/hazeljs/hazel-js/issues"
|
|
160
160
|
},
|
|
161
|
-
"homepage": "https://hazeljs.
|
|
162
|
-
"gitHead": "
|
|
161
|
+
"homepage": "https://hazeljs.ai",
|
|
162
|
+
"gitHead": "736a56e3d70b51050608cffae2394de3a3487f20"
|
|
163
163
|
}
|