Skip to content

feat(knowledge): add embedding model selection and Cohere reranker #15517

feat(knowledge): add embedding model selection and Cohere reranker

feat(knowledge): add embedding model selection and Cohere reranker #15517

Triggered via pull request April 30, 2026 01:04
Status Failure
Total duration 1m 44s
Artifacts

ci.yml

on: pull_request
Detect Version
0s
Detect Version
Test and Build  /  Test and Build
1m 33s
Test and Build / Test and Build
Check Docs Changes
0s
Check Docs Changes
Matrix: Build Dev ECR
Matrix: Build ARM64 (GHCR Only)
Matrix: Build AMD64
Migrate Dev DB  /  Apply Database Migrations
Migrate Dev DB / Apply Database Migrations
Matrix: Create GHCR Manifests
Process Docs  /  Process Documentation Embeddings
Process Docs / Process Documentation Embeddings
Create GitHub Release
0s
Create GitHub Release
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 6 warnings
Test and Build / Test and Build
Process completed with exit code 1.
app/api/knowledge/search/utils.test.ts > Knowledge Search Utils > generateSearchEmbedding > should include correct request body for Azure OpenAI: apps/sim/app/api/knowledge/search/utils.test.ts#L351
AssertionError: expected "spy" to be called with arguments: [ Any<String>, ObjectContaining{…} ] Received: 1st spy call: [ - Any<String>, - ObjectContaining { - "body": "{\"input\":[\"test query\"],\"encoding_format\":\"float\"}", + "https://test.openai.azure.com/openai/deployments/text-embedding-ada-002/embeddings?api-version=2024-12-01-preview", + { + "body": "{\"input\":[\"test query\"],\"encoding_format\":\"float\",\"dimensions\":1536}", + "headers": { + "Content-Type": "application/json", + "api-key": "test-azure-key", + }, + "method": "POST", + "signal": AbortSignal { + Symbol(kEvents): Map {}, + Symbol(events.maxEventTargetListeners): 0, + Symbol(events.maxEventTargetListenersWarned): false, + Symbol(kHandlers): Map {}, + Symbol(kAborted): false, + Symbol(kReason): undefined, + Symbol(kComposite): false, + }, }, ] Number of calls: 1 ❯ app/api/knowledge/search/utils.test.ts:351:32
app/api/knowledge/search/utils.test.ts > Knowledge Search Utils > generateSearchEmbedding > should throw error when no API configuration provided: apps/sim/app/api/knowledge/search/utils.test.ts#L284
AssertionError: expected [Function] to throw error including 'Either OPENAI_API_KEY or Azure OpenAI…' but got 'OPENAI_API_KEY is not configured' Expected: "Either OPENAI_API_KEY or Azure OpenAI configuration (AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT) must be configured" Received: "OPENAI_API_KEY is not configured" ❯ app/api/knowledge/search/utils.test.ts:284:7
app/api/knowledge/search/route.test.ts > Knowledge Search API Route > POST /api/knowledge/search > Cost tracking > should handle cost calculation with different query lengths: apps/sim/app/api/knowledge/search/route.test.ts#L648
AssertionError: expected "spy" to be called with arguments: [ Array(4) ] Received: 1st spy call: [ - "text-embedding-3-small", + undefined, 1042, 0, false, ] Number of calls: 1 ❯ app/api/knowledge/search/route.test.ts:648:31
app/api/knowledge/search/route.test.ts > Knowledge Search API Route > POST /api/knowledge/search > Cost tracking > should call cost calculation functions with correct parameters: apps/sim/app/api/knowledge/search/route.test.ts#L592
AssertionError: expected "spy" to be called with arguments: [ 'text-embedding-3-small', 521, …(2) ] Received: 1st spy call: [ - "text-embedding-3-small", + undefined, 521, 0, false, ] Number of calls: 1 ❯ app/api/knowledge/search/route.test.ts:592:31
app/api/knowledge/search/route.test.ts > Knowledge Search API Route > POST /api/knowledge/search > Cost tracking > should include cost information in successful search response: apps/sim/app/api/knowledge/search/route.test.ts#L556
AssertionError: expected undefined to be 'text-embedding-3-small' // Object.is equality - Expected: "text-embedding-3-small" + Received: undefined ❯ app/api/knowledge/search/route.test.ts:556:38
app/api/knowledge/utils.test.ts > Knowledge Utils > generateEmbeddings > should throw error when no API configuration provided: apps/sim/app/api/knowledge/utils.test.ts#L372
AssertionError: expected [Function] to throw error including 'Either OPENAI_API_KEY or Azure OpenAI…' but got 'OPENAI_API_KEY is not configured' Expected: "Either OPENAI_API_KEY or Azure OpenAI configuration (AZURE_OPENAI_API_KEY + AZURE_OPENAI_ENDPOINT) must be configured" Received: "OPENAI_API_KEY is not configured" ❯ app/api/knowledge/utils.test.ts:372:7
Test and Build / Test and Build
sim#test: command (/home/runner/_work/sim/sim/apps/sim) /home/runner/.bun/bin/bun run test exited (1)
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
Test and Build / Test and Build
- Step: unknown (failed)
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps
Test and Build / Test and Build
Skipping sticky disk commit due to previous step failures
Test and Build / Test and Build
- Step: unknown (failed)
Test and Build / Test and Build
Found 2 failed/cancelled steps in previous workflow steps