570 Commits

Author SHA1 Message Date
Han Xiao
906424f015 feat: improved evaluators 2025-02-06 21:36:32 +08:00
Han Xiao
a5e5627823 fix: evaluator 2025-02-06 20:03:36 +08:00
Han Xiao
deff7235b2 chore: update default gemini to 2.0-flash 2025-02-06 17:38:05 +08:00
Han Xiao
1677bc5298 Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch 2025-02-06 17:36:19 +08:00
Han Xiao
39a3ef62fc chore: update default gemini to 2.0-flash 2025-02-06 17:34:00 +08:00
devin-ai-integration[bot]
282de3f245
feat: add npm publish workflow (#29)
* feat: add npm publish workflow

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add CLI interface

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: add moduleResolution and resolveJsonModule to tsconfig

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add OPENAI_API_KEY to workflow files

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
v1.0.2
2025-02-06 16:34:39 +08:00
Han Xiao
aee5598f3e chore: add local ollama lmstudio support 2025-02-06 16:20:22 +08:00
Han Xiao
e7d7a03f50 chore: add local ollama lmstudio support 2025-02-06 15:57:52 +08:00
Han Xiao
bd36db37ef refactor: clean up 2025-02-06 15:37:53 +08:00
devin-ai-integration[bot]
50dff0863c
feat: add OpenAI provider with structured output support (#28)
* feat: add OpenAI provider with structured output support

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: add @ai-sdk/openai dependency and fix modelConfigs access

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: correct indentation in agent.ts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: centralize model initialization in config.ts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: improve model config access patterns

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused imports

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: clean up

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
v1.0.1
2025-02-06 15:05:38 +08:00
devin-ai-integration[bot]
f1c7ada6ae
refactor: replace @google/generative-ai with @ai-sdk/google (#27)
* refactor: replace @google/generative-ai with @ai-sdk/google

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: use createGoogleGenerativeAI for API key configuration

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update Zod schemas to use discriminated unions

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: ensure at least one variant in Zod discriminated union

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused actions variable

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove duplicate sections declaration and update action sections

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema types and use process.env.GEMINI_API_KEY

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema to use z.union with type literal

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: restore original schema descriptions and remove unused imports

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema to use discriminatedUnion with proper descriptions

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema to use proper type casting for discriminated union

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema type casting for discriminated union

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update schema to use strict mode and proper type definitions

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: add type field to all schemas

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused schema variables

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused baseSchema variable

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused baseSchema variable and comments

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: implement token tracking using generateObject response

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update token tracking to use proper destructuring

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: implement token tracking in evaluator and add test

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: move maxTokens parameter to config.ts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: implement error handling for generateObject schema validation errors

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove lint errors in error handling utility

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* chore: clean up error handling utility

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove unused functionName parameter

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove functionName parameter from handleGenerateObjectError calls

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: update DedupResponse import to type import

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* refactor: clean up

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
2025-02-06 14:14:12 +08:00
Han Xiao
2b84a577c8 feat: use s.jina.ai for search 2025-02-05 16:28:14 +08:00
Han Xiao
36722eacaa feat: use s.jina.ai for search 2025-02-05 16:11:12 +08:00
Han Xiao
5e7dce3add feat: use s.jina.ai for search 2025-02-05 16:09:10 +08:00
Han Xiao
86838a3e89 feat: use s.jina.ai for search 2025-02-05 15:26:12 +08:00
Han Xiao
d629ea35e9 feat: use s.jina.ai for search 2025-02-05 15:18:19 +08:00
Han Xiao
a9dfec9a41 feat: use s.jina.ai for search 2025-02-05 15:15:17 +08:00
Han Xiao
d8636d16ce
chore: readme 2025-02-05 14:01:39 +08:00
Han Xiao
fb39ccbd06 chore: fix readme 2025-02-05 13:52:18 +08:00
Han Xiao
fd6623b9dc fix: improve prompting 2025-02-05 13:49:22 +08:00
Han Xiao
2306bd3a9e fix: improve prompting 2025-02-05 13:48:05 +08:00
Han Xiao
8630d607a2 fix: improve prompting 2025-02-05 12:47:42 +08:00
Han Xiao
7f208c5072 fix: improve prompting 2025-02-05 12:37:23 +08:00
Han Xiao
fd40c7b020 fix: improve prompting 2025-02-05 12:11:41 +08:00
Han Xiao
9f871ef37e fix: use xml prompt 2025-02-05 11:51:05 +08:00
Han Xiao
f48c84d207 fix: use xml prompt 2025-02-05 11:41:29 +08:00
Han Xiao
77e1656744 fix: remove unnecessary budget guard 2025-02-05 10:45:20 +08:00
Han Xiao
70a3eef522 fix: remove unnecessary budget guard 2025-02-05 10:43:08 +08:00
Han Xiao
d562d518ed fix: remove unnecessary budget guard 2025-02-05 10:41:29 +08:00
Igor Kuzmenkov
2d489812a3
Dockerize repo, create Dockerfile, docker-compose.yml and update README.md (#17)
---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/jina-ai/node-DeepResearch?shareId=XXXX-XXXX-XXXX-XXXX).
2025-02-05 10:39:30 +08:00
Kim Jaehyeon
2c34150158
fix: modify tracker type path (#14)
Co-authored-by: hammer-turtle <hammer_turtle@neowiz.com>
2025-02-05 10:39:08 +08:00
Han Xiao
4f1ed24ecb chore: first commit 2025-02-04 20:53:52 +08:00
devin-ai-integration[bot]
76f8cd242a
feat: merge types and add tests (#10)
* feat: merge types and add tests

- Merged types.ts and tracker.ts
- Added Jest configuration and setup
- Added comprehensive tests for tools and agent
- Updated package.json with test scripts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* chore: remove tracker.ts after merging into types.ts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: remove sensitive API keys from jest.setup.js

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* fix: improve error handling and test timeouts

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add token budget enforcement to TokenTracker

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

* feat: add github actions workflow for CI and fix remaining issues

Co-Authored-By: Han Xiao <han.xiao@jina.ai>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
2025-02-03 18:01:59 +08:00
Han Xiao
bd8e9ff1d4 Merge branch 'main' of https://github.com/jina-ai/node-agentic-search
# Conflicts:
#	README.md
2025-02-03 17:29:54 +08:00
Han Xiao
2bcd06abd2 chore: first commit 2025-02-03 17:29:27 +08:00
Han Xiao
2e83ae11ae chore: first commit 2025-02-03 16:30:04 +08:00
Han Xiao
9508eb3c7c
Update README.md 2025-02-03 13:35:04 +08:00
Han Xiao
3bda3984a4
Update README.md 2025-02-03 13:27:27 +08:00
Han Xiao
090e61591d chore: first commit 2025-02-03 13:17:52 +08:00
Han Xiao
289fe90f63 chore: first commit 2025-02-03 13:02:30 +08:00
Han Xiao
438aaf0579 chore: first commit 2025-02-03 12:42:20 +08:00
Han Xiao
1275870f95
Update README.md 2025-02-03 11:41:29 +08:00
Han Xiao
51f397dae8
Update README.md 2025-02-03 11:28:54 +08:00
Han Xiao
e9f7691df7
Update README.md 2025-02-03 11:27:56 +08:00
Han Xiao
2de8f09461
Update README.md 2025-02-03 11:27:26 +08:00
Han Xiao
164f945240
chore: add example gif 2025-02-03 11:25:30 +08:00
Han Xiao
0ef052296d
Create LICENSE 2025-02-03 11:04:20 +08:00
Han Xiao
e4dc9be5c7
Update README.md 2025-02-03 11:03:21 +08:00
Han Xiao
1b1f209eab
Update README.md 2025-02-03 10:58:14 +08:00
Han Xiao
504edc7266
Update README.md 2025-02-03 10:57:42 +08:00