mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
finished op definitions
This commit is contained in:
parent
199bc58a90
commit
2d17ab0ab2
adapter-pinecone/src/main/resources/docs
@ -0,0 +1,19 @@
|
||||
bindings:
|
||||
vector: Need function to generate a list of float values here
|
||||
comparator: Uniform(1,1000) -> int
|
||||
|
||||
blocks:
|
||||
query:
|
||||
ops:
|
||||
query-op1:
|
||||
query: "test-index"
|
||||
vector: {vector}
|
||||
namespace: "test-namespace"
|
||||
top_k: 10
|
||||
filters:
|
||||
- filter_field: "value"
|
||||
operator: "$lt"
|
||||
comparator: {comparator}
|
||||
include_values: true
|
||||
include_metadata: true
|
||||
|
@ -2,42 +2,141 @@
|
||||
|
||||
```yaml
|
||||
ops:
|
||||
|
||||
# A pinecone query op
|
||||
query-example:
|
||||
query: myindex
|
||||
vector: use bindings to generate an array of floats
|
||||
namespace: mynamespace
|
||||
filter:
|
||||
field:
|
||||
operator:
|
||||
comparator:
|
||||
|
||||
# A pinecone query op verbose
|
||||
query-example:
|
||||
type: query
|
||||
index: myindex
|
||||
vector: use bindings to generate an array of floats
|
||||
namespace: mynamespace
|
||||
filter:
|
||||
field:
|
||||
operator:
|
||||
comparator:
|
||||
|
||||
# A pinecone query op
|
||||
query-example:
|
||||
type: query
|
||||
index: query_index
|
||||
# The query vector. Use these fields if only querying a single vector. If querying multiple use the
|
||||
# query_vectors structure below.
|
||||
vector: my_array_of_floats
|
||||
namespace: query_namespace
|
||||
# The number of results to return for each query.
|
||||
top_k: int_query_topk
|
||||
# You can use vector metadata to limit your search. See https://www.pinecone.io/docs/metadata-filtering/
|
||||
filters:
|
||||
- filter_field: query_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
- filter_field: query_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
# Indicates whether vector values are included in the response.
|
||||
include_values: boolean
|
||||
# Indicates whether metadata is included in the response as well as the ids.
|
||||
include_metadata: boolean
|
||||
query_vectors:
|
||||
- id: 1
|
||||
values: csv_separated_floats
|
||||
top_k: int_val
|
||||
namespace: string_val
|
||||
filters:
|
||||
- filter_field: query_vector_filter_field
|
||||
operator: comparison_operator
|
||||
comparator: comparator_val
|
||||
- filter_field: query_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
sparse_values:
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
- id: 2
|
||||
values: csv_separated_floats
|
||||
top_k: int_val
|
||||
namespace: string_val
|
||||
filters:
|
||||
- filter_field: query_vector_filter_field
|
||||
operator: comparison_operator
|
||||
comparator: comparator_val
|
||||
- filter_field: query_vector_filter_field
|
||||
operator: comparison_operator
|
||||
comparator: comparator_val
|
||||
sparse_values:
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
|
||||
# A delete op
|
||||
delete-example:
|
||||
delete: indexfoo
|
||||
... additional fields ...
|
||||
# If specified, the metadata filter here will be used to select the vectors to delete. This is mutually exclusive
|
||||
# with specifying ids to delete in the ids param or using delete_all=True. delete_all indicates that all vectors
|
||||
# in the index namespace should be deleted.
|
||||
delete-example:
|
||||
type: delete
|
||||
index: delete_index
|
||||
namespace: delete_namespace
|
||||
ids: csv_list_of_vectors_to_delete
|
||||
deleteall: [true,false]
|
||||
filters:
|
||||
- filter_field: delete_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
- filter_field: delete_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
|
||||
# A describe index stats op
|
||||
describe-index-stats-example:
|
||||
describe-index-stats: indexbar
|
||||
# A describe index stats op. Specify metadata filters to narrow the range of indices described.
|
||||
describe-index-stats-example:
|
||||
type: describe-index-stats
|
||||
index: describe_index
|
||||
filters:
|
||||
- filter_field: delete_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
- filter_field: delete_filter_field
|
||||
operator: [$lt, $gt, $eq, ...]
|
||||
comparator: query_compval
|
||||
|
||||
# A pinecone fetch op
|
||||
fetch-example:
|
||||
fetch: fetch_index
|
||||
namespace: fetch_namespace
|
||||
ids: csv_list_of_vectors_to_fetch
|
||||
|
||||
# A pinecone update op
|
||||
update-example:
|
||||
type: update
|
||||
index: update_index
|
||||
id: string_id
|
||||
values: list_of_floats
|
||||
namespace: update_namespace
|
||||
set_metadata:
|
||||
- key1: val1
|
||||
- key2: val2
|
||||
- key3: val3
|
||||
sparse_values:
|
||||
- sparse_id: 1
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
- sparse_id: 2
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
|
||||
# A pinecone upsert op
|
||||
upsert-example:
|
||||
type: upsert
|
||||
index: upsert_index
|
||||
namespace: upsert_namespace
|
||||
upsert_vectors:
|
||||
- id: 1
|
||||
values: csv_separated_floats
|
||||
top_k: int_val
|
||||
namespace: string_val
|
||||
filter:
|
||||
filter_field: query_vector_filter_field
|
||||
operator: comparison_operator
|
||||
comparator: comparator_val
|
||||
sparse_values:
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
- id: 2
|
||||
values: csv_separated_floats
|
||||
top_k: int_val
|
||||
namespace: string_val
|
||||
filter:
|
||||
filter_field: query_vector_filter_field
|
||||
operator: comparison_operator
|
||||
comparator: comparator_val
|
||||
sparse_values:
|
||||
indices: list_of_ints
|
||||
values: list_of_floats
|
||||
|
||||
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user