Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Commit

Permalink
Add example mappings for Amazon OpenSearch index creation (#209)
Browse files Browse the repository at this point in the history
* Add example mappings for Amazon OpenSearch index creation

* Removed carryover comment
  • Loading branch information
cjkindel authored Jan 30, 2024
1 parent bb626cb commit 9dbc715
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions docs/griptape-framework/data/vector-store-drivers.md
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,19 @@ result = vector_store_driver.query(query="What is griptape?")
print(result)
```

The body mappings for creating a vector index should look similar to the following:
```json
{
"mappings": {
"properties": {
"vector": {"type": "knn_vector", "dimension": 1536},
"namespace": {"type": "keyword"},
"metadata": {"type": "object", "enabled": true},
}
},
}
```

## PGVector Vector Store Driver

!!! info
Expand Down

0 comments on commit 9dbc715

Please sign in to comment.