Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
enesakar authored Jan 18, 2024
1 parent 6eb6174 commit 017c948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ const index = new Index({

Upstash vector indexes support operations for working with vector data using operations such as upsert, query, fetch, and delete.

### Targeting an index
### Accessing an index

To perform data operations on an index, you target it using the `index` method.
To perform data operations on an index, access it using the `index` method.

```typescript
const index = new Index();
Expand All @@ -65,7 +65,7 @@ const index = new Index();
await index.fetch([1, 2, 3], { includeMetadata: true, includeVectors: true });
```

### Targeting an index, with metadata typing
### Accesing an index, with metadata typing

If you are storing metadata alongside your vector values, you can pass a type parameter to `index()` in order to get proper TypeScript typechecking.

Expand Down

0 comments on commit 017c948

Please sign in to comment.