alessandrobenedetti commented on code in PR #4056:
URL: https://github.com/apache/solr/pull/4056#discussion_r2731543587


##########
solr/solr-ref-guide/modules/query-guide/pages/text-to-vector.adoc:
##########
@@ -72,15 +72,38 @@ This is provided via the `language-models` 
xref:configuration-guide:solr-modules
 
 == Language Model Configuration
 
-You need to register / configure the plugins provided by the Language Models 
module that you want to use. This is done in `solrconfig.xml`.
+Language Models is a module and therefore its plugins must be configured in 
`solrconfig.xml`.
 
-* Declaration of the `knn_text_to_vector` query parser.
+=== Minimum Requirements
+
+* Enable the `language-models` module to make the Language Models classes 
available on Solr's classpath.
+See xref:configuration-guide:solr-modules.adoc[Solr Module] for more details.
+
+* At least one of the following components must be declared in 
`solrconfig.xml`:
+** the TextToVector Update Processor (index time)
++
+[source,xml]
+----
+<updateRequestProcessorChain name="textToVector">
+  <processor 
class="solr.languagemodels.textvectorisation.update.processor.TextToVectorUpdateProcessorFactory">
+   <str name="inputField">_text_</str>
+   <str name="outputField">vector</str>
+   <str name="model">dummy-1</str>
+  </processor>
+  <processor class="solr.RunUpdateProcessorFactory"/>
+</updateRequestProcessorChain>
+----
+** the TextToVector Query Parser (query time)
 +
 [source,xml]
 ----
 <queryParser name="knn_text_to_vector" 
class="org.apache.solr.languagemodels.textvectorisation.search.TextToVectorQParserPlugin"/>
 ----
 
+[NOTE]
+====
+If no LLM component is configured in `solrconfig.xml`, the Text-to-Vector 
model store will not be registered and requests to 
`/schema/text-to-vector-model-store` will return an error.

Review Comment:
   we are doing a live review, this also should not refer to LLM



-- 
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]

Reply via email to