Skip to content

Conversation

parkerduckworth
Copy link
Member

@parkerduckworth parkerduckworth commented Mar 14, 2023

Embeds a Weaviate instance in the client, so there is no need to run the server elsewhere, in preparation for TS notebook support.

Usage:

import weaviate from 'weaviate-ts-client';

const client = weaviate.client({
  scheme: 'http',
  host: 'localhost:9898',
  embedded: new weaviate.EmbeddedOptions({
    port: 9898,
  }),
});

await client.embedded?.start();

client.misc
  .metaGetter()
  .do()
  .then((res: any) => console.log(`res: ${JSON.stringify(res)}`));

client.embedded?.stop();

Note:

Embedded DB can currently only be run on a Linux OS/docker container. MacOS will be supported in the future

@parkerduckworth parkerduckworth requested a review from a team as a code owner March 15, 2023 18:05
@parkerduckworth parkerduckworth merged commit 9788a66 into main Mar 15, 2023
@parkerduckworth parkerduckworth deleted the feature/embedded-db branch March 15, 2023 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants