Skip to content

Commit 2511c0a

Browse files
author
Jack Moffitt
committed
license headers
1 parent 69177c0 commit 2511c0a

11 files changed

Lines changed: 65 additions & 13 deletions

File tree

diskann-garnet/src/alloc.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
use diskann_quantization::alloc::{AllocatorCore, AllocatorError, GlobalAllocator};
27
use std::ptr::NonNull;
38

diskann-garnet/src/dyn_index.rs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
use std::sync::Arc;
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
25

6+
use crate::{
7+
SearchResults,
8+
garnet::{Context, GarnetId},
9+
labels::GarnetQueryLabelProvider,
10+
provider::{self, GarnetProvider},
11+
};
312
use diskann::{
413
ANNError, ANNResult,
514
graph::{InplaceDeleteMethod, glue::SearchStrategy, index::SearchStats, search},
@@ -10,13 +19,7 @@ use diskann_providers::{
1019
index::wrapped_async::DiskANNIndex,
1120
model::graph::provider::{async_::common::FullPrecision, layers::BetaFilter},
1221
};
13-
14-
use crate::{
15-
SearchResults,
16-
garnet::{Context, GarnetId},
17-
labels::GarnetQueryLabelProvider,
18-
provider::{self, GarnetProvider},
19-
};
22+
use std::sync::Arc;
2023

2124
/// Type-erased version of `DiskANNIndex<GarnetProvider>`.
2225
/// All vector data is passed as untyped byte slices.

diskann-garnet/src/ffi_tests.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
mod tests {
27
use std::{ffi::c_void, mem, ptr};
38

diskann-garnet/src/fsm.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
//! Free space map.
27
//!
38
//! The free space map tracks the status for each ID, which can be one of Free, Occupied, or

diskann-garnet/src/garnet.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
use std::{ffi::c_void, fmt, mem, ops::Deref, slice};
27

38
use diskann::provider::ExecutionContext;

diskann-garnet/src/labels.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
//! Garnet label filtering for DiskANN vector search.
27
//!
38
//! This module provides [`GarnetQueryLabelProvider`], an implementation of DiskANN's

diskann-garnet/src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
use std::{
27
ffi::c_void,
38
mem,

diskann-garnet/src/provider.rs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
use std::{
2-
collections::{HashMap, hash_map::Entry},
3-
future, mem,
4-
ops::{Deref, DerefMut},
5-
};
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
65

76
use dashmap::DashMap;
87
use diskann::{
@@ -27,6 +26,11 @@ use diskann::{
2726
};
2827
use diskann_providers::model::graph::provider::async_::common::{FullPrecision, Internal};
2928
use diskann_vector::{PreprocessedDistanceFunction, contains::ContainsSimd, distance::Metric};
29+
use std::{
30+
collections::{HashMap, hash_map::Entry},
31+
future, mem,
32+
ops::{Deref, DerefMut},
33+
};
3034
use thiserror::Error;
3135

3236
use crate::{

diskann-garnet/src/test_utils.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
use crate::garnet::{Callbacks, ReadDataCallback, RmwDataCallback, TERM_BITMASK};
27
use core::slice;
38
use dashmap::DashMap;

vectorset/src/loader.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/*
2+
* Copyright (c) Microsoft Corporation.
3+
* Licensed under the MIT license.
4+
*/
5+
16
use anyhow::{Result, anyhow};
27
use std::{
38
collections::HashMap,

0 commit comments

Comments
 (0)