Class TextToVectorQParserPlugin
- java.lang.Object
-
- org.apache.solr.search.QParserPlugin
-
- org.apache.solr.llm.texttovector.search.TextToVectorQParserPlugin
-
- All Implemented Interfaces:
AutoCloseable
,org.apache.lucene.util.ResourceLoaderAware
,SolrInfoBean
,SolrMetricProducer
,ManagedResourceObserver
,NamedListInitializedPlugin
public class TextToVectorQParserPlugin extends QParserPlugin implements org.apache.lucene.util.ResourceLoaderAware, ManagedResourceObserver
A neural query parser that encode the query to a vector and then run K-nearest neighbors search on Dense Vector fields. See Wiki page https://solr.apache.org/guide/solr/latest/query-guide/dense-vector-search.html
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
TextToVectorQParserPlugin.TextToVectorQParser
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static String
EMBEDDING_MODEL_PARAM
-
Fields inherited from class org.apache.solr.search.QParserPlugin
DEFAULT_QTYPE, standardPlugins
-
-
Constructor Summary
Constructors Constructor Description TextToVectorQParserPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QParser
createParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
void
inform(org.apache.lucene.util.ResourceLoader loader)
void
onManagedResourceInitialized(org.apache.solr.common.util.NamedList<?> args, ManagedResource res)
-
Methods inherited from class org.apache.solr.search.QParserPlugin
getCategory, getDescription, getName, getSolrMetricsContext, initializeMetrics
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.util.plugin.NamedListInitializedPlugin
init
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
EMBEDDING_MODEL_PARAM
public static final String EMBEDDING_MODEL_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
createParser
public QParser createParser(String qstr, org.apache.solr.common.params.SolrParams localParams, org.apache.solr.common.params.SolrParams params, SolrQueryRequest req)
- Specified by:
createParser
in classQParserPlugin
-
inform
public void inform(org.apache.lucene.util.ResourceLoader loader) throws IOException
- Specified by:
inform
in interfaceorg.apache.lucene.util.ResourceLoaderAware
- Throws:
IOException
-
onManagedResourceInitialized
public void onManagedResourceInitialized(org.apache.solr.common.util.NamedList<?> args, ManagedResource res) throws org.apache.solr.common.SolrException
- Specified by:
onManagedResourceInitialized
in interfaceManagedResourceObserver
- Throws:
org.apache.solr.common.SolrException
-
-