62 Commits

Author SHA1 Message Date
Han Xiao
c299a3a4bb fix: md table render 2025-03-20 15:13:39 +08:00
Han Xiao
64b2a0f69a fix: md table render 2025-03-20 12:03:09 +08:00
Han Xiao
654748b945 fix: eval logics 2025-03-20 11:32:26 +08:00
Han Xiao
4523f10283 fix: eval logics 2025-03-20 10:49:57 +08:00
Han Xiao
d73fc84e40 fix: gen obj retry 2025-03-20 09:38:46 +08:00
Han Xiao
f709ce9e52 fix: gen obj retry 2025-03-20 09:13:40 +08:00
Han Xiao
c5900ac767 fix: unnecessary eval 2025-03-19 10:07:45 +08:00
Han Xiao
71157a7468 fix: unnecessary eval 2025-03-19 08:06:29 +08:00
Han Xiao
74aff03914 fix: unnecessary eval 2025-03-18 21:24:19 +08:00
Han Xiao
1f248de100 fix: unnecessary eval 2025-03-18 21:00:45 +08:00
Han Xiao
473a3d3060 fix: broken md 2025-03-18 16:06:40 +08:00
Han Xiao
b0c07162dd fix: strict evaluator 2025-03-14 11:57:02 +08:00
Han Xiao
0e0630b727 refactor: knowledge as msg 2025-03-13 14:01:35 +08:00
Han Xiao
c8fc259dff refactor: pull url out 2025-03-11 21:30:59 +08:00
Han Xiao
c30043e119 fix: eval 2025-03-11 17:56:39 +08:00
Han Xiao
d947973a68 refactor: query rewriter 2025-03-11 15:10:08 +08:00
Han Xiao
f264fc01a3 fix: url datetime guessing 2025-03-10 17:35:34 +08:00
Han Xiao
8b836431af fix: url datetime guessing 2025-03-07 13:43:14 +08:00
Han Xiao
d9bfc2fd1f feat: improve url ranking, fix eval bugs 2025-03-06 14:17:56 +08:00
Han Xiao
5df8d8a9c6 fix: weighted urls and hostnames 2025-03-05 10:58:52 +08:00
Han Xiao
b5fe088472 feat: add json schema support 2025-03-03 16:05:32 +08:00
Han Xiao
46fd2d0594 refactor: agent schema 2025-03-01 22:30:52 +08:00
Han Xiao
9bf5c20478 refactor: agent schema 2025-03-01 22:04:54 +08:00
Han Xiao
dbc8a30fd4 feat: add api params 2025-02-28 22:17:36 +08:00
Han Xiao
cf403302a9 refactor: schemas 2025-02-25 15:56:16 +08:00
Han Xiao
66490f3848 refactor: schemas 2025-02-25 15:12:19 +08:00
Han Xiao
3226aedf48 fix: evaluator 2025-02-25 11:49:28 +08:00
Han Xiao
c02588a92c feat: optimize prompt, coding, reflect 2025-02-24 13:16:18 +08:00
Han Xiao
c73a673c35 fix: evaluator 2025-02-22 11:45:48 +08:00
Han Xiao
c8cd9bc09e fix: overlength gen 2025-02-22 11:28:25 +08:00
Han Xiao
528a6343e2 fix: overlength gen 2025-02-22 00:28:10 +08:00
Han Xiao
3c0dffcdd1
refactor: evaluator (#66)
* refactor: evaluator

* refactor: evaluator

* refactor: evaluator

* refactor: evaluator
2025-02-20 15:25:10 +08:00
Han Xiao
840913c898 fix: chinese references and duplicate eval 2025-02-18 11:04:25 +08:00
Han Xiao
f8aa2b1353 feat: add coding tools 2025-02-17 14:19:36 +08:00
Han Xiao
13d38e304d fix: improve eval 2025-02-15 12:06:48 +08:00
Han Xiao
3b76e0b4d8
feat: add timestamp to the knowledge (#64) 2025-02-13 20:05:54 +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
41ee1812db fix: token tracking 2025-02-12 11:20:49 +08:00
Han Xiao
b819af4e57 fix: cap q eval in #57 2025-02-11 20:30:53 +08:00
Han Xiao
188f1bb640 chore: update readme 2025-02-11 11:04:31 +08:00
Han Xiao
441654ac5d feat: improve prompting 2025-02-10 12:10:46 +08:00
Han Xiao
3e60f712d9 refactor: pull config to a sep json 2025-02-07 13:36:55 +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
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
devin-ai-integration[bot]
5be008e8b9
feat: add action tracker and reset token tracker (#8)
* feat: add action tracker and reset token tracker

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

* refactor: make trackers request-scoped

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-02 23:25:54 +08:00
devin-ai-integration[bot]
ca0f780cc3
feat: add web server wrapper for getResponse (#6)
* feat: add web server wrapper for getResponse

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

* chore: update package-lock.json

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

* fix: add proper types to Express route handlers

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

* refactor: update API endpoint path and request parameters

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

* refactor: centralize model configurations with per-tool settings

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

* refactor: update agent.ts to use centralized model configuration

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-02 22:07:43 +08:00
devin-ai-integration[bot]
c793cb9bbc
refactor: consolidate type definitions into types.ts (#5)
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-02 20:53:28 +08:00