vellum-ai 0.0.3 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/core/fetcher/Fetcher.js +1 -1
- package/dist/core/fetcher/Fetcher.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
The Vellum Node.js library provides access to the Vellum API from JavaScript/TypeScript.
|
|
7
7
|
|
|
8
|
+
## API Docs
|
|
9
|
+
You can find Vellum's complete API docs at [docs.vellum.ai](https://docs.vellum.ai).
|
|
10
|
+
|
|
8
11
|
|
|
9
12
|
## Installation
|
|
10
13
|
|
|
@@ -19,7 +22,7 @@ yarn add vellum-ai
|
|
|
19
22
|
[](https://stackblitz.com/edit/typescript-example-using-sdk-built-with-fern-xbs4jx?file=app.ts)
|
|
20
23
|
|
|
21
24
|
```typescript
|
|
22
|
-
import { VellumClient } from '
|
|
25
|
+
import { VellumClient } from 'vellum-ai';
|
|
23
26
|
|
|
24
27
|
const vellum = new VellumClient({
|
|
25
28
|
apiKey: 'VELLUM_API_KEY',
|
|
@@ -39,7 +42,7 @@ Documents can be uploaded to Vellum via either the UI or this API. Once uploaded
|
|
|
39
42
|
```typescript
|
|
40
43
|
import * as fs from 'fs';
|
|
41
44
|
|
|
42
|
-
await vellum.
|
|
45
|
+
await vellum.documents.upload(fs.createReadStream('/path/to/your/file.txt'), {
|
|
43
46
|
addToIndexNames: ['<your-index-name>'],
|
|
44
47
|
externalId: '<your-external-id>',
|
|
45
48
|
label: 'Human-friendly label for your document',
|
package/core/fetcher/Fetcher.js
CHANGED