114 Commits

Author SHA1 Message Date
Devin AI
a4084ea906 fix: skip integration tests when API keys are missing
Co-Authored-By: Han Xiao <han.xiao@jina.ai>
2025-02-08 00:56:26 +00:00
Paul Ascenzi
226825d630 removed code that linter was mad about 2025-02-07 13:31:14 -05:00
Paul Ascenzi
1eb73a1413 Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch 2025-02-07 12:33:05 -05:00
Paul Ascenzi
44311bd491 fix lint issue 2025-02-07 12:29:01 -05:00
Florian Hönicke
a9008ae0dd chore: eval streaming agent 2025-02-07 17:53:14 +01:00
Paul Ascenzi
3c0d03b45c added secure mode which requires the client to send an API key to make any type of server requests. secure mode is off by default. randomly generate API key if secure mode is on but API key is not set in environment variables to ensure API security. 2025-02-07 10:54:14 -05:00
Han Xiao
f9cbc4008c feat: improve dedup with jina embeddings 2025-02-07 16:39:01 +08:00
Han Xiao
5e80ed40ea feat: improve dedup with jina embeddings 2025-02-07 16:09:19 +08:00
Han Xiao
f1b37c4f34 feat: improve dedup with jina embeddings 2025-02-07 16:09:05 +08:00
Han Xiao
2b218717ae Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch 2025-02-07 16:02:27 +08:00
Han Xiao
5231493b7a feat: improve dedup with jina embeddings 2025-02-07 16:02:22 +08:00
Han Xiao
da608206af feat: improve dedup with jina embeddings 2025-02-07 16:02:14 +08:00
Han Xiao
21b4b00e90 feat: improve dedup with jina embeddings 2025-02-07 15:50:58 +08:00
Han Xiao
814d539dac feat: improve dedup with jina embeddings 2025-02-07 15:46:32 +08:00
devin-ai-integration[bot]
a4de4cc444
fix: ensure config.json is copied to production docker image (#43)
* fix: ensure config.json is copied to production docker image

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

* fix: remove unused config parameter in reduce callback

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

* refactor: simplify tools configuration using Object.fromEntries

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

* test: increase timeout for async search test

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

* test: remove setTimeout from agent test

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

* test: remove trivial tests and improve test coverage

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-07 14:17:48 +08:00
Han Xiao
3e60f712d9 refactor: pull config to a sep json 2025-02-07 13:36:55 +08:00
Han Xiao
fa05e53307 feat: improve search action 2025-02-07 12:35:27 +08:00
Han Xiao
4925303c57 feat: update eval and ego questions 2025-02-07 11:56:50 +08:00
Han Xiao
1168c753ce feat: update eval and ego questions 2025-02-07 11:48:40 +08:00
Han Xiao
ef34881f59 feat: update eval and ego questions 2025-02-07 11:17:42 +08:00
Han Xiao
6c82b80ca5 fix: #40 2025-02-07 10:02:00 +08:00
Han Xiao
e343473c58 fix: set maxtokens to 8k 2025-02-07 00:17:04 +08:00
Han Xiao
53fffe4877 chore: update evals 2025-02-06 23:40:46 +08:00
Han Xiao
6103b815d7 chore: update evals 2025-02-06 23:39:27 +08:00
Han Xiao
d6811fc2eb chore: update readme 2025-02-06 23:33:38 +08:00
devin-ai-integration[bot]
df992517fe
fix: update evaluator tests to match latest implementation (#34)
* fix: update evaluator tests to match latest implementation

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

* fix: update EvaluationResponse type and add comprehensive tests

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-06 21:51:56 +08:00
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
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>
2025-02-06 16:34:39 +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>
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
2306bd3a9e fix: improve prompting 2025-02-05 13:48:05 +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
Han Xiao
4f1ed24ecb chore: first commit 2025-02-04 20:53:52 +08:00