102 Commits

Author SHA1 Message Date
yanlong.wang
4decc9a750
search: introduce serper search provider 2025-02-20 13:49:16 +08:00
Han Xiao
acb05dbeee fix: streaming and query gen 2025-02-18 13:47:37 +08:00
Han Xiao
5350d27420 feat: add coding tools 2025-02-17 14:26:26 +08:00
Han Xiao
f8aa2b1353 feat: add coding tools 2025-02-17 14:19:36 +08:00
Han Xiao
b487563882 fix: optimize prompt 2025-02-17 10:06:24 +08:00
Han Xiao
8bd5d37d6d fix: optimize prompt 2025-02-15 15:20:23 +08:00
Han Xiao
6d7d0b9e20 fix: optimize prompt 2025-02-15 14:36:16 +08:00
Han Xiao
45b65a87e0 fix: improve eval 2025-02-15 14:11:55 +08:00
Han Xiao
686e6723b2 fix: improve eval 2025-02-15 12:44:32 +08:00
Han Xiao
13d38e304d fix: improve eval 2025-02-15 12:06:48 +08:00
Han Xiao
8e5367f9a8 fix: remove references tag in output 2025-02-14 21:33:00 +08:00
Han Xiao
3b76e0b4d8
feat: add timestamp to the knowledge (#64) 2025-02-13 20:05:54 +08:00
yanlong.wang
970167245e
jina-ai: saas features 2025-02-13 14:58:57 +08:00
Han Xiao
57deb26946
feat: add timestamp to the knowledge (#62)
* feat: add timestamp to the knowledge

* feat: add timestamp to the knowledge
2025-02-13 12:58:46 +08:00
Han Xiao
086bde514e
fix: emit stream (#61) 2025-02-13 12:33:37 +08:00
Han Xiao
bd77535dd9
refactor: add safe obj generation (#60)
* fix: broken markdown footnote

* refactor: safe obj generation

* test: update token tracking assertions to match new implementation

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

* refactor: safe obj generation

* chore: update readme

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2025-02-13 00:33:58 +08:00
Han Xiao
ee4213111c fix: try catch in evaluator 2025-02-12 21:47:42 +08:00
Han Xiao
16a2f60fec feat: support history messages 2025-02-12 12:42:51 +08:00
Han Xiao
41ee1812db fix: token tracking 2025-02-12 11:20:49 +08:00
Han Xiao
c8a68a043f fix: streaming msg 2025-02-12 09:30:31 +08:00
Han Xiao
b352b239a7 fix: token tracker 2025-02-12 09:09:28 +08:00
Han Xiao
b773a27514 feat: improve prompt 2025-02-11 21:18:16 +08:00
Han Xiao
188f1bb640 chore: update readme 2025-02-11 11:04:31 +08:00
Han Xiao
bde79bcb5d chore: update eval 2025-02-10 14:48:49 +08:00
Han Xiao
441654ac5d feat: improve prompting 2025-02-10 12:10:46 +08:00
Han Xiao
bed06b4100 chore: add chatbox demo 2025-02-09 17:58:02 +08:00
Han Xiao
3deee87c5a feat: add google search grounding 2025-02-09 16:18:00 +08:00
Han Xiao
c2931c6e2a fix: streaming 2025-02-09 15:23:26 +08:00
Han Xiao
de2bc3771b fix: streaming 2025-02-09 15:09:48 +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
Han Xiao
fa05e53307 feat: improve search action 2025-02-07 12:35:27 +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
906424f015 feat: improved evaluators 2025-02-06 21:36:32 +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
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
a9dfec9a41 feat: use s.jina.ai for search 2025-02-05 15:15:17 +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
f48c84d207 fix: use xml prompt 2025-02-05 11:41:29 +08:00
Han Xiao
d562d518ed fix: remove unnecessary budget guard 2025-02-05 10:41:29 +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
2e83ae11ae chore: first commit 2025-02-03 16:30:04 +08:00
Han Xiao
438aaf0579 chore: first commit 2025-02-03 12:42:20 +08:00
Han Xiao
1039a3f827 chore: first commit 2025-02-02 23:41:59 +08:00