Skip to content
Snippets Groups Projects
Commit 02257135 authored by Mingchung Xia's avatar Mingchung Xia
Browse files

Copied dictionary to read corpus

parent 22e0de05
No related branches found
No related tags found
1 merge request!13HNSW Implementation with Testcases
Pipeline #113939 failed
......@@ -307,13 +307,15 @@ final class HNSWTests: XCTestCase {
in: readTransaction
)
readCorpus.dictionary = corpus.getDictionary() // FIXME: don't copy over dictionary
// do not add documents here!
let result = try readCorpus.encodedDocuments.find(near: queryVector, limit: 8, in: transaction)
for result in result {
let key = Int(result.id.foreignKey)!
print(corpus.getUntokenizedDocument(at: key))
print(readCorpus.getUntokenizedDocument(at: key))
}
print("Query completed!")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment