narangvivek10 commented on code in PR #3872: URL: https://github.com/apache/solr/pull/3872#discussion_r2547220547
########## solr/solr-ref-guide/modules/query-guide/pages/dense-vector-search.adoc: ########## @@ -714,40 +714,33 @@ To try this out, first copy the module jar files (found in the regular Solr tarb cp modules/cuvs/lib/*.jar server/solr-webapp/webapp/WEB-INF/lib/ ---- -Define the `fieldType` in the schema, with knnAlgorithm set to `cagra_hnsw`: +Define the `fieldType` in the schema, with knnAlgorithm set to `cuvs_hnsw`: [source,xml] ---- -<fieldType name="knn_vector" class="solr.DenseVectorField" vectorDimension="8" knnAlgorithm="cagra_hnsw" similarityFunction="cosine" /> ----- - -Define the xref:configuration-guide:codec-factory.adoc[codecFactory] in xref:configuration-guide:configuring-solrconfig-xml.adoc[solrconfig.xml] - -[source,xml] ----- -<codecFactory name="CuVSCodecFactory" class="org.apache.solr.cuvs.CuVSCodecFactory"> - <str name="cuvsWriterThreads">8</str> - <str name="intGraphDegree">128</str> - <str name="graphDegree">64</str> - <str name="hnswLayers">1</str> - <str name="maxConn">16</str> - <str name="beamWidth">100</str> -</codecFactory> +<fieldType name="knn_vector" class="solr.DenseVectorField" vectorDimension="8" knnAlgorithm="cuvs_hnsw" similarityFunction="cosine" cuvsWriterThreads="32" cuvsIntGraphDegree="128" cuvsGraphDegree="64" cuvsHnswLayers="1" cuvsHnswMaxConn="16" cuvsHnswBeamWidth="100"/> ---- Where: * `cuvsWriterThreads` - number of threads to use -* `intGraphDegree` - Intermediate graph degree for building the CAGRA index +* `cuvsIntGraphDegree` - Intermediate graph degree for building the CAGRA index -* `graphDegree` - Graph degree for building the CAGRA index +* `cuvsGraphDegree` - Graph degree for building the CAGRA index -* `hnswLayers` - Number of HNSW graph layers to construct while building the HNSW index +* `cuvsHnswLayers` - Number of HNSW graph layers to construct while building the HNSW index -* `maxConn` - Max connections parameter passed to the fallback Lucene99HnswVectorsWriter Review Comment: Changed. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
