mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 18:17:16 +01:00
* vector: derive the indexed metadata key columns An indexed metadata key is a hidden `_mk_<n>` column of List<Utf8>: the strings an S3 `$eq` on a string matches, that is the value when it is a string or the string elements of an array, and nothing for any other type or a missing key. The field metadata names the key and its state (`building` or `ready`). The module derives the column from metadata given as JSON (the write path) or as stored (jsonb or JSON text, for a backfill), and reads the indexed keys from a schema. It lives in the worker crate so the engine and the worker share it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: fill the indexed metadata key columns on PutVectors PutVectors builds its batch against the table's current schema. Once a table has indexed metadata key columns, the three-column batch no longer matches that schema and the write fails. Fill each `_mk_*` column the schema has from the row's metadata, whatever the key's state; a column the engine does not know still fails the request. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: answer string $eq and $in on a ready indexed key from its column The gateway renders a string `$eq` or `$in` on a key as an OR of `json_extract(metadata, P) = '"v"'` (or IN) and `json_array_contains(metadata, P, '"v"')` over the same values. On the parsed filter, a top-level conjunct of that shape on a key whose column is `ready` becomes `array_has` / `array_has_any` on the column, which its LABEL_LIST index answers. The two halves must name the same key and the same strings, the scalar half in the text json_extract returns for them; anything else, including `$ne`, `$nin`, `$exists`, numbers and booleans, stays on the JSON path, and the other conjuncts still apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: score few indexed matches exactly, per scope With a ready indexed key in the filter, `ann` first counts the rows of its scope that the key's conjuncts match, through the scalar index. When they are at most the limit it scores them exactly over that scope, the way the short-result fallback does; above it, the vector index searches with the indexed prefilter, and the fallback still applies. The scope is the one `exact_in_scope` scores, so per-scope exact answers merge into the global exact top-k. The limit is `Query::exact_match_limit` (None takes 256; 0 never counts), set by the engine's --exact-match-limit (WEED_VECTOR_EXACT_MATCH_LIMIT). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: count filtered queries by metadata key For each index, the engine counts its QueryVectors calls by the metadata keys of the parsed filter, with their total latency and the operand types each key was compared with, over the last hour in 5-minute buckets. At most 512 indexes and 32 keys per index are kept (an idle key makes room; otherwise the index is marked truncated), and the stats are not exported as metrics labels. The new FilterStats RPC returns an index's stats; the gateway's discovery client forwards it like the other calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: report the metadata columns capability in gRPC health An engine whose writes fill the indexed metadata key columns reports the gRPC health service `weed.vector.capability.metadata_columns` as serving, so an operator action can refuse to index a key while an older engine could still write the table. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: expire filter stats' operand kinds and truncation with the window The operand kinds a key was compared with, and the mark that a key went uncounted, outlived the queries that set them. Keep the kinds per 5-minute bucket and the truncation as the bucket it last happened in, so both leave the hour window with the counts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: fill indexed key columns a write left empty racing their add A PutVectors that opened the table before an indexed key's column was added, and commits after the add, is rebased by Lance onto the wider schema: it commits, and the rows it wrote hold NULL in the new column, so the column's index misses them (reproduced in the test: 100 of 150 rows). After its commit, PutVectors now looks for indexed-key columns the batch did not carry, reads those of its keys whose column is still NULL, derives the values from their stored metadata and patches just those columns with a partial-schema merge that updates only rows still NULL. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: keep filter stats' truncation mark at the later bucket record() reads the clock before it takes the lock, so a call that waited on the lock across a bucket boundary could move the truncation mark (and the index's last-used bucket) back to its earlier bucket, and the mark then left the window one bucket early. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: derive a raced write's indexed key columns from current metadata A PutVectors that opened the table before an indexed key's column was added is retried by Lance against the wider schema: rows it inserts hold NULL there, and rows it updates keep the value derived from their old metadata, which the NULL-only heal never looked at. The heal now derives the columns for all of the write's keys. Its merge also ran with Lance's retry, which joins the values derived before the conflict onto the rows a later write of the same keys left. It now fails on a conflict and is redone from the latest version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: check the raced write's keys keep the later write's rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector worker: the indexed metadata key lifecycle on the Lance table A key's whole state lives in the table: a request is schema metadata (`weed:metadata_key_request:<key>`), the key's `_mk_<n>` column carries `building`, `ready` or `off`, and its LABEL_LIST index is named `_mk_<n>_idx`. - request / request_removal: the cheap metadata-only steps an operator action takes. Removal of a column sets it off at once. - add_column computes the column for every row with add_columns. - finish fills rows still NULL (a write that raced the add and died before filling them), builds the first segments, fills again, marks the key ready and clears the request. - index_fragments keeps the index as time-ordered segments: the first build splits the table into segments of up to `segment_rows` rows in fragment order (uncommitted builds committed in one CreateIndex); later, once unindexed rows reach a threshold, they fold into the head (num_indices_to_merge = 1) or start a new head once the head is full (num_indices_to_merge = 0). - maintain fills NULL rows, then folds; remove_column sets off, drops the index, then the column. Filling uses a partial-schema merge that only updates rows still NULL; it moves the rows it updates to a new fragment, so it serves the few rows a racing write leaves, not the backfill, which add_columns does in place. The test runs the whole lifecycle, including a write that opened the table before the add and committed after it without filling its rows, and a compaction: Lance keeps each segment's fragments apart and remaps every segment, and indexed answers match the JSON filter throughout. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: list and request indexed metadata keys through the engine MetadataKeys reports an index's keys as its Lance table records them: requested (schema metadata), building, ready or off (the column's field), with the rows, segments and bytes of each key's scalar index. UpdateMetadataKey records a request to index a key, or to stop: a request is withdrawn, a column is set off at once. Both are refused with FailedPrecondition for a key indexed or requested already, past eight keys, or not indexed. The gateway's discovery and describe clients forward both, so the shell and admin reach them like the other calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: lance_metadata_index job adds, maintains and removes keys Detection reads each S3 Vectors table's keys: a requested or `building` key is to add, an `off` one to remove, and a `ready` one whose unindexed rows reached `min_unindexed_rows` (default 50,000) to maintain. A job names the table, key and action, as the admin builds it when it dispatches one for an operator, and does only what the table still asks for when it runs. `segment_rows` (default 1,000,000) caps a segment. The job runs in the Lance scheduler lane. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * s3vectors: list and request indexed metadata keys for trusted callers Server.MetadataKeys and Server.UpdateMetadataKey reach the engine's new RPCs for the shell and the admin server. Adding a key refuses a non-filterable key of the index, and refuses unless every vector engine the masters list reports the gRPC health service weed.vector.capability.metadata_columns as serving, so no older engine can write the table without filling the key's column. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * shell: s3vectors.index.metadata lists, adds and removes indexed keys s3vectors.index.metadata -bucket b -index i [-add key | -remove key] prints each indexed metadata key with its state, the share of rows its scalar index covers, its segments and size. The shell's in-process S3 Vectors server setup moves into shellVectorsServer for both commands. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: derive raced rows again, not only the NULL ones A write that raced a key's column add leaves NULL in the rows it inserted and, in the rows it updated, the value derived from their old metadata. Filling only NULL rows missed the second kind. rederive compares each row's column with the value its stored metadata gives and rewrites the rows that differ, starting over from the latest version when a write commits meanwhile. finish runs it over the table before the first build and over the fragments written during the build; maintain runs it over the fragments the index does not cover yet, before folding them. The lifecycle test's raced write now moves 500 rows to another author as well as inserting 500, and all are right once the key is ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: count indexed matches segment by segment, newest first The planner counted a filter's indexed matches with a Lance scan of the query's scope. A fragment-scoped scan makes Lance read the column instead of answering from the index, and it counted every match. The count now opens each segment of the key's index that overlaps the scope, newest first, searches up to eight of them at once in order, keeps the rows of the scope's fragments, and stops as soon as the total passes the limit. Rows in fragments no segment covers yet are counted by a read of the column. An AND is bounded by its most selective indexed conjunct. Rows a segment still lists after a delete count too: the total is an upper bound, which can only send a query to the vector index instead of an exact scan. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: test jobs on a table dropped under them (fails) DeleteIndex purges the table directory, and a colocated index created again under the same name reuses it. The test runs a vector index build and the metadata key add, maintenance and remove jobs against a table dropped right after the job opened it, and at the job's first write. It expects the job to fail, no manifest in the dropped path (no file at all when dropped before the first write), and a table created there again to start empty. It fails today: the remove job's metadata-only commits succeed and write two manifests into the dropped path, after which creating the table again fails with "Dataset already exists". The next commit fixes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: a job does not write into a table dropped under it Jobs open tables through dataset::open, which now wraps the store in a DropGuard: once the manifest of the version the job opened is gone, every write fails ("the table was dropped while this job wrote it"), so the job fails instead of committing a manifest of the old table into the dropped path. A drop can land between the check and a write, so a manifest write is checked again afterwards and removed if the table is gone. Data or index files written in that window stay in the path unreferenced; no manifest does. With the guard, the vector index build and the metadata key add, maintenance and remove jobs fail on a table dropped after their open or at their first write, leave no manifest (nor any file when dropped before they wrote), and a table created there again starts empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: test an index dropped and created again on one engine (fails) DeleteIndex purges the table's directory through the catalog and an index created again under the same name reuses it. On the same running engine, after a ready indexed key, a query and its filter stats, the test drops and re-creates the index, writes new rows and queries again: no old row, indexed key or filter stat may come back. Rows and keys come back clean; the filter stats of the old table are still served for the new one. The next commit fixes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: filter stats follow the table behind an index name An index dropped and created again under its name is another table, but its filter stats were kept by name, so the new index showed the old one's filtered queries. The engine now forgets an index's stats when it creates or drops the index, and, since DeleteIndex purges through the catalog without telling the engines, a query of an index whose table id differs from the one its stats were counted on starts them over. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * s3vectors: refuse indexed key calls when no engine is configured A Server built without a vector engine client (as the admin's tests build it) panicked on MetadataKeys instead of answering with an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: a key removed during its build stays removed Removing a key whose build had not finished set its column off but left its add request, which reappeared once the column was dropped and asked for the key again. A build that finished after the removal also set the key back to ready. Removal now withdraws the request too, both when the operator asks and when the job drops the column, and finish marks the key ready only if the latest version still has it building. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: maintain a key at once when a write left NULL rows A write that raced a key's add and stopped before fixing its rows leaves NULL in the key's column, so queries through the key miss those rows. They land in fragments the index does not cover yet, which maintenance derives again, but only once the unindexed rows reached the threshold. Detection now also proposes maintenance when those fragments hold a NULL row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: test a purge through the drop guard (fails) A purge removes the versions before its rebuild, including the one it opened, which the drop guard watches; recording the purge's completion then fails as if the table had been dropped. The next commit fixes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: the drop guard follows the job's own commits The guard watched the manifest of the version a job opened, and a job that removes old versions itself, as a purge does, removed it and then failed its next write as if the table had been dropped. The guard now watches the newest manifest the job committed, and when the job deletes the watched manifest itself, the newest manifest left beside it. A table dropped under the job still fails its writes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector worker: a column add keeps requests and states committed meanwhile add_columns commits the schema it read, and Lance lets that Merge go in over the schema and field metadata updates committed while it ran. A key requested, withdrawn or removed while another key's column was added was silently undone: the removed key went back to ready and the request vanished. The add now sets those again, and a key whose own request was withdrawn meanwhile gets its new column off instead of being built. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: keep FilterStats::record's doc on record Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector worker: test the guard against the job's own cleanup directly The purge test asserted the purge was served, which depends on the cleanup's retention policy rather than on the guard. It now has the job remove every version before its own commit, the opened one with them, through the guarded store, and write again; a purge after that still completes. Without the previous commit's fix the write after the cleanup fails with the DropGuard error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: indexed-key tests compare keys, not only distances assert_same accepted a different key at a rank whenever its distance matched, so a lost row replaced by a duplicate passed. It now requires the same keys, and lets two keys trade ranks only when they tie. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: filter stats record their table with each query A query recorded its stats and its table in two steps, so the first query of an index left the stats without a table, and a later table under the name then took them over. A query of the old table finishing after the index was created again also cleared or added to the new table's stats. record now takes the table and, under one lock, starts the stats over for a new table, keeps the tables the name held before, and drops a query of one of those. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: asking again for a key change is done, not an error UpdateMetadataKey commits the request and then lists the keys. When the listing failed after the commit, the caller saw an error, and its retry was refused as already indexed, so the change it made could not be confirmed. A request for a key requested or indexed already, and a removal of a key not indexed or already off, now succeed without another commit. A request for a key still being removed is refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: a resumed add sets again what its commit overwrote add_columns commits the schema it read, so add_column sets again the requests and key states committed while it ran. A job that stopped between the add's commit and that step left them overwritten, and the build that resumed the key, seeing it building, finished it: a removal asked for meanwhile was lost and the key went ready. The added column records the version its add read. A resumed build compares that version's schema with the add's and sets again what the add overwrote before going on, and stops when that leaves the key off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * vector: a key goes ready only after writes that raced its add are done A PutVectors that opened the table before a key's column add and committed after it wrote its rows' key column as of the version it read: NULL for new rows, the old value for updated ones. It derives them again itself, but when that failed, or the write was still running when the build finished, the key went ready with those rows wrong, and maintenance only filled NULLs. PutVectors now commits within WRITE_DEADLINE (120s) of opening the table or fails. finish waits until RACE_GRACE (180s) after the add, then derives again the fragments written since it first looked, comparing values, not only NULLs, before it marks the key ready. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: drop guard tests for a table created again and flaky probes A job on a table dropped and created again under the name, a probe that fails after a manifest is written, a multipart upload completing after the drop, and a cleanup whose paths now hold the new table's files. Each fails against the guard as it is. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: drop guard tells a table created again from the one opened The guard only checked that the watched manifest path existed. A table created again under the name reuses version paths, so a job on the old table wrote into the new one. A failed HEAD after a manifest write was taken as a drop and deleted the published manifest. A multipart upload was checked only when it started, and a cleanup deleted paths it picked before the drop. The guard now records the manifest's e-tag and treats another e-tag, or the manifest gone with others beside it, as a table created again. A failed probe after a manifest write keeps the manifest. A multipart upload checks again before it completes, and a cleanup checks once before it deletes, refusing when another table is there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: order the zero-grace control of the racing-write test The control ran the stale write 1.5s into finish, so on a slow runner it could commit before finish's last pass and be repaired, failing the assertion that it lands after ready. It now commits after finish returns. With a grace the write still overlaps the wait: it commits 1.5s after the add, and finish looks again only once the grace from the add has passed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: set again what an add overwrote once, over later changes recover_add replayed the add's historical delta on every resumed build, so a request withdrawn after it was set again came back. It wrote over values changed since the add, failed on a column dropped since, and failed on every attempt once a cleanup removed the version it read. The added column now carries a restore mark. The restoration is one UpdateConfig commit that sets the schema entries and key states the add overwrote and clears the mark, so it runs once. An entry or state changed again since the add keeps its later value, and a column gone or holding another key is skipped. The schema the add read comes from the add's own version; without the version before it, the mark is cleared and the build goes on. finish waits the whole grace from now when the add's version is gone. a_restored_add_is_not_replayed, a_resumed_add_skips_a_column_dropped_since and a_resumed_add_goes_on_after_a_cleanup failed before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: a removal sets again what the key's add overwrote first Recovery ran only when an add resumed. A key withdrawn after its add stopped went to the remove job, which dropped the column and its restore mark, losing for good the requests and key states the add overwrote. The remove job now recovers the add before it drops the column; the key stays off. a_removal_keeps_what_the_add_overwrote failed before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: drop guard aborts on a failed probe, keeps another's manifest An upload whose check before completing failed returned the error without aborting, leaving its parts behind on S3. A manifest write found dropped or replaced was deleted at its path even when a table created again had since written its own manifest there. complete now aborts on a failed probe too. The rollback deletes the manifest only while its e-tag is the one this write got. Object stores offer no conditional delete, so a table created again between that HEAD and the delete is still not covered. a_failed_probe_aborts_an_upload and a_rollback_keeps_the_manifest_of_a_table_created_again failed before this change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * lance worker: test a failed rollback probe over a table created again Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: keep a replacement's manifest when the rollback cannot tell it apart After a write's manifest, a drop guard that found the table replaced deleted the manifest whenever its HEAD failed or the PUT returned no e-tag. It now deletes a replaced table's manifest only when the e-tags match; a table merely dropped still takes its manifest back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: MetadataKeys leases the version it lists Like the other reads, it pins the opened version so a purge cannot reclaim that manifest's index files while the segments are loaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: test a key that went ready on an empty table Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: build the first segment of a ready key below the threshold A key that went ready on an empty table has no segment. Detection held its unindexed rows to min_unindexed_rows, so a small table stayed unindexed. A ready key without a segment is now maintained once it has rows, as index_fragments builds a first segment at any size. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: test a repair retried over a compaction of its fragments Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: a repair retried after contention derives the moved rows too rederive started over from the latest version with the fragment ids it was given. When a compaction caused the contention, those fragments were gone and the retry repaired nothing, so maintain folded the compacted rows with their columns still NULL. A retry now also derives the fragments the newer version added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: test withdrawals that race a key's add Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: a withdrawal that races the key's add sets its column off A removal that read only the request cleared it, and Lance rebases that metadata update over the add's Merge, so the column it made stayed building and finish made it ready. After withdrawing the request, the removal looks again and sets a column it finds for the key off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: a withdrawal recovers interrupted adds first An add whose commit overwrote another key's request and stopped before setting it again hides that request. A withdrawal of it then found nothing to do, and the add's later recovery brought the request back. request_removal now recovers such adds before it decides. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: test a request committed while a column is dropped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: a drop sets again what it overwrote while it ran drop_columns commits a Project of the schema it read, and Lance rebases it over metadata updates, so a request or key state committed while the column was dropped was lost. remove_column now sets those again as a column add does, through the overwritten diff split out of reapply_metadata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * lance worker: drop test counts HEADs with try_update Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: test a late query of a dropped table after the next table's first one Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: test PutVectors at a version from before a key's column add Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: keep a dropped table retired when its index's stats are forgotten Dropping or creating an index removed its stats entry, and the retired tables with it, so a late query of the dropped table that came after the new table's first one reset the new table's stats. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * vector: refuse PutVectors at a table version Table.version pins reads. A write opened at a version from before a key's column add would commit rows without the column after the key went ready, past the write deadline and the grace pass. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * admin: indexed metadata keys panel for S3 Vectors indexes (#12821) * vector: report an index's rows and vector index type with its keys MetadataKeys also answers with the table's rows and its vector index type (IVF_FLAT, or empty without one), which the admin's index panel shows next to the keys. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: indexed metadata keys panel on the S3 Vectors bucket page Each index of a vector bucket gets a card: dimension, metric, vectors and vector index type; its indexed metadata keys with state, coverage of the table's rows, filtered queries per hour and index size, with Remove for a ready key and Cancel for a requested or building one; and the keys its queries filtered on most in the last hour that are not indexed, with their average latency. A key filtered only with numbers is marked "(numeric: phase 2)" and has no Index button. "+ Index a key" and a listed key's Index button open a dialog for the key, which refuses the index's non-filterable keys. Adding or removing goes through the engine; the admin then dispatches the lance_metadata_index job for that key when a worker can run it, and detection finds it otherwise. Filter stats are read from every registered engine and summed per hour over each engine's window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: keep a metadata key's spaces when indexing it The dialog trimmed the key before sending it, but metadata key names are exact strings: a key with surrounding spaces would have indexed another field. Only an empty or all-space name is refused now. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: bound the index panel's key lookup An engine that accepted the panel's MetadataKeys call and stopped answering held the whole bucket page; the lookup now gives up after five seconds and the panel shows the error, as the filter-stat calls do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: dispatch a metadata key job without the cluster admin lock ExecutePluginJob holds the cluster admin lock for the whole run, so a key build dispatched from the bucket page kept weed shell and the default lane locked out for up to an hour. The Lance lane runs without that lock in the scheduler; run the dispatched job the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * admin: pass an index without non-filterable keys as an empty list An index whose record holds a metadata configuration with no key list was rendered as `null`, and the dialog's non-filterable check then threw before it could submit or show an error. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: ask in a modal before removing or cancelling a key's index Remove and Cancel on a metadata key asked with the browser's confirm(), unlike the rest of the page. They now open a Bootstrap modal laid out as Delete Index's, naming the key and the index, and show a failure in the modal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011UpvafvK8JpagF94MHWqwK * admin: show when an engine's filter stats leave keys out sumFilterStats dropped each engine's truncated flag, so a panel whose engine stopped counting new keys listed its frequent keys as complete. The panel now carries the flag and says the list is partial. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1785 lines
54 KiB
Go
1785 lines
54 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.6
|
|
// protoc v3.21.12
|
|
// source: vector.proto
|
|
|
|
package vector_pb
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
structpb "google.golang.org/protobuf/types/known/structpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type DistanceMetric int32
|
|
|
|
const (
|
|
DistanceMetric_DISTANCE_METRIC_UNSPECIFIED DistanceMetric = 0
|
|
DistanceMetric_L2 DistanceMetric = 1
|
|
DistanceMetric_COSINE DistanceMetric = 2
|
|
DistanceMetric_DOT_PRODUCT DistanceMetric = 3
|
|
)
|
|
|
|
// Enum value maps for DistanceMetric.
|
|
var (
|
|
DistanceMetric_name = map[int32]string{
|
|
0: "DISTANCE_METRIC_UNSPECIFIED",
|
|
1: "L2",
|
|
2: "COSINE",
|
|
3: "DOT_PRODUCT",
|
|
}
|
|
DistanceMetric_value = map[string]int32{
|
|
"DISTANCE_METRIC_UNSPECIFIED": 0,
|
|
"L2": 1,
|
|
"COSINE": 2,
|
|
"DOT_PRODUCT": 3,
|
|
}
|
|
)
|
|
|
|
func (x DistanceMetric) Enum() *DistanceMetric {
|
|
p := new(DistanceMetric)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x DistanceMetric) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (DistanceMetric) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_vector_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (DistanceMetric) Type() protoreflect.EnumType {
|
|
return &file_vector_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x DistanceMetric) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use DistanceMetric.Descriptor instead.
|
|
func (DistanceMetric) EnumDescriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
// Table addresses a Lance table through the namespace: the id parts as the
|
|
// namespace catalog joins them. The gateway resolves the table before it
|
|
// calls, so the engine opens it without a catalog round trip of its own.
|
|
type Table struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id []string `protobuf:"bytes,1,rep,name=id,proto3" json:"id,omitempty"`
|
|
// Dataset version to pin reads to; 0 means latest.
|
|
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
// The table's Lance location, as the catalog describes it.
|
|
Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
|
|
// The bucket encrypts its objects with SSE-S3; the engine writes the
|
|
// table's files that way.
|
|
SseS3 bool `protobuf:"varint,5,opt,name=sse_s3,json=sseS3,proto3" json:"sse_s3,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Table) Reset() {
|
|
*x = Table{}
|
|
mi := &file_vector_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Table) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Table) ProtoMessage() {}
|
|
|
|
func (x *Table) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Table.ProtoReflect.Descriptor instead.
|
|
func (*Table) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Table) GetId() []string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Table) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Table) GetLocation() string {
|
|
if x != nil {
|
|
return x.Location
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Table) GetSseS3() bool {
|
|
if x != nil {
|
|
return x.SseS3
|
|
}
|
|
return false
|
|
}
|
|
|
|
type CreateIndexRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Dimension uint32 `protobuf:"varint,2,opt,name=dimension,proto3" json:"dimension,omitempty"`
|
|
DistanceMetric DistanceMetric `protobuf:"varint,3,opt,name=distance_metric,json=distanceMetric,proto3,enum=vector_pb.DistanceMetric" json:"distance_metric,omitempty"`
|
|
NonFilterableMetadataKeys []string `protobuf:"bytes,4,rep,name=non_filterable_metadata_keys,json=nonFilterableMetadataKeys,proto3" json:"non_filterable_metadata_keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateIndexRequest) Reset() {
|
|
*x = CreateIndexRequest{}
|
|
mi := &file_vector_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateIndexRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateIndexRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateIndexRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateIndexRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateIndexRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetDimension() uint32 {
|
|
if x != nil {
|
|
return x.Dimension
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetDistanceMetric() DistanceMetric {
|
|
if x != nil {
|
|
return x.DistanceMetric
|
|
}
|
|
return DistanceMetric_DISTANCE_METRIC_UNSPECIFIED
|
|
}
|
|
|
|
func (x *CreateIndexRequest) GetNonFilterableMetadataKeys() []string {
|
|
if x != nil {
|
|
return x.NonFilterableMetadataKeys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateIndexResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateIndexResponse) Reset() {
|
|
*x = CreateIndexResponse{}
|
|
mi := &file_vector_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateIndexResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateIndexResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateIndexResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateIndexResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateIndexResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateIndexResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DropIndexRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DropIndexRequest) Reset() {
|
|
*x = DropIndexRequest{}
|
|
mi := &file_vector_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DropIndexRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DropIndexRequest) ProtoMessage() {}
|
|
|
|
func (x *DropIndexRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DropIndexRequest.ProtoReflect.Descriptor instead.
|
|
func (*DropIndexRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *DropIndexRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DropIndexResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DropIndexResponse) Reset() {
|
|
*x = DropIndexResponse{}
|
|
mi := &file_vector_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DropIndexResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DropIndexResponse) ProtoMessage() {}
|
|
|
|
func (x *DropIndexResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DropIndexResponse.ProtoReflect.Descriptor instead.
|
|
func (*DropIndexResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
type Vector struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Data []float32 `protobuf:"fixed32,2,rep,packed,name=data,proto3" json:"data,omitempty"`
|
|
// JSON-typed metadata: numbers carry double precision, as on the wire.
|
|
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Vector) Reset() {
|
|
*x = Vector{}
|
|
mi := &file_vector_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Vector) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Vector) ProtoMessage() {}
|
|
|
|
func (x *Vector) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Vector.ProtoReflect.Descriptor instead.
|
|
func (*Vector) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *Vector) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Vector) GetData() []float32 {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Vector) GetMetadata() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Vectors []*Vector `protobuf:"bytes,2,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutVectorsRequest) Reset() {
|
|
*x = PutVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *PutVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*PutVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
func (x *PutVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *PutVectorsRequest) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PutVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PutVectorsResponse) Reset() {
|
|
*x = PutVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PutVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PutVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *PutVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PutVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*PutVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *PutVectorsResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
ReturnData bool `protobuf:"varint,3,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,4,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVectorsRequest) Reset() {
|
|
*x = GetVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetKeys() []string {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *GetVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
type GetVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetVectorsResponse) Reset() {
|
|
*x = GetVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *GetVectorsResponse) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Keys []string `protobuf:"bytes,2,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) Reset() {
|
|
*x = DeleteVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteVectorsRequest) GetKeys() []string {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Version uint64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) Reset() {
|
|
*x = DeleteVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *DeleteVectorsResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"`
|
|
NextToken string `protobuf:"bytes,3,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
|
|
ReturnData bool `protobuf:"varint,4,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,5,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
// A nonzero segment_count lists only the rows whose position modulo
|
|
// segment_count is segment_index; next_token stays a row position.
|
|
SegmentCount uint32 `protobuf:"varint,6,opt,name=segment_count,json=segmentCount,proto3" json:"segment_count,omitempty"`
|
|
SegmentIndex uint32 `protobuf:"varint,7,opt,name=segment_index,json=segmentIndex,proto3" json:"segment_index,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVectorsRequest) Reset() {
|
|
*x = ListVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *ListVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*ListVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetMaxResults() uint32 {
|
|
if x != nil {
|
|
return x.MaxResults
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetNextToken() string {
|
|
if x != nil {
|
|
return x.NextToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetSegmentCount() uint32 {
|
|
if x != nil {
|
|
return x.SegmentCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ListVectorsRequest) GetSegmentIndex() uint32 {
|
|
if x != nil {
|
|
return x.SegmentIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ListVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*Vector `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
NextToken string `protobuf:"bytes,2,opt,name=next_token,json=nextToken,proto3" json:"next_token,omitempty"`
|
|
// Set when segment_count was applied; an older engine ignores it.
|
|
Segmented bool `protobuf:"varint,3,opt,name=segmented,proto3" json:"segmented,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ListVectorsResponse) Reset() {
|
|
*x = ListVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ListVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ListVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *ListVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ListVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*ListVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetVectors() []*Vector {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetNextToken() string {
|
|
if x != nil {
|
|
return x.NextToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ListVectorsResponse) GetSegmented() bool {
|
|
if x != nil {
|
|
return x.Segmented
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryVectorsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
QueryVector []float32 `protobuf:"fixed32,2,rep,packed,name=query_vector,json=queryVector,proto3" json:"query_vector,omitempty"`
|
|
TopK uint32 `protobuf:"varint,3,opt,name=top_k,json=topK,proto3" json:"top_k,omitempty"`
|
|
// Lance SQL filter; empty means unfiltered. Metadata is one JSON
|
|
// `metadata` column, so the gateway translates S3 Vectors filter
|
|
// expressions onto it before they land here.
|
|
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
// Lance's post-filter escape hatch; off prefilters, matching S3 Vectors.
|
|
Postfilter bool `protobuf:"varint,5,opt,name=postfilter,proto3" json:"postfilter,omitempty"`
|
|
ReturnMetadata bool `protobuf:"varint,6,opt,name=return_metadata,json=returnMetadata,proto3" json:"return_metadata,omitempty"`
|
|
ReturnDistance bool `protobuf:"varint,7,opt,name=return_distance,json=returnDistance,proto3" json:"return_distance,omitempty"`
|
|
ReturnData bool `protobuf:"varint,8,opt,name=return_data,json=returnData,proto3" json:"return_data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) Reset() {
|
|
*x = QueryVectorsRequest{}
|
|
mi := &file_vector_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryVectorsRequest) ProtoMessage() {}
|
|
|
|
func (x *QueryVectorsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryVectorsRequest.ProtoReflect.Descriptor instead.
|
|
func (*QueryVectorsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetQueryVector() []float32 {
|
|
if x != nil {
|
|
return x.QueryVector
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetTopK() uint32 {
|
|
if x != nil {
|
|
return x.TopK
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetFilter() string {
|
|
if x != nil {
|
|
return x.Filter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetPostfilter() bool {
|
|
if x != nil {
|
|
return x.Postfilter
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnMetadata() bool {
|
|
if x != nil {
|
|
return x.ReturnMetadata
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnDistance() bool {
|
|
if x != nil {
|
|
return x.ReturnDistance
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *QueryVectorsRequest) GetReturnData() bool {
|
|
if x != nil {
|
|
return x.ReturnData
|
|
}
|
|
return false
|
|
}
|
|
|
|
type QueryResult struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Distance float32 `protobuf:"fixed32,2,opt,name=distance,proto3" json:"distance,omitempty"`
|
|
Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
|
|
Data []float32 `protobuf:"fixed32,4,rep,packed,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryResult) Reset() {
|
|
*x = QueryResult{}
|
|
mi := &file_vector_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryResult) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryResult) ProtoMessage() {}
|
|
|
|
func (x *QueryResult) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryResult.ProtoReflect.Descriptor instead.
|
|
func (*QueryResult) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *QueryResult) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *QueryResult) GetDistance() float32 {
|
|
if x != nil {
|
|
return x.Distance
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *QueryResult) GetMetadata() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *QueryResult) GetData() []float32 {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type QueryVectorsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Vectors []*QueryResult `protobuf:"bytes,1,rep,name=vectors,proto3" json:"vectors,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) Reset() {
|
|
*x = QueryVectorsResponse{}
|
|
mi := &file_vector_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*QueryVectorsResponse) ProtoMessage() {}
|
|
|
|
func (x *QueryVectorsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use QueryVectorsResponse.ProtoReflect.Descriptor instead.
|
|
func (*QueryVectorsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *QueryVectorsResponse) GetVectors() []*QueryResult {
|
|
if x != nil {
|
|
return x.Vectors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FilterStatsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Only the id is read.
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterStatsRequest) Reset() {
|
|
*x = FilterStatsRequest{}
|
|
mi := &file_vector_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterStatsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterStatsRequest) ProtoMessage() {}
|
|
|
|
func (x *FilterStatsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterStatsRequest.ProtoReflect.Descriptor instead.
|
|
func (*FilterStatsRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *FilterStatsRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type FilterKeyStats struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Queries uint64 `protobuf:"varint,2,opt,name=queries,proto3" json:"queries,omitempty"`
|
|
// Their total latency.
|
|
Seconds float64 `protobuf:"fixed64,3,opt,name=seconds,proto3" json:"seconds,omitempty"`
|
|
// The operand types the key was compared with.
|
|
StringOperand bool `protobuf:"varint,4,opt,name=string_operand,json=stringOperand,proto3" json:"string_operand,omitempty"`
|
|
NumberOperand bool `protobuf:"varint,5,opt,name=number_operand,json=numberOperand,proto3" json:"number_operand,omitempty"`
|
|
BoolOperand bool `protobuf:"varint,6,opt,name=bool_operand,json=boolOperand,proto3" json:"bool_operand,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterKeyStats) Reset() {
|
|
*x = FilterKeyStats{}
|
|
mi := &file_vector_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterKeyStats) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterKeyStats) ProtoMessage() {}
|
|
|
|
func (x *FilterKeyStats) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterKeyStats.ProtoReflect.Descriptor instead.
|
|
func (*FilterKeyStats) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetQueries() uint64 {
|
|
if x != nil {
|
|
return x.Queries
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetSeconds() float64 {
|
|
if x != nil {
|
|
return x.Seconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetStringOperand() bool {
|
|
if x != nil {
|
|
return x.StringOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetNumberOperand() bool {
|
|
if x != nil {
|
|
return x.NumberOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *FilterKeyStats) GetBoolOperand() bool {
|
|
if x != nil {
|
|
return x.BoolOperand
|
|
}
|
|
return false
|
|
}
|
|
|
|
type FilterStatsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keys []*FilterKeyStats `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
// The stats cover at most this long, less when the engine started later.
|
|
WindowSeconds uint32 `protobuf:"varint,2,opt,name=window_seconds,json=windowSeconds,proto3" json:"window_seconds,omitempty"`
|
|
// Keys of this index not counted because the engine tracks a bounded
|
|
// number of them.
|
|
Truncated bool `protobuf:"varint,3,opt,name=truncated,proto3" json:"truncated,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FilterStatsResponse) Reset() {
|
|
*x = FilterStatsResponse{}
|
|
mi := &file_vector_proto_msgTypes[19]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FilterStatsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FilterStatsResponse) ProtoMessage() {}
|
|
|
|
func (x *FilterStatsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[19]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FilterStatsResponse.ProtoReflect.Descriptor instead.
|
|
func (*FilterStatsResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{19}
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetKeys() []*FilterKeyStats {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetWindowSeconds() uint32 {
|
|
if x != nil {
|
|
return x.WindowSeconds
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *FilterStatsResponse) GetTruncated() bool {
|
|
if x != nil {
|
|
return x.Truncated
|
|
}
|
|
return false
|
|
}
|
|
|
|
type MetadataKeysRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) Reset() {
|
|
*x = MetadataKeysRequest{}
|
|
mi := &file_vector_proto_msgTypes[20]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKeysRequest) ProtoMessage() {}
|
|
|
|
func (x *MetadataKeysRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[20]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKeysRequest.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKeysRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{20}
|
|
}
|
|
|
|
func (x *MetadataKeysRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MetadataKey struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
// requested, building, ready or off.
|
|
State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"`
|
|
// The hidden column holding the key; empty while requested.
|
|
Column string `protobuf:"bytes,3,opt,name=column,proto3" json:"column,omitempty"`
|
|
// Rows the key's scalar index covers, of the table's rows.
|
|
IndexedRows uint64 `protobuf:"varint,4,opt,name=indexed_rows,json=indexedRows,proto3" json:"indexed_rows,omitempty"`
|
|
Rows uint64 `protobuf:"varint,5,opt,name=rows,proto3" json:"rows,omitempty"`
|
|
IndexBytes uint64 `protobuf:"varint,6,opt,name=index_bytes,json=indexBytes,proto3" json:"index_bytes,omitempty"`
|
|
Segments uint32 `protobuf:"varint,7,opt,name=segments,proto3" json:"segments,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKey) Reset() {
|
|
*x = MetadataKey{}
|
|
mi := &file_vector_proto_msgTypes[21]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKey) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKey) ProtoMessage() {}
|
|
|
|
func (x *MetadataKey) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[21]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKey.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKey) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{21}
|
|
}
|
|
|
|
func (x *MetadataKey) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetColumn() string {
|
|
if x != nil {
|
|
return x.Column
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *MetadataKey) GetIndexedRows() uint64 {
|
|
if x != nil {
|
|
return x.IndexedRows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetRows() uint64 {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetIndexBytes() uint64 {
|
|
if x != nil {
|
|
return x.IndexBytes
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKey) GetSegments() uint32 {
|
|
if x != nil {
|
|
return x.Segments
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MetadataKeysResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Keys []*MetadataKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"`
|
|
Version uint64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
// The table's rows, and its vector index type (empty without one).
|
|
Rows uint64 `protobuf:"varint,3,opt,name=rows,proto3" json:"rows,omitempty"`
|
|
VectorIndex string `protobuf:"bytes,4,opt,name=vector_index,json=vectorIndex,proto3" json:"vector_index,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) Reset() {
|
|
*x = MetadataKeysResponse{}
|
|
mi := &file_vector_proto_msgTypes[22]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MetadataKeysResponse) ProtoMessage() {}
|
|
|
|
func (x *MetadataKeysResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[22]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MetadataKeysResponse.ProtoReflect.Descriptor instead.
|
|
func (*MetadataKeysResponse) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{22}
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetKeys() []*MetadataKey {
|
|
if x != nil {
|
|
return x.Keys
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetVersion() uint64 {
|
|
if x != nil {
|
|
return x.Version
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetRows() uint64 {
|
|
if x != nil {
|
|
return x.Rows
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *MetadataKeysResponse) GetVectorIndex() string {
|
|
if x != nil {
|
|
return x.VectorIndex
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UpdateMetadataKeyRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Table *Table `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"`
|
|
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
|
|
Remove bool `protobuf:"varint,3,opt,name=remove,proto3" json:"remove,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) Reset() {
|
|
*x = UpdateMetadataKeyRequest{}
|
|
mi := &file_vector_proto_msgTypes[23]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UpdateMetadataKeyRequest) ProtoMessage() {}
|
|
|
|
func (x *UpdateMetadataKeyRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_vector_proto_msgTypes[23]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UpdateMetadataKeyRequest.ProtoReflect.Descriptor instead.
|
|
func (*UpdateMetadataKeyRequest) Descriptor() ([]byte, []int) {
|
|
return file_vector_proto_rawDescGZIP(), []int{23}
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetTable() *Table {
|
|
if x != nil {
|
|
return x.Table
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UpdateMetadataKeyRequest) GetRemove() bool {
|
|
if x != nil {
|
|
return x.Remove
|
|
}
|
|
return false
|
|
}
|
|
|
|
var File_vector_proto protoreflect.FileDescriptor
|
|
|
|
const file_vector_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\fvector.proto\x12\tvector_pb\x1a\x1cgoogle/protobuf/struct.proto\"{\n" +
|
|
"\x05Table\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x03(\tR\x02id\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x04R\aversion\x12\x1a\n" +
|
|
"\blocation\x18\x03 \x01(\tR\blocation\x12\x15\n" +
|
|
"\x06sse_s3\x18\x05 \x01(\bR\x05sseS3J\x04\b\x04\x10\x05R\x0fstorage_options\"\xdf\x01\n" +
|
|
"\x12CreateIndexRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1c\n" +
|
|
"\tdimension\x18\x02 \x01(\rR\tdimension\x12B\n" +
|
|
"\x0fdistance_metric\x18\x03 \x01(\x0e2\x19.vector_pb.DistanceMetricR\x0edistanceMetric\x12?\n" +
|
|
"\x1cnon_filterable_metadata_keys\x18\x04 \x03(\tR\x19nonFilterableMetadataKeys\"/\n" +
|
|
"\x13CreateIndexResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\":\n" +
|
|
"\x10DropIndexRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\x13\n" +
|
|
"\x11DropIndexResponse\"c\n" +
|
|
"\x06Vector\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x12\n" +
|
|
"\x04data\x18\x02 \x03(\x02R\x04data\x123\n" +
|
|
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"h\n" +
|
|
"\x11PutVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12+\n" +
|
|
"\avectors\x18\x02 \x03(\v2\x11.vector_pb.VectorR\avectors\".\n" +
|
|
"\x12PutVectorsResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\"\x99\x01\n" +
|
|
"\x11GetVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
|
|
"\x04keys\x18\x02 \x03(\tR\x04keys\x12\x1f\n" +
|
|
"\vreturn_data\x18\x03 \x01(\bR\n" +
|
|
"returnData\x12'\n" +
|
|
"\x0freturn_metadata\x18\x04 \x01(\bR\x0ereturnMetadata\"A\n" +
|
|
"\x12GetVectorsResponse\x12+\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\"R\n" +
|
|
"\x14DeleteVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x12\n" +
|
|
"\x04keys\x18\x02 \x03(\tR\x04keys\"1\n" +
|
|
"\x15DeleteVectorsResponse\x12\x18\n" +
|
|
"\aversion\x18\x01 \x01(\x04R\aversion\"\x90\x02\n" +
|
|
"\x12ListVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x1f\n" +
|
|
"\vmax_results\x18\x02 \x01(\rR\n" +
|
|
"maxResults\x12\x1d\n" +
|
|
"\n" +
|
|
"next_token\x18\x03 \x01(\tR\tnextToken\x12\x1f\n" +
|
|
"\vreturn_data\x18\x04 \x01(\bR\n" +
|
|
"returnData\x12'\n" +
|
|
"\x0freturn_metadata\x18\x05 \x01(\bR\x0ereturnMetadata\x12#\n" +
|
|
"\rsegment_count\x18\x06 \x01(\rR\fsegmentCount\x12#\n" +
|
|
"\rsegment_index\x18\a \x01(\rR\fsegmentIndex\"\x7f\n" +
|
|
"\x13ListVectorsResponse\x12+\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x11.vector_pb.VectorR\avectors\x12\x1d\n" +
|
|
"\n" +
|
|
"next_token\x18\x02 \x01(\tR\tnextToken\x12\x1c\n" +
|
|
"\tsegmented\x18\x03 \x01(\bR\tsegmented\"\xa0\x02\n" +
|
|
"\x13QueryVectorsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12!\n" +
|
|
"\fquery_vector\x18\x02 \x03(\x02R\vqueryVector\x12\x13\n" +
|
|
"\x05top_k\x18\x03 \x01(\rR\x04topK\x12\x16\n" +
|
|
"\x06filter\x18\x04 \x01(\tR\x06filter\x12\x1e\n" +
|
|
"\n" +
|
|
"postfilter\x18\x05 \x01(\bR\n" +
|
|
"postfilter\x12'\n" +
|
|
"\x0freturn_metadata\x18\x06 \x01(\bR\x0ereturnMetadata\x12'\n" +
|
|
"\x0freturn_distance\x18\a \x01(\bR\x0ereturnDistance\x12\x1f\n" +
|
|
"\vreturn_data\x18\b \x01(\bR\n" +
|
|
"returnData\"\x84\x01\n" +
|
|
"\vQueryResult\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x1a\n" +
|
|
"\bdistance\x18\x02 \x01(\x02R\bdistance\x123\n" +
|
|
"\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x12\x12\n" +
|
|
"\x04data\x18\x04 \x03(\x02R\x04data\"H\n" +
|
|
"\x14QueryVectorsResponse\x120\n" +
|
|
"\avectors\x18\x01 \x03(\v2\x16.vector_pb.QueryResultR\avectors\"<\n" +
|
|
"\x12FilterStatsRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\xc7\x01\n" +
|
|
"\x0eFilterKeyStats\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
|
"\aqueries\x18\x02 \x01(\x04R\aqueries\x12\x18\n" +
|
|
"\aseconds\x18\x03 \x01(\x01R\aseconds\x12%\n" +
|
|
"\x0estring_operand\x18\x04 \x01(\bR\rstringOperand\x12%\n" +
|
|
"\x0enumber_operand\x18\x05 \x01(\bR\rnumberOperand\x12!\n" +
|
|
"\fbool_operand\x18\x06 \x01(\bR\vboolOperand\"\x89\x01\n" +
|
|
"\x13FilterStatsResponse\x12-\n" +
|
|
"\x04keys\x18\x01 \x03(\v2\x19.vector_pb.FilterKeyStatsR\x04keys\x12%\n" +
|
|
"\x0ewindow_seconds\x18\x02 \x01(\rR\rwindowSeconds\x12\x1c\n" +
|
|
"\ttruncated\x18\x03 \x01(\bR\ttruncated\"=\n" +
|
|
"\x13MetadataKeysRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\"\xc1\x01\n" +
|
|
"\vMetadataKey\x12\x10\n" +
|
|
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
|
"\x05state\x18\x02 \x01(\tR\x05state\x12\x16\n" +
|
|
"\x06column\x18\x03 \x01(\tR\x06column\x12!\n" +
|
|
"\findexed_rows\x18\x04 \x01(\x04R\vindexedRows\x12\x12\n" +
|
|
"\x04rows\x18\x05 \x01(\x04R\x04rows\x12\x1f\n" +
|
|
"\vindex_bytes\x18\x06 \x01(\x04R\n" +
|
|
"indexBytes\x12\x1a\n" +
|
|
"\bsegments\x18\a \x01(\rR\bsegments\"\x93\x01\n" +
|
|
"\x14MetadataKeysResponse\x12*\n" +
|
|
"\x04keys\x18\x01 \x03(\v2\x16.vector_pb.MetadataKeyR\x04keys\x12\x18\n" +
|
|
"\aversion\x18\x02 \x01(\x04R\aversion\x12\x12\n" +
|
|
"\x04rows\x18\x03 \x01(\x04R\x04rows\x12!\n" +
|
|
"\fvector_index\x18\x04 \x01(\tR\vvectorIndex\"l\n" +
|
|
"\x18UpdateMetadataKeyRequest\x12&\n" +
|
|
"\x05table\x18\x01 \x01(\v2\x10.vector_pb.TableR\x05table\x12\x10\n" +
|
|
"\x03key\x18\x02 \x01(\tR\x03key\x12\x16\n" +
|
|
"\x06remove\x18\x03 \x01(\bR\x06remove*V\n" +
|
|
"\x0eDistanceMetric\x12\x1f\n" +
|
|
"\x1bDISTANCE_METRIC_UNSPECIFIED\x10\x00\x12\x06\n" +
|
|
"\x02L2\x10\x01\x12\n" +
|
|
"\n" +
|
|
"\x06COSINE\x10\x02\x12\x0f\n" +
|
|
"\vDOT_PRODUCT\x10\x032\xa8\x06\n" +
|
|
"\rVectorService\x12L\n" +
|
|
"\vCreateIndex\x12\x1d.vector_pb.CreateIndexRequest\x1a\x1e.vector_pb.CreateIndexResponse\x12F\n" +
|
|
"\tDropIndex\x12\x1b.vector_pb.DropIndexRequest\x1a\x1c.vector_pb.DropIndexResponse\x12I\n" +
|
|
"\n" +
|
|
"PutVectors\x12\x1c.vector_pb.PutVectorsRequest\x1a\x1d.vector_pb.PutVectorsResponse\x12I\n" +
|
|
"\n" +
|
|
"GetVectors\x12\x1c.vector_pb.GetVectorsRequest\x1a\x1d.vector_pb.GetVectorsResponse\x12R\n" +
|
|
"\rDeleteVectors\x12\x1f.vector_pb.DeleteVectorsRequest\x1a .vector_pb.DeleteVectorsResponse\x12L\n" +
|
|
"\vListVectors\x12\x1d.vector_pb.ListVectorsRequest\x1a\x1e.vector_pb.ListVectorsResponse\x12O\n" +
|
|
"\fQueryVectors\x12\x1e.vector_pb.QueryVectorsRequest\x1a\x1f.vector_pb.QueryVectorsResponse\x12L\n" +
|
|
"\vFilterStats\x12\x1d.vector_pb.FilterStatsRequest\x1a\x1e.vector_pb.FilterStatsResponse\x12O\n" +
|
|
"\fMetadataKeys\x12\x1e.vector_pb.MetadataKeysRequest\x1a\x1f.vector_pb.MetadataKeysResponse\x12Y\n" +
|
|
"\x11UpdateMetadataKey\x12#.vector_pb.UpdateMetadataKeyRequest\x1a\x1f.vector_pb.MetadataKeysResponseB2Z0github.com/seaweedfs/seaweedfs/weed/pb/vector_pbb\x06proto3"
|
|
|
|
var (
|
|
file_vector_proto_rawDescOnce sync.Once
|
|
file_vector_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_vector_proto_rawDescGZIP() []byte {
|
|
file_vector_proto_rawDescOnce.Do(func() {
|
|
file_vector_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)))
|
|
})
|
|
return file_vector_proto_rawDescData
|
|
}
|
|
|
|
var file_vector_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_vector_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
|
var file_vector_proto_goTypes = []any{
|
|
(DistanceMetric)(0), // 0: vector_pb.DistanceMetric
|
|
(*Table)(nil), // 1: vector_pb.Table
|
|
(*CreateIndexRequest)(nil), // 2: vector_pb.CreateIndexRequest
|
|
(*CreateIndexResponse)(nil), // 3: vector_pb.CreateIndexResponse
|
|
(*DropIndexRequest)(nil), // 4: vector_pb.DropIndexRequest
|
|
(*DropIndexResponse)(nil), // 5: vector_pb.DropIndexResponse
|
|
(*Vector)(nil), // 6: vector_pb.Vector
|
|
(*PutVectorsRequest)(nil), // 7: vector_pb.PutVectorsRequest
|
|
(*PutVectorsResponse)(nil), // 8: vector_pb.PutVectorsResponse
|
|
(*GetVectorsRequest)(nil), // 9: vector_pb.GetVectorsRequest
|
|
(*GetVectorsResponse)(nil), // 10: vector_pb.GetVectorsResponse
|
|
(*DeleteVectorsRequest)(nil), // 11: vector_pb.DeleteVectorsRequest
|
|
(*DeleteVectorsResponse)(nil), // 12: vector_pb.DeleteVectorsResponse
|
|
(*ListVectorsRequest)(nil), // 13: vector_pb.ListVectorsRequest
|
|
(*ListVectorsResponse)(nil), // 14: vector_pb.ListVectorsResponse
|
|
(*QueryVectorsRequest)(nil), // 15: vector_pb.QueryVectorsRequest
|
|
(*QueryResult)(nil), // 16: vector_pb.QueryResult
|
|
(*QueryVectorsResponse)(nil), // 17: vector_pb.QueryVectorsResponse
|
|
(*FilterStatsRequest)(nil), // 18: vector_pb.FilterStatsRequest
|
|
(*FilterKeyStats)(nil), // 19: vector_pb.FilterKeyStats
|
|
(*FilterStatsResponse)(nil), // 20: vector_pb.FilterStatsResponse
|
|
(*MetadataKeysRequest)(nil), // 21: vector_pb.MetadataKeysRequest
|
|
(*MetadataKey)(nil), // 22: vector_pb.MetadataKey
|
|
(*MetadataKeysResponse)(nil), // 23: vector_pb.MetadataKeysResponse
|
|
(*UpdateMetadataKeyRequest)(nil), // 24: vector_pb.UpdateMetadataKeyRequest
|
|
(*structpb.Struct)(nil), // 25: google.protobuf.Struct
|
|
}
|
|
var file_vector_proto_depIdxs = []int32{
|
|
1, // 0: vector_pb.CreateIndexRequest.table:type_name -> vector_pb.Table
|
|
0, // 1: vector_pb.CreateIndexRequest.distance_metric:type_name -> vector_pb.DistanceMetric
|
|
1, // 2: vector_pb.DropIndexRequest.table:type_name -> vector_pb.Table
|
|
25, // 3: vector_pb.Vector.metadata:type_name -> google.protobuf.Struct
|
|
1, // 4: vector_pb.PutVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 5: vector_pb.PutVectorsRequest.vectors:type_name -> vector_pb.Vector
|
|
1, // 6: vector_pb.GetVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 7: vector_pb.GetVectorsResponse.vectors:type_name -> vector_pb.Vector
|
|
1, // 8: vector_pb.DeleteVectorsRequest.table:type_name -> vector_pb.Table
|
|
1, // 9: vector_pb.ListVectorsRequest.table:type_name -> vector_pb.Table
|
|
6, // 10: vector_pb.ListVectorsResponse.vectors:type_name -> vector_pb.Vector
|
|
1, // 11: vector_pb.QueryVectorsRequest.table:type_name -> vector_pb.Table
|
|
25, // 12: vector_pb.QueryResult.metadata:type_name -> google.protobuf.Struct
|
|
16, // 13: vector_pb.QueryVectorsResponse.vectors:type_name -> vector_pb.QueryResult
|
|
1, // 14: vector_pb.FilterStatsRequest.table:type_name -> vector_pb.Table
|
|
19, // 15: vector_pb.FilterStatsResponse.keys:type_name -> vector_pb.FilterKeyStats
|
|
1, // 16: vector_pb.MetadataKeysRequest.table:type_name -> vector_pb.Table
|
|
22, // 17: vector_pb.MetadataKeysResponse.keys:type_name -> vector_pb.MetadataKey
|
|
1, // 18: vector_pb.UpdateMetadataKeyRequest.table:type_name -> vector_pb.Table
|
|
2, // 19: vector_pb.VectorService.CreateIndex:input_type -> vector_pb.CreateIndexRequest
|
|
4, // 20: vector_pb.VectorService.DropIndex:input_type -> vector_pb.DropIndexRequest
|
|
7, // 21: vector_pb.VectorService.PutVectors:input_type -> vector_pb.PutVectorsRequest
|
|
9, // 22: vector_pb.VectorService.GetVectors:input_type -> vector_pb.GetVectorsRequest
|
|
11, // 23: vector_pb.VectorService.DeleteVectors:input_type -> vector_pb.DeleteVectorsRequest
|
|
13, // 24: vector_pb.VectorService.ListVectors:input_type -> vector_pb.ListVectorsRequest
|
|
15, // 25: vector_pb.VectorService.QueryVectors:input_type -> vector_pb.QueryVectorsRequest
|
|
18, // 26: vector_pb.VectorService.FilterStats:input_type -> vector_pb.FilterStatsRequest
|
|
21, // 27: vector_pb.VectorService.MetadataKeys:input_type -> vector_pb.MetadataKeysRequest
|
|
24, // 28: vector_pb.VectorService.UpdateMetadataKey:input_type -> vector_pb.UpdateMetadataKeyRequest
|
|
3, // 29: vector_pb.VectorService.CreateIndex:output_type -> vector_pb.CreateIndexResponse
|
|
5, // 30: vector_pb.VectorService.DropIndex:output_type -> vector_pb.DropIndexResponse
|
|
8, // 31: vector_pb.VectorService.PutVectors:output_type -> vector_pb.PutVectorsResponse
|
|
10, // 32: vector_pb.VectorService.GetVectors:output_type -> vector_pb.GetVectorsResponse
|
|
12, // 33: vector_pb.VectorService.DeleteVectors:output_type -> vector_pb.DeleteVectorsResponse
|
|
14, // 34: vector_pb.VectorService.ListVectors:output_type -> vector_pb.ListVectorsResponse
|
|
17, // 35: vector_pb.VectorService.QueryVectors:output_type -> vector_pb.QueryVectorsResponse
|
|
20, // 36: vector_pb.VectorService.FilterStats:output_type -> vector_pb.FilterStatsResponse
|
|
23, // 37: vector_pb.VectorService.MetadataKeys:output_type -> vector_pb.MetadataKeysResponse
|
|
23, // 38: vector_pb.VectorService.UpdateMetadataKey:output_type -> vector_pb.MetadataKeysResponse
|
|
29, // [29:39] is the sub-list for method output_type
|
|
19, // [19:29] is the sub-list for method input_type
|
|
19, // [19:19] is the sub-list for extension type_name
|
|
19, // [19:19] is the sub-list for extension extendee
|
|
0, // [0:19] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_vector_proto_init() }
|
|
func file_vector_proto_init() {
|
|
if File_vector_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_vector_proto_rawDesc), len(file_vector_proto_rawDesc)),
|
|
NumEnums: 1,
|
|
NumMessages: 24,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_vector_proto_goTypes,
|
|
DependencyIndexes: file_vector_proto_depIdxs,
|
|
EnumInfos: file_vector_proto_enumTypes,
|
|
MessageInfos: file_vector_proto_msgTypes,
|
|
}.Build()
|
|
File_vector_proto = out.File
|
|
file_vector_proto_goTypes = nil
|
|
file_vector_proto_depIdxs = nil
|
|
}
|