Skip to content

Collections v3 client #102

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

Merged
merged 376 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
376 commits
Select commit Hold shift + click to select a range
6f8a66f
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 Mar 8, 2024
b91cbd9
Merge branch 'fix/hybrid-test-with-latest-server' of https://github.c…
tsmith023 Mar 8, 2024
63a9ea1
3.0.0-beta.7
tsmith023 Mar 8, 2024
6c64554
Allow hnsw/flat & pq/bq combos, improve coverage, fix named vectors p…
tsmith023 Mar 11, 2024
0e78e74
Add support for proxying using fetch API and grpc.js options
tsmith023 Mar 11, 2024
443f98b
Support forward proxies for http and tunnel proxies for grpc. Add dea…
tsmith023 Mar 12, 2024
c94bf6c
Remove debug logging from proxies
tsmith023 Mar 12, 2024
35356b8
Merge pull request #116 from weaviate/collections/add-proxying-support
tsmith023 Mar 12, 2024
16ef390
Skip flaky proxy test in CI
tsmith023 Mar 12, 2024
fcf7420
Fix strong typing of generics-based collection creation
tsmith023 Mar 12, 2024
6c4220e
3.0.0-beta.8
tsmith023 Mar 12, 2024
0918d69
Add all missing vectorizers, revert back to overloads of query/groupb…
tsmith023 Mar 13, 2024
9550f2c
Replace WeaviateNextClient with WeaviateClient
tsmith023 Mar 13, 2024
25f8881
3.0.0-beta.9
tsmith023 Mar 13, 2024
1691289
Fix parsing of vectorizePropertyName for named vectors, fix strange t…
tsmith023 Mar 13, 2024
eb6c02b
3.0.0-beta.10
tsmith023 Mar 13, 2024
6c763cb
Add new modules, add unit tests for vectorizer, only have namedVector…
tsmith023 Mar 14, 2024
2610f46
3.0.0-beta.11
tsmith023 Mar 14, 2024
fc04c69
Export submodules from collections/index
tsmith023 Mar 15, 2024
fda465f
3.0.0-beta.12
tsmith023 Mar 15, 2024
d55fdb7
Add default generics to Collection type
tsmith023 Mar 15, 2024
e8da887
3.0.0-beta.13
tsmith023 Mar 15, 2024
db85a27
Minor fixes to typing names
tsmith023 Mar 15, 2024
b54d59b
3.0.0-beta.14
tsmith023 Mar 15, 2024
f4480ba
Add missing offset arg to all queries
tsmith023 Mar 15, 2024
ab81bb4
3.0.0-beta.15
tsmith023 Mar 15, 2024
e3b1059
Add missing misc getters to client namespace
tsmith023 Mar 18, 2024
4342e5a
3.0.0-beta.16
tsmith023 Mar 18, 2024
0a02513
Add tokenization option to weaviate.configure
tsmith023 Mar 18, 2024
3c7bdb6
Handle non-generic collections more comprehensively using undefined type
tsmith023 Mar 18, 2024
871575c
Make package releasable to a wider number of environments
tsmith023 Mar 19, 2024
42c33ed
Fix tests with new packaging format
tsmith023 Mar 19, 2024
e5aba29
Fix odd TS false positive in VS code
tsmith023 Mar 19, 2024
fa2930e
Fix missed imports from previous commit
tsmith023 Mar 19, 2024
593df0c
Fix missed imports from previous commit
tsmith023 Mar 19, 2024
629f3aa
Fix .data inputs for non-generic collections
tsmith023 Mar 19, 2024
d867f91
Add missing rerank functionalty to all queries
tsmith023 Mar 20, 2024
0c797a7
Add vectorDistances object to configure
tsmith023 Mar 20, 2024
855c451
Skip rerank tests if no OpenAI API key present
tsmith023 Mar 20, 2024
bd18028
Remove cp src command from build
tsmith023 Mar 20, 2024
04cf882
Merge pull request #118 from weaviate/collections/improve-packaging-s…
tsmith023 Mar 20, 2024
3e142e2
3.0.0-beta.17
tsmith023 Mar 20, 2024
9d41474
Refactor directory structure and add docs
tsmith023 Mar 20, 2024
075acf2
3.0.0-beta.18
tsmith023 Mar 20, 2024
b6ecc6e
Add missing `config.update` method and `weaviate.reconfigure` object …
tsmith023 Mar 21, 2024
5a698c6
3.0.0-beta.19
tsmith023 Mar 21, 2024
81bc4c2
Hotfix bm25 and hybrid search param parsing
tsmith023 Mar 22, 2024
751e3b3
Fix search property names in unit tests
tsmith023 Mar 22, 2024
761b6bd
3.0.0-beta.20
tsmith023 Mar 22, 2024
7b85854
Add missing uuid types to dataType in config
tsmith023 Mar 25, 2024
652c8db
Add explicit graphql dep due to peer dep in graphql-request
tsmith023 Mar 25, 2024
cc15eb0
3.0.0-beta.21
tsmith023 Mar 26, 2024
fee7fdc
Fix typing for non-generic group by queries
tsmith023 Mar 26, 2024
fa3add0
3.0.0-beta.22
tsmith023 Mar 26, 2024
96a82aa
Automatically capitlize user-supplied collections names
tsmith023 Mar 26, 2024
2cf191a
Add support for specifying BackupConfig when creating and restoring b…
tsmith023 Apr 3, 2024
caf7b1f
Fix backup tests colliding with data in other tests
tsmith023 Apr 4, 2024
47a66c4
Add support for groupby bm25 and hybrid queries
tsmith023 Apr 4, 2024
286edf3
Add DbVersionSupport checks to collections API
tsmith023 Apr 5, 2024
735f6cd
Respond to user feedback
tsmith023 Apr 9, 2024
52e3fba
Update CI to test Node 18 and Node 20
tsmith023 Apr 9, 2024
c6b0b2d
Merge pull request #123 from weaviate/collections/add-qol-methods-fro…
tsmith023 Apr 9, 2024
55496cf
3.0.0-beta.23
tsmith023 Apr 9, 2024
fb298ab
Introduce `.use()` instead of `.get()` and deprecate `.get()` with a …
tsmith023 Apr 19, 2024
b47e60e
Allow returnMetadata: 'all' to get all metadata at once
tsmith023 Apr 19, 2024
5b320af
Split legacy and named vectorizers, deprecate legacy
tsmith023 Apr 19, 2024
f5a4dfa
Fix updating vector index config of legacy vector collection
tsmith023 Apr 24, 2024
4cf519c
Make single named vectorizer name generic rather than literal `'defau…
tsmith023 Apr 24, 2024
fe193a0
Refactoring of named vectors workflow
tsmith023 Apr 24, 2024
98742eb
Rename namedVectorizers to vectorizers everywhere
tsmith023 Apr 27, 2024
eb986ff
Fix errors in integration test
tsmith023 Apr 27, 2024
f23ef72
Refactor to use new ListValue proto message with 1.25
tsmith023 Apr 27, 2024
3242cb2
Improve typings for docs generation
tsmith023 Apr 28, 2024
ddc1a5d
Unignore docs dir to be used on GH pages
tsmith023 Apr 28, 2024
61b240f
Update docs generation to include favicon
tsmith023 Apr 28, 2024
314edc6
Update CI image
tsmith023 Apr 28, 2024
b047ba9
Update CI image
tsmith023 Apr 28, 2024
651dcd1
Merge branch 'collections/1.25-changes' of https://github.com/weaviat…
tsmith023 Apr 28, 2024
e5a436e
Update CI to latest main image
tsmith023 Apr 29, 2024
ae33509
Update CI image to latest main
tsmith023 Apr 29, 2024
a1bae04
Update CI image to latest main
tsmith023 Apr 29, 2024
6202e15
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 Apr 29, 2024
3efdce9
Update CI to test all supported Weaviate and Node vers
tsmith023 Apr 29, 2024
a5aaeae
Add Node 22, rearrange to list through Weaviate vers
tsmith023 Apr 29, 2024
c9d26c2
Remove tests for 1.23.x since only named vectors supported in TSv3
tsmith023 Apr 29, 2024
c531cc2
Fix typing of output in cluster.nodes()
tsmith023 Apr 30, 2024
d022ab6
Update to TS v5
tsmith023 Apr 30, 2024
3eb48ce
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 Apr 30, 2024
6406135
Wait for reranker stack
tsmith023 Apr 30, 2024
7360793
Update CI to latest image
tsmith023 Apr 30, 2024
d8538b0
Use latest image with restore fixes, refresh schema with `main` not `…
tsmith023 Apr 30, 2024
66eaace
Revert CI to latest stable
tsmith023 Apr 30, 2024
5686978
Replace vectorizeClassName with vectorizeCollectionName everywhere
tsmith023 Apr 30, 2024
865aeef
Fix erroneous str replacements
tsmith023 Apr 30, 2024
c0a5551
Update to latest image
tsmith023 Apr 30, 2024
86da616
Update cluster stack to use RAFT env vars
tsmith023 Apr 30, 2024
4b332b5
Update CI to latest main image
tsmith023 Apr 30, 2024
25cb86d
Handle differing API surfaces between versions
tsmith023 Apr 30, 2024
550154b
Fix errors in integration test
tsmith023 May 1, 2024
05f1fa3
Revert changes to `.get()` and `.use()`
tsmith023 May 1, 2024
7e71e42
Refactor usage of `.use()` to `.get()` in integration tests
tsmith023 May 1, 2024
bf6112b
Add reranker-voyageai to configure
tsmith023 May 1, 2024
52300d3
Implement specific errors for certain failure modes
tsmith023 May 1, 2024
c7ab2a7
Remove `skipVectorization` from `PropertyConfigCreate`
tsmith023 May 2, 2024
e389cc4
Merge pull request #124 from weaviate/introduce-collections-use
tsmith023 May 2, 2024
fba35fa
Update publish step to tag as next
tsmith023 May 2, 2024
9700a0e
3.0.0-rc.0
tsmith023 May 2, 2024
8e75cc0
Align connection helper methods with Python versions
tsmith023 May 2, 2024
223fbd1
Undo release to rc
tsmith023 May 2, 2024
1eaf4be
Run `npm audit fix`
tsmith023 May 2, 2024
95856eb
Update `README.md` to point to GH pages typedocs
tsmith023 May 2, 2024
8119cce
Export helper type options
tsmith023 May 2, 2024
dfcfe5c
Fix port number in integration test
tsmith023 May 2, 2024
b74dd04
Test Node22 support in CI
tsmith023 May 2, 2024
0ade69b
3.0.0-rc.0
tsmith023 May 2, 2024
40beb20
Reinstate `skipVectorization` field
tsmith023 May 3, 2024
50cd0d8
3.0.0-rc.1
tsmith023 May 3, 2024
a12cb5e
Undo rc.1 release
tsmith023 May 3, 2024
be94afe
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 May 3, 2024
b55d570
3.0.0-rc.1
tsmith023 May 3, 2024
7e115d5
Update CI images to latest
tsmith023 May 8, 2024
5ad0594
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 May 8, 2024
ceb3548
Add `tenants.getByName` using new grpc method
tsmith023 May 8, 2024
49c8181
Update query integration tests to use correct vector property name
tsmith023 May 8, 2024
7e2bb90
Update CI image and version checks
tsmith023 May 8, 2024
dd514bf
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 May 8, 2024
c2399c4
Fix regex matching for prerelease versions
tsmith023 May 8, 2024
1072279
Fix port number for Weaviate connection in backup integration test
tsmith023 May 8, 2024
ffc551a
Merge branch 'collections/1.25-changes' of https://github.com/weaviat…
tsmith023 May 8, 2024
bf4621d
Fix parsing of listValue for 1.24 and 1.25 rc
tsmith023 May 8, 2024
cc5948f
Update CI to latest `stable/v1.25` image
tsmith023 May 14, 2024
74fd1f5
Merge pull request #128 from weaviate/collections/update-ci-to-latest…
tsmith023 May 14, 2024
4608b6f
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 May 14, 2024
584a399
Fix conflicting test prots
tsmith023 May 14, 2024
42f3fcd
Fix vector in test
tsmith023 May 14, 2024
2c988fe
Fix strangely new TS errors
tsmith023 May 14, 2024
14dd10c
Fix backup logic when loop waiting for finish
tsmith023 May 14, 2024
6ca1e21
Merge branch 'collections/1.25-changes' of https://github.com/weaviat…
tsmith023 May 14, 2024
4b498cc
Merge pull request #127 from weaviate/collections/support-new-list-va…
tsmith023 May 14, 2024
45027d6
Merge branch 'collections/1.25-changes' of https://github.com/weaviat…
tsmith023 May 14, 2024
0fa874f
Add remaining methods and tests, improve naming conventions
tsmith023 May 14, 2024
cb15083
Add checks for DB version support of new TenantsGet grpc method
tsmith023 May 14, 2024
a50db80
Merge pull request #138 from weaviate/1.25/add-new-tenant-methods
tsmith023 May 14, 2024
4c1b889
Remove redundant version support check in bm25/hybrid
tsmith023 May 14, 2024
393d749
Add BC support for hybrid near subsearches
tsmith023 May 14, 2024
2e8b2a3
Merge pull request #121 from weaviate/collections/1.25-changes
tsmith023 May 15, 2024
76518b2
Fix missing fields in Multi2VecPalm
tsmith023 May 15, 2024
3d1c879
Fix inputs to generative methods and add unit tests for them
tsmith023 May 15, 2024
b61a9c7
Make projectId in Text2VecPalm optional
tsmith023 May 15, 2024
c20ac65
Merge pull request #140 from weaviate/collections/add-missing-modules
tsmith023 May 15, 2024
4829df2
Add missing generative modules and unit tests
tsmith023 May 15, 2024
cd686ab
Merge pull request #141 from weaviate/collections/add-missing-modules
tsmith023 May 15, 2024
225e250
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 May 15, 2024
120ee0c
Make a number of fixesand improvements to the connection logic
tsmith023 May 15, 2024
7c4364a
Clean host params of scheme prefixes and emit warnings when detected
tsmith023 May 15, 2024
b718532
Align `ClientParams` with Python client
tsmith023 May 15, 2024
40958cf
Add support for dynamic index and remove defaults from configure methods
tsmith023 May 16, 2024
73bba61
Handle dynamic index with BC gracefully in client
tsmith023 May 16, 2024
a3e5423
Permit supplying undefined vectorizer to use server default
tsmith023 May 16, 2024
108e435
3.0.0-rc.2
tsmith023 May 16, 2024
a23ce1d
Fix multi2vec types and configure options
tsmith023 May 20, 2024
135ef6a
Bump CI version to latest
tsmith023 May 20, 2024
85df648
Fix missing `IsNull` case in `Serialize.operator`
tsmith023 May 20, 2024
897343e
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 May 20, 2024
6804bd1
Fix errors introduced by misaligned merge from main
tsmith023 May 20, 2024
ccdc243
Fix tests with old weaviate and incompatible features
tsmith023 May 20, 2024
b8c80d1
3.0.0-rc.3
tsmith023 May 20, 2024
3e34543
Add concrete types for GenerativeObject conditional
tsmith023 May 21, 2024
070999c
Fix parsing of reranker config in collections.create, improve config …
tsmith023 May 22, 2024
d031a6e
Fix test of generative config return
tsmith023 May 22, 2024
883fe54
Add test for filtering on null date
tsmith023 May 23, 2024
5912a39
Make a number of improvements and fixes:
tsmith023 May 23, 2024
6da91a4
Export the v2 client from index.ts to help ease migration
tsmith023 May 24, 2024
4ec4ded
Rename <>ObjectType to <>GenericObject
tsmith023 May 24, 2024
10c6cf7
Remove commented out code
tsmith023 May 24, 2024
3965f82
Remove commented out code
tsmith023 May 24, 2024
8538ed1
Add docstrings for types
tsmith023 May 24, 2024
2c8616d
Undo change to conditional type avoiding circ dep
tsmith023 May 24, 2024
491f3e3
Skip tests of broken server behaviour to make release
tsmith023 May 24, 2024
709d13b
Flip conditional type for PropertiesMetrics due to strict: false users
tsmith023 May 24, 2024
bf1a033
Flip conditional type for strict: false users
tsmith023 May 24, 2024
39481ef
Rename `vectorizer` -> `vectorizers` in `CollectionConfig`
tsmith023 May 24, 2024
e98952f
Fix broken commit
tsmith023 May 24, 2024
84d3cc9
Rename vectorizer -> vectorizers in tests
tsmith023 May 24, 2024
a1f30f0
Fix bad CTRL+F replace
tsmith023 May 24, 2024
ea914a8
Add missing change from commit
tsmith023 May 24, 2024
3e7a067
Add test for making a non-generic collection with no properties
tsmith023 May 24, 2024
053ce58
Flip conditional type for strict: false users
tsmith023 May 24, 2024
41fb211
Make more improvements:
tsmith023 May 24, 2024
7e9029f
Merge pull request #142 from weaviate/collections/align-client-params…
tsmith023 May 24, 2024
8b52989
Fix passing timeout to grpc and handling clear
tsmith023 May 24, 2024
6613764
Merge branch 'collections/main' of https://github.com/weaviate/typesc…
tsmith023 May 24, 2024
425b81a
Add skipInitChecks and handle close channel on init error
tsmith023 May 24, 2024
f892cee
3.0.0-rc.4
tsmith023 May 24, 2024
a1d3349
Reintroduce BC/FC for 1.23.7 upwards, add back deprecated connectToWC…
tsmith023 May 28, 2024
efffca1
Fix parsing of vectors in insertMany, add more types to typedoc, fix …
tsmith023 May 28, 2024
dbf8b8c
3.0.0-rc.5
tsmith023 May 28, 2024
d040ff8
Add missing test of 1.23 to CI
tsmith023 May 28, 2024
6c8f1f7
Undo adding 1.23 tests, too many breaks with v2 tests
tsmith023 May 28, 2024
b9e6d52
Export important sub namespaces of configure
tsmith023 May 30, 2024
8bb6d2a
Update docs
tsmith023 May 30, 2024
aa2f544
Rename to `connectToWeaviateCloud` add back removed but deprecated me…
tsmith023 May 30, 2024
edff9f7
Add deprecation warnings to connect methods
tsmith023 May 30, 2024
aa0805d
Update docs
tsmith023 May 30, 2024
9770cc1
Update 1.24 CI image
tsmith023 May 30, 2024
6a195bb
3.0.0-rc.6
tsmith023 May 30, 2024
15e3b5d
Update CI image for 1.25
tsmith023 May 31, 2024
924d8f5
Remove constraint that properties must be present if generic is provi…
tsmith023 May 31, 2024
8980e5d
Add missing text2VecOllama staticmethod to configure
tsmith023 Jun 3, 2024
8c9b7c9
Update schema to 1.25.2 refactoring tests to handle new field
tsmith023 Jun 3, 2024
49af6de
Return promise from beforeAll to make it block
tsmith023 Jun 3, 2024
7c28064
Make `collectionName` unique in WCS journey to avoid flake collisions
tsmith023 Jun 3, 2024
527aa20
Fix assertion
tsmith023 Jun 3, 2024
9f1e416
Export all objects of configure as part of module
tsmith023 Jun 3, 2024
dcbc708
Change CI to publish GA tag on next release push
tsmith023 Jun 3, 2024
2cc22e5
Add missing exported types to docs, format code with prettier organis…
tsmith023 Jun 3, 2024
aac09f8
Fix bad import
tsmith023 Jun 3, 2024
13db5dd
3.0.0
tsmith023 Jun 3, 2024
6c053c3
Add missing autoTenantActivation to multiTenancyConfig
tsmith023 Jun 3, 2024
2821fd5
3.0.1
tsmith023 Jun 3, 2024
78d5c08
Fix type of `HybridNearTextSubSearch` to be same as python client
tsmith023 Jun 3, 2024
104e8b2
3.0.2
tsmith023 Jun 3, 2024
10bc9d1
Rename `vectorName` to `name` in `VectorConfigUpdate`
tsmith023 Jun 4, 2024
c3bf0ae
3.0.3
tsmith023 Jun 4, 2024
20b1a93
Test adding step to build docs in CI
tsmith023 Jun 13, 2024
eb7791b
Add missing vers to uses:
tsmith023 Jun 13, 2024
ae5cc38
Call as `docker compose` rather than `docker-compose` in CI
tsmith023 Jun 13, 2024
06db426
Rearrange order to fail fast while debugging
tsmith023 Jun 13, 2024
1c29bbb
Add missing dep install step to docs build
tsmith023 Jun 13, 2024
a595a4c
Remove npm run format from docs script, use relative path
tsmith023 Jun 13, 2024
1490669
Move docs deployment to publishing job
tsmith023 Jun 13, 2024
7768657
Delete static /docs from the src code
tsmith023 Jun 13, 2024
510c96e
Add `docs/` to `.gitignore` file
tsmith023 Jun 13, 2024
85507ed
3.0.4
tsmith023 Jun 13, 2024
8155d5e
Add missing permissions to publish step for GH pages
tsmith023 Jun 13, 2024
80d9884
3.0.4
tsmith023 Jun 13, 2024
3112af8
Fix order of build steps in publish job
tsmith023 Jun 13, 2024
0cff659
3.0.4
tsmith023 Jun 13, 2024
525c6db
Add permission to upload release to GH
tsmith023 Jun 13, 2024
5a85798
3.0.4
tsmith023 Jun 13, 2024
194f7d0
3.0.5
tsmith023 Jun 13, 2024
8904b54
Fix CUD ops inserting vectors without names in >=1.24
tsmith023 Jun 19, 2024
55e2e11
3.0.6
tsmith023 Jun 19, 2024
80c042e
Fix bug when aggregating with multi-tenancy
tsmith023 Jun 21, 2024
6beaf05
3.0.7
tsmith023 Jun 21, 2024
ee4bd63
Fix parsing of files and buffers in nearMedia methods
tsmith023 Jun 24, 2024
fe65fa7
3.0.8
tsmith023 Jun 24, 2024
adc0611
Ensure message is intialised in the base WeaviateError class
tsmith023 Jun 25, 2024
80b924e
Update ver in CI
tsmith023 Jun 27, 2024
ae3d51c
Remove commented code, simplify expects
tsmith023 Jun 27, 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
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules
dist
types
docs
2 changes: 1 addition & 1 deletion .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = {
'no-native-reassign': 'error',
'no-negated-condition': 'off',
'no-negated-in-lhs': 'error',
'no-nested-ternary': 'error',
'no-nested-ternary': 'off',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
Expand Down
44 changes: 34 additions & 10 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,32 @@ on:
- '**'
pull_request:


env:
WEAVIATE_VERSION: 1.25.1
WEAVIATE_124: 1.24.19
WEAVIATE_125: 1.25.4

jobs:
checks:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [
"18.x",
"20.x",
"22.x"
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
node-version: ${{ matrix.node }}
- name: "Run checks"
run: |
npm install
npm ci
npm run lint
npm run format:check
npm run docs

tests:
needs: checks
Expand All @@ -31,9 +40,12 @@ jobs:
fail-fast: false
matrix:
versions: [
{ node: "18.x", weaviate: $WEAVIATE_VERSION},
{ node: "20.x", weaviate: $WEAVIATE_VERSION},
{ node: "22.x", weaviate: $WEAVIATE_VERSION}
{ node: "18.x", weaviate: $WEAVIATE_124},
{ node: "20.x", weaviate: $WEAVIATE_124},
{ node: "22.x", weaviate: $WEAVIATE_124},
{ node: "18.x", weaviate: $WEAVIATE_125},
{ node: "20.x", weaviate: $WEAVIATE_125},
{ node: "22.x", weaviate: $WEAVIATE_125}
]
steps:
- uses: actions/checkout@v3
Expand All @@ -42,7 +54,7 @@ jobs:
node-version: ${{ matrix.versions.node }}
- name: "Install dependencies"
run: |
npm install
npm ci
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
- name: "Run tests with authentication tests"
if: ${{ !github.event.pull_request.head.repo.fork }}
Expand All @@ -66,19 +78,31 @@ jobs:
needs: tests
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
contents: write # to upload the release
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci && npm run build
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTOMATION_TOKEN }}
- run: npm run docs
- name: "Upload docs as pages artifact"
uses: actions/upload-pages-artifact@v3
with:
path: ./docs
- name: "Deploy the uploaded pages artifact"
uses: actions/deploy-pages@v4
- name: "Create a GitHub release"
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
draft: true
draft: true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ weaviate-data/
*.tgz
.npmrc
.eslintcache
test.sh
test.sh
scratch/
docs/
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
src/proto/**/*.ts
src/dist/**/*
src/docs/**/*.js
3 changes: 2 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
"trailingComma": "es5",
"bracketSpacing": true,
"singleQuote": true,
"printWidth": 110
"printWidth": 110,
"tabWidth": 2
}
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Weaviate TypeScript client <img alt='Weaviate logo' src='https://weaviate.io/img/site/weaviate-logo-light.png' width='148' align='right' />
# Weaviate JS/TS client <img alt='Weaviate logo' src='https://weaviate.io/img/site/weaviate-logo-light.png' width='148' align='right' />

Official TypeScript client for easy interaction with a Weaviate instance.
Official JS/TS client for easy interaction with a Weaviate instance.

## Documentation

- [Documentation](https://weaviate.io/developers/weaviate/client-libraries/typescript).
- [General Documentation](https://weaviate.io/developers/weaviate/client-libraries/typescript).
- [Client-specific Documentation](https://weaviate.github.io/typescript-client/)

## Support

Expand Down
4 changes: 2 additions & 2 deletions ci/compose.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function ls_compose {

function exec_all {
for file in $(ls_compose); do
docker-compose -f $(echo "ci/${file} ${1}")
docker compose -f $(echo "ci/${file} ${1}")
done
}

Expand All @@ -21,5 +21,5 @@ function compose_down_all {
}

function all_weaviate_ports {
echo "8080 8081 8082 8083 8085 8086 8087 8088"
echo "8078 8079 8080 8081 8082 8083 8085 8086 8087 8088 8089 8090"
}
23 changes: 23 additions & 0 deletions ci/docker-compose-async.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
version: '3.4'
services:
weaviate_async:
command:
- --host
- 0.0.0.0
- --port
- '8090'
- --scheme
- http
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
ports:
- "8078:8090"
- "50049:50051"
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
CLUSTER_HOSTNAME: 'node1'
ASYNC_INDEXING: 'true'
DISABLE_TELEMETRY: 'true'
19 changes: 19 additions & 0 deletions ci/docker-compose-backup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
version: '3.4'
services:
weaviate-backup:
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
restart: on-failure:0
ports:
- 8090:8080
- 50061:50051
environment:
QUERY_DEFAULTS_LIMIT: 20
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: "./weaviate-data"
BACKUP_FILESYSTEM_PATH: "/tmp/backups"
ENABLE_MODULES: backup-filesystem
CLUSTER_GOSSIP_BIND_PORT: "7100"
CLUSTER_DATA_BIND_PORT: "7101"
DISABLE_TELEMETRY: 'true'
...
2 changes: 1 addition & 1 deletion ci/docker-compose-cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ services:
CONTEXTIONARY_URL: contextionary:9999
DEFAULT_VECTORIZER_MODULE: text2vec-contextionary
ENABLE_MODULES: text2vec-contextionary
...
...
1 change: 1 addition & 0 deletions ci/docker-compose-openai.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
ports:
- 8086:8086
- 50057:50051
restart: on-failure:0
environment:
QUERY_DEFAULTS_LIMIT: 25
Expand Down
53 changes: 53 additions & 0 deletions ci/docker-compose-proxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
version: '3.4'
services:
weaviate-proxy:
command:
- --host
- 0.0.0.0
- --port
- '8020'
- --scheme
- http
- --write-timeout=600s
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
restart: on-failure:0
environment:
CONTEXTIONARY_URL: contextionary:9999
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-contextionary'
ENABLE_MODULES: text2vec-contextionary
BACKUP_FILESYSTEM_PATH: "/tmp/backups"
CLUSTER_GOSSIP_BIND_PORT: "7100"
CLUSTER_DATA_BIND_PORT: "7101"
CLUSTER_HOSTNAME: "node1"
AUTOSCHEMA_ENABLED: 'false'
DISABLE_TELEMETRY: 'true'
GRPC_PORT: 8021
contextionary:
environment:
OCCURRENCE_WEIGHT_LINEAR_FACTOR: 0.75
EXTENSIONS_STORAGE_MODE: weaviate
EXTENSIONS_STORAGE_ORIGIN: http://weaviate-proxy:8020
NEIGHBOR_OCCURRENCE_IGNORE_PERCENTILE: 5
ENABLE_COMPOUND_SPLITTING: 'false'
image: semitechnologies/contextionary:en0.16.0-v1.2.0
ports:
- 9999:9999
proxy-http:
image: envoyproxy/envoy:v1.29-latest
command: envoy --config-path /etc/envoy/http.yaml
ports:
- 10000:10000
volumes:
- ./proxy:/etc/envoy
proxy-grpc:
image: envoyproxy/envoy:v1.29-latest
command: envoy --config-path /etc/envoy/grpc.yaml
ports:
- 10001:10000
volumes:
- ./proxy:/etc/envoy
...
30 changes: 30 additions & 0 deletions ci/docker-compose-rerank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
version: '3.4'
services:
weaviate-reranker:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
ports:
- 8079:8080
- 50050:50051
restart: on-failure:0
environment:
RERANKER_INFERENCE_API: http://reranker-transformers:8080
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: "./data"
DEFAULT_VECTORIZER_MODULE: 'text2vec-openai'
ENABLE_MODULES: 'text2vec-openai,reranker-transformers,generative-openai'
CLUSTER_HOSTNAME: 'node1'
DISABLE_TELEMETRY: 'true'
reranker-transformers:
image: semitechnologies/reranker-transformers:cross-encoder-ms-marco-MiniLM-L-6-v2
environment:
ENABLE_CUDA: '0'
...
30 changes: 22 additions & 8 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,43 @@
version: '3.4'
services:
weaviate:
command:
- --host
- 0.0.0.0
- --port
- '8080'
- --scheme
- http
- --write-timeout=600s
image: semitechnologies/weaviate:${WEAVIATE_VERSION}
restart: on-failure:0
ports:
- "8080:8080"
- "50051:50051"
restart: on-failure:0
environment:
CONTEXTIONARY_URL: contextionary:9999
QUERY_DEFAULTS_LIMIT: 20
QUERY_DEFAULTS_LIMIT: 25
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: 'true'
PERSISTENCE_DATA_PATH: "./weaviate-data"
DEFAULT_VECTORIZER_MODULE: text2vec-contextionary
ENABLE_MODULES: text2vec-contextionary,backup-filesystem
PERSISTENCE_DATA_PATH: '/var/lib/weaviate'
DEFAULT_VECTORIZER_MODULE: 'text2vec-contextionary'
ENABLE_MODULES: text2vec-contextionary,backup-filesystem,img2vec-neural
BACKUP_FILESYSTEM_PATH: "/tmp/backups"
CLUSTER_GOSSIP_BIND_PORT: "7100"
CLUSTER_DATA_BIND_PORT: "7101"
CLUSTER_HOSTNAME: "node1"
AUTOSCHEMA_ENABLED: 'false'
IMAGE_INFERENCE_API: "http://i2v-neural:8080"
DISABLE_TELEMETRY: 'true'
contextionary:
image: semitechnologies/contextionary:en0.16.0-v1.2.1
ports:
- "9999:9999"
environment:
OCCURRENCE_WEIGHT_LINEAR_FACTOR: 0.75
EXTENSIONS_STORAGE_MODE: weaviate
EXTENSIONS_STORAGE_ORIGIN: http://weaviate:8080
NEIGHBOR_OCCURRENCE_IGNORE_PERCENTILE: 5
ENABLE_COMPOUND_SPLITTING: 'false'
image: semitechnologies/contextionary:en0.16.0-v1.2.0
ports:
- 9999:9999
i2v-neural:
image: semitechnologies/img2vec-pytorch:resnet50
...
Loading
Loading