weaviate / typescript-client

Official Weaviate TypeScript Client
https://www.npmjs.com/package/weaviate-client
BSD 3-Clause "New" or "Revised" License
57 stars 21 forks source link

UUIDv5 support #58

Closed parkerduckworth closed 1 year ago

parkerduckworth commented 1 year ago

Introduces a generateUuid5 function, which takes in any identifier and an optional namespace, to generate deterministic UUIDs.

Example:

import { generateUuid5 } from 'weaviate-ts-client';

const withNamespace = generateUuid5('some-string-identifer', 'some-namespace');
console.log(withNamespace);

const withoutNamespace = generateUuid5('some-string-identifer');
console.log(withoutNamespace);
dandv commented 1 year ago

Are there plans to support object parameters, for feature parity with the Python equivalent?