File tree Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Expand file tree Collapse file tree 1 file changed +21
-21
lines changed Original file line number Diff line number Diff 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+
930951You 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
965986client.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-
989989You can delete a vector store file:
990990
991991``` ruby
You can’t perform that action at this time.
0 commit comments