[
https://issues.apache.org/jira/browse/SOLR-17999?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ilariapet updated SOLR-17999:
-----------------------------
Description:
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.
was:
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.
> 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
>
> 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]