[ 
https://issues.apache.org/jira/browse/SOLR-17999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18054595#comment-18054595
 ] 

ASF subversion and git services commented on SOLR-17999:
--------------------------------------------------------

Commit ac4f371b1a654e61b1d4b9ef2c81283f752a34f8 in solr's branch 
refs/heads/branch_10x from Ilaria Petreti
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=ac4f371b1a6 ]

SOLR-17999: Fix the Managed Model Store Initialization in the LLM module (#4056)

(cherry picked from commit a5e02593f27bcbe5aef497cbba38117dc21c3a41)


> LLM Model Store Not Initialized Unless QParser Is Declared
> ----------------------------------------------------------
>
>                 Key: SOLR-17999
>                 URL: https://issues.apache.org/jira/browse/SOLR-17999
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 9.10
>            Reporter: ilariapet
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> An issue with the LLM module initialization process has been identified. 
> At the moment, if the llm module is enabled, for example by starting Solr 
> with:
> {code:java}
> bin/solr start -e techproducts -Dsolr.modules=llm {code}
> but nothing related to the LLM module is configured in 
> {{{}solrconfig.xml{}}}, the text-to-vector model store does not get 
> initialized:
> {code:java}
> {
>   "responseHeader": {
>     "status": 400,
>     "QTime": 0
>   },
>   "error": {
>     "metadata": [
>       "error-class",
>       "org.apache.solr.common.SolrException",
>       "root-error-class",
>       "org.apache.solr.common.SolrException"
>     ],
>     "msg": "No REST managed resource registered for path 
> /schema/text-to-vector-model-store",
>     "code": 400
>   }
> } {code}
> Even if I add the TextToVectorUpdateProcessor, nothing happens. 
> The Model Store is initialized *_only_* when the corresponding LLM 
> QueryParser is explicitly declared in the configuration:
> {code:java}
> <queryParser name="knn_text_to_vector" 
> class="org.apache.solr.llm.textvectorisation.search.TextToVectorQParserPlugin"/>
>  {code}
> This is a bug because a user may want to use a text-to-vector model only at 
> index time, without enabling the associated query parser at all. 
> A solution would be to modify the initialization logic so that the Model 
> Store is also initialized when the update processor is configured, not only 
> when the QueryParser is present.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to