Skip to content

Commit b0341a7

Browse files
committed
fix: updated docs to be in the correct place
1 parent 5e53f6a commit b0341a7

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

Diff for: README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -927,6 +927,27 @@ response = client.vector_stores.modify(
927927
)
928928
```
929929

930+
You can search a vector store for relevant chunks based on a query:
931+
932+
```ruby
933+
response = client.vector_stores.search(
934+
id: vector_store_id,
935+
parameters: {
936+
query: "What is the return policy?",
937+
max_num_results: 20,
938+
ranking_options: {
939+
# Add any ranking options here in line with the API documentation
940+
},
941+
rewrite_query: true,
942+
filters: {
943+
type: "eq",
944+
property: "region",
945+
value: "us"
946+
}
947+
}
948+
)
949+
```
950+
930951
You can delete vector stores:
931952

932953
```ruby
@@ -965,27 +986,6 @@ You can get a `list` of all vector store files currently available under the vec
965986
client.vector_store_files.list(vector_store_id: "vector-store-abc123")
966987
```
967988

968-
You can search a vector store for relevant chunks based on a query:
969-
970-
```ruby
971-
response = client.vector_stores.search(
972-
id: vector_store_id,
973-
parameters: {
974-
query: "What is the return policy?",
975-
max_num_results: 20,
976-
ranking_options: {
977-
# Add any ranking options here in line with the API documentation
978-
},
979-
rewrite_query: true,
980-
filters: {
981-
type: "eq",
982-
property: "region",
983-
value: "us"
984-
}
985-
}
986-
)
987-
```
988-
989989
You can delete a vector store file:
990990

991991
```ruby

0 commit comments

Comments
 (0)