Skip to content

Implement sparse index support #1079

Implement sparse index support

Implement sparse index support #1079

Triggered via pull request January 31, 2025 19:40
Status Failure
Total duration 24m 25s
Artifacts

pr.yml

on: pull_request
Linting, formatting, documentation, etc
35s
Linting, formatting, documentation, etc
testing  /  Run unit tests
47s
testing / Run unit tests
testing  /  Example app: semantic search
40s
testing / Example app: semantic search
testing  /  external-app
2m 30s
testing / external-app
Matrix: testing / TS compile
Matrix: testing / Run integration tests
testing  /  Teardown
14s
testing / Teardown
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 1 warning
createIndex argument validations › required configurations › should throw no options are provided: src/control/createIndex.ts#L128
expect(received).rejects.toThrowError(expected) Expected constructor: PineconeArgumentError Received constructor: TypeError Received message: "Cannot read properties of undefined (reading 'vectorType')" 126 | return async (options: CreateIndexOptions): Promise<IndexModel | void> => { 127 | // If metric is not specified for a sparse index, default to dotproduct > 128 | if (options.vectorType && options.vectorType.toLowerCase() === 'sparse') { | ^ 129 | if (!options.metric) { 130 | options.metric = IndexModelMetricEnum.Dotproduct; 131 | } at vectorType (src/control/createIndex.ts:128:17) at step (src/control/createIndex.ts:6004:19) at Object.next (src/control/createIndex.ts:5770:14) at src/control/createIndex.ts:5704:39 at Object.<anonymous>.__awaiter (src/control/createIndex.ts:5653:10) at src/control/createIndex.ts:126:44 at src/control/__tests__/createIndex.validation.test.ts:15:57 at step (src/control/__tests__/createIndex.validation.test.ts:33:23) at Object.next (src/control/__tests__/createIndex.validation.test.ts:14:53) at src/control/__tests__/createIndex.validation.test.ts:8:71 at Object.<anonymous>.__awaiter (src/control/__tests__/createIndex.validation.test.ts:4:12) at toThrow (src/control/__tests__/createIndex.validation.test.ts:15:23) at Object.toThrowError (node_modules/expect/build/index.js:194:58) at src/control/__tests__/createIndex.validation.test.ts:17:37 at step (src/control/__tests__/createIndex.validation.test.ts:33:23) at Object.next (src/control/__tests__/createIndex.validation.test.ts:14:53) at src/control/__tests__/createIndex.validation.test.ts:8:71 at Object.<anonymous>.__awaiter (src/control/__tests__/createIndex.validation.test.ts:4:12) at Object.<anonymous> (src/control/__tests__/createIndex.validation.test.ts:13:50) at Object.toThrowError (node_modules/expect/build/index.js:210:22) at src/control/__tests__/createIndex.validation.test.ts:17:37 at step (src/control/__tests__/createIndex.validation.test.ts:33:23) at Object.next (src/control/__tests__/createIndex.validation.test.ts:14:53) at src/control/__tests__/createIndex.validation.test.ts:8:71 at Object.<anonymous>.__awaiter (src/control/__tests__/createIndex.validation.test.ts:4:12) at Object.<anonymous> (src/control/__tests__/createIndex.validation.test.ts:13:50)
testing / Run unit tests
Process completed with exit code 1.
testing / Teardown
Process completed with exit code 1.
Linting, formatting, documentation, etc: src/data/__tests__/vectors/query.test.ts#L24
'setupSuccess' is assigned a value but never used