Cppinecone
A C++ client for the Pinecone vector database
vector_operations.hpp
Go to the documentation of this file.
1 #pragma once
13 
14 namespace pinecone::domain
15 {
16 template <typename filter>
17 struct operation_args<operation_type::vector_describe_index_stats, filter>
18  : public vector_operation_args<operation_type::vector_describe_index_stats, filter>,
19  public types::parser<types::index_stats> {
20  using vector_operation_args<operation_type::vector_describe_index_stats,
22 };
23 
24 template <typename filter>
25 struct operation_args<operation_type::vector_query, filter>
26  : public vector_operation_args<operation_type::vector_query, types::query<filter>>,
27  public types::parser<types::query_result> {
28  using vector_operation_args<operation_type::vector_query,
30 };
31 
32 template <typename filter>
33 struct operation_args<operation_type::vector_delete, filter>
34  : public vector_operation_args<operation_type::vector_delete, types::delete_request<filter>>,
35  public types::parser<types::accepted> {
36  using vector_operation_args<operation_type::vector_delete,
38 };
39 
40 template <>
41 struct operation_args<operation_type::vector_upsert>
42  : public vector_operation_args<operation_type::vector_upsert, types::upsert_request>,
43  public types::parser<types::accepted> {
44  using vector_operation_args<operation_type::vector_upsert,
46 };
47 
48 template <>
49 struct operation_args<operation_type::vector_update>
50  : public vector_operation_args<operation_type::vector_update, types::update_request>,
51  public types::parser<types::accepted> {
52  using vector_operation_args<operation_type::vector_update,
54 };
55 } // namespace pinecone::domain
A monostate sentinel type for operations that have no associated response.
Metaprogamming infrastructure for generation of per-operation code.
Operations made available by the Pinecone API.
operation_type
All operation types exposed by the Pinecone REST API.
Parses HTTP responses to domain types.
Operation-specific arguments.
Definition: operation.hpp:172
Vector operations construct themselves using a unique resource name and an operation-dependent body p...
Definition: operation.hpp:146
Deletes one or more vectors from an index.
Parses raw data from the Pinecone API into native C++ types.
Definition: parser.hpp:27
A vector search.
Update existing vectors in an index.
Insert or update vectors in an index.
Encoding for Pinecone's vector metadata API.
Native C++ types modeling the results of vector operations.