Skip to content

Commit c0704c2

Browse files
Add autorag (#25)
* Initial autorag changes * refactor: Rename myRags to userRags (#24) I've renamed the variable and prop `myRags` to `userRags` for clarity throughout the research creation form. This includes changes in: - `src/index.tsx`: Renamed the variable in the `/create` route. - `src/templates/layout.tsx`: Renamed the prop in the `CreateResearchProps` interface and updated its usage within the `CreateResearch` component. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> * Fixes * Chore: Remove comments from core.js (#26) This commit removes the // --- Begin modification --- and // --- End modification --- comments from the setupFinalForm function in src/static/core.js. These comments were intended for guidance during development and were not meant to be part of the final codebase. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> * fix: Remove Research ID and improve styling of parameters section (#27) This commit addresses your feedback on the research details page: 1. Removes the display of the Research ID from the "Research Parameters" section. 2. Significantly improves the styling of the "Research Parameters" section for better visual appeal and readability. The section is now presented as a card with a clear title and well-formatted key-value pairs. I performed manual verification to ensure the changes display correctly and that conditional logic for fields like AutoRAG ID remains functional. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> * Finish autorag feature --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent 808d08e commit c0704c2

File tree

10 files changed

+551
-156
lines changed

10 files changed

+551
-156
lines changed

package-lock.json

Lines changed: 98 additions & 97 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
"description": "A serverless, AI-powered deep research agent built with Cloudflare Workers and Google Gemini 2.5",
55
"main": "./dist/index.js",
66
"type": "module",
7-
"files": [
8-
"dist",
9-
"LICENSE",
10-
"README.md"
11-
],
7+
"files": ["dist", "LICENSE", "README.md"],
128
"scripts": {
139
"build": "tsup src/index.ts --format cjs,esm --external cloudflare:workers",
1410
"build-css": "npx @tailwindcss/cli -i ./src/templates/styles.css -o ./src/static/styles.css",
@@ -30,14 +26,14 @@
3026
},
3127
"devDependencies": {
3228
"@biomejs/biome": "1.9.4",
33-
"@cloudflare/workers-types": "^4.20250607.0",
29+
"@cloudflare/workers-types": "^4.20250619.0",
3430
"@tailwindcss/cli": "^4.1.8",
3531
"@types/node": "^22.15.30",
3632
"tailwindcss": "^4.1.8",
3733
"typescript": "^5.8.3",
3834
"unenv": "^2.0.0-rc.17",
3935
"vitest": "^3.2.3",
40-
"wrangler": "^4.19.1"
36+
"wrangler": "^4.20.3"
4137
},
4238
"dependencies": {
4339
"@ai-sdk/google": "^1.2.19",

src/bindings.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type Env = {
99
AI_GATEWAY_ACCOUNT_ID?: string;
1010
AI_GATEWAY_API_KEY?: string;
1111
BROWSER: Fetcher;
12+
AI: Ai;
1213
};
1314

1415
export type Variables = {

0 commit comments

Comments
 (0)