barrel_vectordb_docdb_backend (barrel_vectordb v2.1.1)

View Source

barrel_docdb-backed document backend for barrel_vectordb.

Stores each vector's text and metadata as a document in a barrel_docdb database, so documents and vectors can share one source of truth (and, later, replicate together). Vectors stay in the vector store's own RocksDB; only text and metadata are kept here.

Metadata is stored as an opaque term_to_binary value so arbitrary Erlang terms (including atom keys) round-trip exactly through the document codec.

Config: #{db => binary()} (the docdb database name, default = the store name) and #{docdb_opts => map()} (passed to barrel_docdb:create_db/2).