Skip to content

Commit

Permalink
GITHUB-12224: copy KnnGraphTester from Lucene and update related scri…
Browse files Browse the repository at this point in the history
…pts and instructions (#218)

Co-authored-by: Michael Sokolov <sokolovm@amazon.com>
  • Loading branch information
msokolov and Michael Sokolov authored Apr 25, 2023
1 parent e959abe commit b11373d
Show file tree
Hide file tree
Showing 5 changed files with 862 additions and 38 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ You can create your own line doc file from an arbitrary Wikimedia dump by follow
# extract titie, timestamp and body text
cat /data/jawiki/jawiki-20200620-lines.txt | cut -f1,2,3
```
# Running the KNN benchmark
Some knn-related tasks are included in the main benchmarks. If you specifically want to test
KNN/HNSW there is a script dedicated to that in src/python/knnPerfTest.py which has instructions on
how to run it in its comments.
8 changes: 7 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@

<property name="data.dir" value="${basedir}/../data"/>
<property name="tasks.dir" value="${basedir}/tasks"/>
<property name="lucene.checkout" value="${basedir}/../lucene"/>

<target name="build">

<mkdir dir="build"/>

<path id="build.classpath">
<pathelement location="build"/>
<fileset dir="${lucene.checkout}/lucene/core/build/libs/">
<include name="*.jar"/>
</fileset>
</path>

<javac srcdir="src/main"
destdir="build"
includes="WikiVectors.java,perf/VectorDictionary.java"
includes="KnnGraphTester.java,WikiVectors.java,perf/VectorDictionary.java"
classpathref="build.classpath"
includeantruntime="false"/>

Expand Down
Loading

0 comments on commit b11373d

Please sign in to comment.