Metadata for a single Pinecone vector. More...
#include <vector_metadata.hpp>
Public Member Functions | |
metadata (std::unordered_map< std::string, metadata_value > values) noexcept | |
auto | values () const noexcept -> std::unordered_map< std::string, metadata_value > const & |
Friends | |
void | to_json (nlohmann ::json &nlohmann_json_j, const metadata &nlohmann_json_t) |
void | from_json (const nlohmann ::json &nlohmann_json_j, metadata &nlohmann_json_t) |
Metadata for a single Pinecone vector.
Metadata is essentially a map of key:value pairs where each key is a string and each value is a metadata_value (essentially a variant over a few supported value types). This metadata can be used in multiple API operations as a filter to restrict the operation to run on a subset of vectors within an index. Due to the complexity of this API, Cppinecone encodes metadata filtering with a special set of operations that make it easier to interact with from C++ code.
Definition at line 109 of file vector_metadata.hpp.
|
inlinenoexcept |
Definition at line 119 of file vector_metadata.hpp.