From 9ccb459970033330c54c18ffd62f5e3870d567b6 Mon Sep 17 00:00:00 2001 From: Joanie Gannon Date: Fri, 31 Mar 2023 20:22:10 -0400 Subject: [PATCH] adding more --- .../main/java/com/twitter/ann/hnsw/DistancedItemQueue.java | 4 ++-- .../scala/com/twitter/ann/brute_force/BruteForceIndex.scala | 2 +- ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java index f77f9c2b2..b2809a907 100644 --- a/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java +++ b/ann/src/main/java/com/twitter/ann/hnsw/DistancedItemQueue.java @@ -18,7 +18,7 @@ public class DistancedItemQueue implements Iterable> { private final PriorityQueue> queue; private final boolean minQueue; /** - * Creates ontainer for items with their distances. + * Creates container for items with their distances. * * @param origin Origin (reference) point * @param initial Initial list of elements to add in the structure @@ -94,7 +94,7 @@ public class DistancedItemQueue implements Iterable> { } /** - * Dequeue all the elements from queueu with ordering mantained + * Dequeue all the elements from queue with ordering maintained * * @return remove all the elements in the order of the queue i.e min/max queue. */ diff --git a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala index d737f57b7..4595e3aca 100644 --- a/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/brute_force/BruteForceIndex.scala @@ -105,7 +105,7 @@ object SerializableBruteForceIndex { } /** - * This is a class that wrapps a BruteForceIndex and provides a method for serialization. + * This is a class that wraps a BruteForceIndex and provides a method for serialization. * * @param bruteForceIndex all queries and updates are sent to this index. * @param embeddingInjection injection that can convert embeddings to thrift embeddings. diff --git a/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala b/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala index 6bf99a61b..5a27079e0 100644 --- a/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala +++ b/ann/src/main/scala/com/twitter/ann/hnsw/TypedHnswIndex.scala @@ -18,7 +18,7 @@ object TypedHnswIndex { * construction, but better index quality. At some point, increasing * ef_construction does not improve the quality of the index. One way to * check if the selection of ef_construction was ok is to measure a recall - * for M nearest neighbor search when ef = ef_constuction: if the recall is + * for M nearest neighbour search when ef = ef_construction: if the recall is * lower than 0.9, than there is room for improvement. * @param maxM The number of bi-directional links created for every new element during construction. * Reasonable range for M is 2-100. Higher M work better on datasets with high @@ -64,7 +64,7 @@ object TypedHnswIndex { * construction, but better index quality. At some point, increasing * ef_construction does not improve the quality of the index. One way to * check if the selection of ef_construction was ok is to measure a recall - * for M nearest neighbor search when ef = ef_constuction: if the recall is + * for M nearest neighbour search when ef = ef_constuction: if the recall is * lower than 0.9, than there is room for improvement. * @param maxM The number of bi-directional links created for every new element during construction. * Reasonable range for M is 2-100. Higher M work better on datasets with high