Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(opensearch-vectorindex): replace docker-based custom resource with typescript #583

Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
cef9eea
feat(opensearch-vectorindex): replace docker-based custom resource wi…
Jul 26, 2024
7fa776e
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Jul 26, 2024
b3a4014
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Jul 29, 2024
9bf2ad4
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Jul 29, 2024
b9813fc
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Jul 30, 2024
9c6c0be
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Jul 31, 2024
bba532b
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 1, 2024
e31654f
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 2, 2024
e967861
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 5, 2024
267e639
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 6, 2024
3ad9409
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 7, 2024
02d8d62
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 8, 2024
1c8d75d
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 8, 2024
4a29dd4
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 9, 2024
754733a
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 12, 2024
0fa4ae3
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 12, 2024
e237022
chore(os): update oss to use nodejs construct
krokoko Aug 13, 2024
4f6e6d8
Merge branch 'cagatay/remove-docker-from-opensearch-index-creation' o…
krokoko Aug 13, 2024
28858f8
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 13, 2024
f3ccf14
chore(build): rollback to bundle before publishing and fix bb
krokoko Aug 14, 2024
704790d
chore(build): fix mutation
krokoko Aug 14, 2024
a510fe7
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 14, 2024
b1e272f
chore(lambda): fix handler
krokoko Aug 14, 2024
0a6ec65
Merge branch 'cagatay/remove-docker-from-opensearch-index-creation' o…
krokoko Aug 14, 2024
4295889
chore(deps): update build file
krokoko Aug 14, 2024
298a822
fix: update esbuild mutation for build action
scottschreckengaust Aug 14, 2024
a5f9a05
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 21, 2024
accdc88
Merge branch 'main' into cagatay/remove-docker-from-opensearch-index-…
krokoko Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .projen/deps.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions .projen/tasks.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
'typedoc-plugin-markdown',
'aws-sdk-mock',
'@aws-cdk/assert',
'esbuild',
],
deps: [
'cdk-nag',
Expand Down Expand Up @@ -243,8 +244,14 @@ project.addTask('generate-models-containers', {
],
});

project.addTask('bundle-vector-index', {
description: 'Bundle the vector-index Lambda function',
exec: 'node src/cdk-lib/opensearch-vectorindex/vector-index/build.js',
});

const postCompile = project.tasks.tryFind('post-compile');
if (postCompile) {
postCompile.exec('yarn run bundle-vector-index');
postCompile.exec('npx typedoc --plugin typedoc-plugin-markdown --out apidocs --readme none --categoryOrder "Namespaces,Classes,Interfaces,*" --disableSources ./src/index.ts');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,48 @@ The OpenSearch Vector Collection.

***

### customSettings?

> `readonly` `optional` **customSettings**: `Record`\<`string`, `any`\>

Custom settings for the index.

#### Default

```ts
{}
```

***

### efSearch?

> `readonly` `optional` **efSearch**: `number`

The ef_search parameter for vector search.

#### Default

```ts
512
```

***

### engine?

> `readonly` `optional` **engine**: `string`

The engine to use for vector search.

#### Default

```ts
'faiss'
```

***

### indexName

> `readonly` **indexName**: `string`
Expand All @@ -48,6 +90,62 @@ The metadata management fields.

***

### methodName?

> `readonly` `optional` **methodName**: `string`

The method name for vector search.

#### Default

```ts
'hnsw'
```

***

### numberOfShards?

> `readonly` `optional` **numberOfShards**: `number`

The number of shards for the index.

#### Default

```ts
2
```

***

### parameters?

> `readonly` `optional` **parameters**: `Record`\<`string`, `any`\>

Additional parameters for vector search.

#### Default

```ts
{}
```

***

### spaceType?

> `readonly` `optional` **spaceType**: `string`

The space type for vector search.

#### Default

```ts
'l2'
```

***

### vectorDimensions

> `readonly` **vectorDimensions**: `number`
Expand Down
24 changes: 0 additions & 24 deletions lambda/opensearch-serverless-custom-resources/Dockerfile

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading