157 Commits

Author SHA1 Message Date
Han Xiao
6828e894e6
chore: readme 2025-02-09 14:51:26 +08:00
devin-ai-integration[bot]
0be2a9121e
fix: update docs and auth behavior (#50) 2025-02-09 13:37:32 +08:00
devin-ai-integration[bot]
39579d560e
feat: add OpenAI-compatible chat completions endpoint (#48) 2025-02-09 09:25:01 +08:00
Florian Hönicke
a9008ae0dd chore: eval streaming agent 2025-02-07 17:53:14 +01: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>
v1.2.0
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
5a34983d03 chore: add eval table 2025-02-07 12:58:12 +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
0a6ba24b27 fix: #40 2025-02-07 10:14:09 +08:00
Han Xiao
cacb06de31 fix: #40 2025-02-07 10:13:31 +08:00
Han Xiao
936b857841 Merge branch 'main' of https://github.com/jina-ai/node-DeepResearch 2025-02-07 10:10:29 +08:00
Han Xiao
adcd56c3f7 fix: #40 2025-02-07 10:10:14 +08:00
Paul Ascenzi
f0df41f439
added to .gitignore to exclude temporary files generated by system (#42) 2025-02-07 10:03:37 +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
Han Xiao
c76ab3415c chore: update readme 2025-02-06 23:00:16 +08:00
Han Xiao
4935db86a3 chore: update readme 2025-02-06 22:58:46 +08:00
devin-ai-integration[bot]
def6ebe5df
feat: update npm publish workflow to use github release version (#37)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Han Xiao <han.xiao@jina.ai>
v1.1.1
2025-02-06 22:03:10 +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>
v1.1.0
2025-02-06 21:51:56 +08:00
Han Xiao
0c74746bb7 feat: improved evaluators 2025-02-06 21:51:01 +08:00
Han Xiao
2f72abceab feat: improved evaluators 2025-02-06 21:49:29 +08:00
ARNO
eca4df218c
fix dependencies (#31) 2025-02-06 21:40:05 +08:00
ARNO
0477c4b8c7
minimize the docker image size after building (#32) 2025-02-06 21:39:36 +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
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