-
Notifications
You must be signed in to change notification settings - Fork 686
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SOLR-17632: first draft implementation
- Loading branch information
1 parent
04d3ba0
commit bdffe76
Showing
10 changed files
with
272 additions
and
136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
.../llm/src/test-files/solr/collection1/conf/solrconfig-llm-indexing-notDenseVectorField.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
<?xml version="1.0" ?> | ||
<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor | ||
license agreements. See the NOTICE file distributed with this work for additional | ||
information regarding copyright ownership. The ASF licenses this file to | ||
You under the Apache License, Version 2.0 (the "License"); you may not use | ||
this file except in compliance with the License. You may obtain a copy of | ||
the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required | ||
by applicable law or agreed to in writing, software distributed under the | ||
License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS | ||
OF ANY KIND, either express or implied. See the License for the specific | ||
language governing permissions and limitations under the License. --> | ||
|
||
<config> | ||
<luceneMatchVersion>${tests.luceneMatchVersion:LATEST}</luceneMatchVersion> | ||
<dataDir>${solr.data.dir:}</dataDir> | ||
<directoryFactory name="DirectoryFactory" | ||
class="${solr.directoryFactory:solr.MockDirectoryFactory}" /> | ||
<schemaFactory class="ClassicIndexSchemaFactory" /> | ||
|
||
<requestDispatcher> | ||
<requestParsers /> | ||
</requestDispatcher> | ||
|
||
<!-- Query parser used to run neural queries--> | ||
<queryParser name="knn_text_to_vector" | ||
class="org.apache.solr.llm.texttovector.search.TextToVectorQParserPlugin" /> | ||
|
||
<query> | ||
<filterCache class="solr.CaffeineCache" size="4096" | ||
initialSize="2048" autowarmCount="0" /> | ||
</query> | ||
<requestHandler name="/select" class="solr.SearchHandler" /> | ||
|
||
<updateHandler class="solr.DirectUpdateHandler2"> | ||
<autoCommit> | ||
<maxTime>15000</maxTime> | ||
<openSearcher>false</openSearcher> | ||
</autoCommit> | ||
<autoSoftCommit> | ||
<maxTime>1000</maxTime> | ||
</autoSoftCommit> | ||
<updateLog> | ||
<str name="dir">${solr.data.dir:}</str> | ||
</updateLog> | ||
</updateHandler> | ||
|
||
<!-- Query request handler managing models and features --> | ||
<requestHandler name="/query" class="solr.SearchHandler"> | ||
<lst name="defaults"> | ||
<str name="echoParams">explicit</str> | ||
<str name="wt">json</str> | ||
<str name="indent">true</str> | ||
<str name="df">id</str> | ||
</lst> | ||
</requestHandler> | ||
|
||
<initParams path="/update/**"> | ||
<lst name="defaults"> | ||
<str name="update.chain">textToVector</str> | ||
</lst> | ||
</initParams> | ||
|
||
<updateRequestProcessorChain name="textToVector"> | ||
<processor class="solr.llm.texttovector.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> | ||
|
||
</config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.