Skip to content

Support array declarations#456

Open
lolski wants to merge 3 commits into
masterfrom
vector-search
Open

Support array declarations#456
lolski wants to merge 3 commits into
masterfrom
vector-search

Conversation

@lolski

@lolski lolski commented Jul 10, 2026

Copy link
Copy Markdown
Member

Product change and motivation

Adds support for declaring double arrays. This lets users work with embeddings, and later express vector-similarity queries.

  1. Declaring double array
define
attribute embedding,
    value double[64];
  1. Inserting an array value:
insert
$x isa document,
    has embedding [0.1, 0.2, 0.3];

Implementation

  • Updated Pest grammar to allow array declarations
  • AST & parser: BuiltinValueTypeArray struct and visitors
  • Updated tests: declaring double array, inserting an array, and calling a function using an array

@lolski lolski changed the title Vector search Support array declarations Jul 10, 2026
@lolski lolski requested a review from dmitrii-ubskii July 10, 2026 16:48
@lolski lolski marked this pull request as ready for review July 10, 2026 16:48
@lolski lolski requested a review from flyingsilverfin as a code owner July 10, 2026 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant