Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
regarding the licenses, please contact us at:
vectorchord-inquiry@tensorchord.ai

Copyright (c) 2025 TensorChord Inc.
Copyright (c) 2025-2026 TensorChord Inc.
EOF
)
COUNT=$(echo "$HEADER" | wc -l)
Expand Down
24 changes: 21 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ jobs:
VERSION: ${{ matrix.version }}
run: |
make DESTDIR="~/debian" install
mkdir -p ~/debian/usr/share/doc/postgresql-${VERSION}-vchord/
echo "Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: VectorChord
Source: https://github.com/tensorchord/VectorChord

Files: *
Copyright: Copyright (c) 2025-2026 TensorChord Inc.
License: AGPL-3.0-only OR Elastic-2.0

License: AGPL-3.0-only
$(cat ./licenses/LICENSE.AGPLv3 | sed 's/^$/./' | sed 's/^/ /')

License: Elastic-2.0
$(cat ./licenses/LICENSE.ELv2 | sed 's/^$/./' | sed 's/^/ /')
" \
>> ~/debian/usr/share/doc/postgresql-${VERSION}-vchord/copyright
ARCH=$(uname -m)
PLATFORM=$(dpkg --print-architecture)
mkdir -p ~/debian/DEBIAN
Expand All @@ -108,9 +124,11 @@ jobs:
Priority: optional
Architecture: ${PLATFORM}
Maintainer: Tensorchord <support@tensorchord.ai>
Description: Vector database plugin for Postgres, written in Rust, specifically designed for LLM
Homepage: https://vectorchord.ai/
License: AGPL-3.0-only OR Elastic-2.0" \
Description: Scalable, fast, and disk-friendly vector search in Postgres
VectorChord is a PostgreSQL extension designed for scalable,
high-performance, and disk-efficient vector similarity search. It
supports L2 distance, inner product, cosine distance and maxsim.
Homepage: https://vectorchord.ai/" \
> ~/debian/DEBIAN/control
(cd ~/debian && find usr -type f -print0 | xargs -0 md5sum) > ~/debian/DEBIAN/md5sums
dpkg-deb --root-owner-group -Zxz --build ~/debian ~/postgresql-${VERSION}-vchord_${SEMVER}-1_${PLATFORM}.deb
Expand Down
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use std::collections::HashMap;
use std::env::{var, var_os};
Expand Down
2 changes: 1 addition & 1 deletion crates/always_equal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use std::cmp::Ordering;
use std::hash::Hash;
Expand Down
2 changes: 1 addition & 1 deletion crates/distance/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};

Expand Down
2 changes: 1 addition & 1 deletion crates/feistel/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub fn feistel<I>(width: u32, x: I, round: u32, secret: impl Fn(u32, I) -> I) -> I
where
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/accessor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use distance::Distance;
use rabitq::byte::CodeMetadata;
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/bump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub trait Bump: 'static {
#[allow(clippy::mut_from_ref)]
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/fetch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::packed::PackedRefMut;
use always_equal::AlwaysEqual;
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

// pub mod accessor;
pub mod bump;
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/packed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub trait PackedRefMut {
type T;
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/prefetcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::fetch::Fetch;
use crate::relation::{
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/relation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::fetch::Fetch;
use std::ops::{Deref, DerefMut};
Expand Down
2 changes: 1 addition & 1 deletion crates/index/src/tuples.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use std::marker::PhantomData;
use std::num::NonZero;
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/flat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::index::{flat_index as prefect_index, flat_index as index};
use crate::square::{Square, SquareMut};
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/hierarchical.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::square::{Square, SquareMut};
use crate::{KMeans, This};
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::This;
use crate::square::{Square, SquareMut};
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

mod flat;
mod hierarchical;
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/quick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::KMeans;
use crate::index::flat_index as prefect_index;
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/rabitq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use crate::index::{flat_index as prefect_index, rabitq_index as index};
use crate::square::{Square, SquareMut};
Expand Down
2 changes: 1 addition & 1 deletion crates/k_means/src/square.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#[derive(Debug, Clone)]
pub struct Square {
Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use std::env::var;
use std::error::Error;
Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/bit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use binary::BinaryLut;
use block::BlockLut;
Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub use crate::extended::{Code, CodeMetadata};

Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/byte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub use crate::extended::{Code, CodeMetadata};

Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/extended.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use simd::Floating;

Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/halfbyte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub use crate::extended::{Code, CodeMetadata};

Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub mod bit;
pub mod bits;
Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/packing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

pub fn pack(x: [&[u8]; 32]) -> Vec<[u8; 16]> {
let n = {
Expand Down
2 changes: 1 addition & 1 deletion crates/rabitq/src/rotate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

const BITS: &[u8; 262144] = include_bytes!(concat!(env!("OUT_DIR"), "/bits"));

Expand Down
2 changes: 1 addition & 1 deletion crates/simd/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#![allow(unsafe_code)]

Expand Down
2 changes: 1 addition & 1 deletion crates/simd/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

use std::env::var;
use std::error::Error;
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/cshim/aarch64_byte.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#if defined(__clang__)
#if !(__clang_major__ >= 16)
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/cshim/aarch64_halfbyte.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#if defined(__clang__)
#if !(__clang_major__ >= 16)
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/cshim/aarch64_sve_fp16.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#if defined(__clang__)
#if !(__clang_major__ >= 16)
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/cshim/aarch64_sve_fp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#if defined(__clang__)
#if !(__clang_major__ >= 16)
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/src/aligned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#[allow(dead_code)]
#[derive(Debug, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/src/bit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#[inline(always)]
pub fn reduce_sum_of_and(lhs: &[u64], rhs: &[u64]) -> u32 {
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/src/byte.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#[cfg_attr(feature = "internal", simd_macros::public)]
mod reduce_sum_of_xy {
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/src/emulate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

#[allow(unused_macros)]
macro_rules! partial_load {
Expand Down
2 changes: 1 addition & 1 deletion crates/simd/src/fast_scan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// regarding the licenses, please contact us at:
// vectorchord-inquiry@tensorchord.ai
//
// Copyright (c) 2025 TensorChord Inc.
// Copyright (c) 2025-2026 TensorChord Inc.

/*

Expand Down
Loading
Loading