Add local exact-scan vector search support (runtime, API, codecs, CLI, docs, tests)#8
Merged
Add local exact-scan vector search support (runtime, API, codecs, CLI, docs, tests)#8
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
DataType::FixedVector, extendValueto store/serialize fixed float vectors and addValue::parseFixedVectorandasFixedVectoraccessors.vector_index.h/.cc) and anExactScanVectorIndeximplementation providingsearch(...)andexplain(...)backed by contiguous float buffers and heap top-k selection.vectorQuery(...)andexplainVectorQuery(...)and correspondingDataflowSessionmethods to expose vector search at the session level.FixedVectoras raw float bit payloads and round-trip vector values; Arrow fast-path supportsFixedSizeList<float32>columns.Session.vector_search,Session.explain_vector_search), Arrow fast-path parsing, and round-trip conversion of fixed vectors to Python lists.python_api/velaria_cli.py) and a native C++velaria_cliexample, plusscripts/build_py_cli_executable.shto package a one-file executable.docs/local_vector_search_v01.md, README updates) describing scope, API surface, explain output, and usage examples; add example binaryvector_search_benchmarkand nativevelaria_cliexample.vector_runtime_test,vector_search_benchmark, Pythonvector_search_test) and export the build script.Testing
bazel test //:vector_runtime_test, which exercises proto-like and binary round-trip and C++ vector queries andexplain, and it passed.bazel test //python_api:vector_search_test, which validates Python API behavior, metrics, explain text and dimension mismatch handling, and it passed.Codex Task