Skip to content

Commit

Permalink
Fixed README imports
Browse files Browse the repository at this point in the history
  • Loading branch information
danvass committed May 20, 2023
1 parent 515ec3b commit ec9f1ca
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ npm i @relevanceai/dataset
Get started by creating an account in [cloud.relevanceai.com](https://cloud.relevanceai.com) - select the Vector Database onboarding option. Once set up you can fetch your API key and use the below snippet.

```javascript
import {Client,QueryBuilder} from "@relevanceai/sdk";
import {Client,QueryBuilder} from "@relevanceai/dataset";

const discovery = new Client({
project: '',
Expand Down Expand Up @@ -42,12 +42,12 @@ export RELEVANCE_API_KEY=#########
```
The SDK will use these variables when making api calls. You can then initialise your client like this:
```javascript
import {Client} from "@relevanceai/sdk";
import {Client} from "@relevanceai/dataset";
const client = new Client({});
```
### Option 2 - Passing them in code.
```javascript
import {Client} from "@relevanceai/sdk";
import {Client} from "@relevanceai/dataset";
const client = new Client({
project:'########',
api_key:'########',
Expand All @@ -56,7 +56,7 @@ const client = new Client({
# Examples
### You can import builders and type definitions like this
```javascript
import {QueryBuilder,Client,BulkInsertOutput} from "@relevanceai/sdk";
import {QueryBuilder,Client,BulkInsertOutput} from "@relevanceai/dataset";
```
## Insert millions of items with one function call
```javascript
Expand Down

0 comments on commit ec9f1ca

Please sign in to comment.