From 83144f8804e3a86cf5b06b42bdcb99b0ad0a9cca Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Wed, 12 Feb 2025 10:48:10 +0800 Subject: [PATCH 1/2] jina-ai: use brave for search --- jina-ai/Dockerfile | 2 +- jina-ai/config.json | 61 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 jina-ai/config.json diff --git a/jina-ai/Dockerfile b/jina-ai/Dockerfile index a584c18..0e258b5 100644 --- a/jina-ai/Dockerfile +++ b/jina-ai/Dockerfile @@ -17,10 +17,10 @@ WORKDIR /app # Copy application code COPY ./src ./src -COPY ./config.json ./ COPY ./tsconfig.json ./tsconfig.json RUN npm run build +COPY ./jina-ai/config.json ./ COPY ./jina-ai/src ./jina-ai/src COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json WORKDIR /app/jina-ai diff --git a/jina-ai/config.json b/jina-ai/config.json new file mode 100644 index 0000000..9aac241 --- /dev/null +++ b/jina-ai/config.json @@ -0,0 +1,61 @@ +{ + "env": { + "https_proxy": "", + "OPENAI_BASE_URL": "", + "GEMINI_API_KEY": "", + "OPENAI_API_KEY": "", + "JINA_API_KEY": "", + "BRAVE_API_KEY": "", + "DEFAULT_MODEL_NAME": "" + }, + "defaults": { + "search_provider": "brave", + "llm_provider": "gemini", + "step_sleep": 0 + }, + "providers": { + "gemini": { + "createClient": "createGoogleGenerativeAI" + }, + "openai": { + "createClient": "createOpenAI", + "clientConfig": { + "compatibility": "strict" + } + } + }, + "models": { + "gemini": { + "default": { + "model": "gemini-2.0-flash", + "temperature": 0, + "maxTokens": 8000 + }, + "tools": { + "search-grounding": { "temperature": 0 }, + "dedup": { "temperature": 0.1 }, + "evaluator": {}, + "errorAnalyzer": {}, + "queryRewriter": { "temperature": 0.1 }, + "agent": { "temperature": 0.7 }, + "agentBeastMode": { "temperature": 0.7 } + } + }, + "openai": { + "default": { + "model": "gpt-4o-mini", + "temperature": 0, + "maxTokens": 8000 + }, + "tools": { + "search-grounding": { "temperature": 0 }, + "dedup": { "temperature": 0.1 }, + "evaluator": {}, + "errorAnalyzer": {}, + "queryRewriter": { "temperature": 0.1 }, + "agent": { "temperature": 0.7 }, + "agentBeastMode": { "temperature": 0.7 } + } + } + } +} From 067fa1478f452fd24c9ec6c4a71686e6598b9117 Mon Sep 17 00:00:00 2001 From: Yanlong Wang Date: Wed, 12 Feb 2025 11:11:21 +0800 Subject: [PATCH 2/2] jina-ai: fix build --- jina-ai/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jina-ai/Dockerfile b/jina-ai/Dockerfile index 0e258b5..5b5f4ed 100644 --- a/jina-ai/Dockerfile +++ b/jina-ai/Dockerfile @@ -18,9 +18,9 @@ WORKDIR /app # Copy application code COPY ./src ./src COPY ./tsconfig.json ./tsconfig.json +COPY ./jina-ai/config.json ./ RUN npm run build -COPY ./jina-ai/config.json ./ COPY ./jina-ai/src ./jina-ai/src COPY ./jina-ai/tsconfig.json ./jina-ai/tsconfig.json WORKDIR /app/jina-ai