-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from InAnYan/fix-for-29
- Loading branch information
Showing
10 changed files
with
379 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -154,4 +154,5 @@ | |
requires de.saxsys.mvvmfx.validation; | ||
requires dd.plist; | ||
requires mslinks; | ||
requires com.dlsc.unitfx; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,74 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import com.dlsc.unitfx.*?> | ||
<?import javafx.scene.control.*?> | ||
<?import javafx.scene.layout.*?> | ||
<?import javafx.scene.text.*?> | ||
<?import org.controlsfx.control.textfield.*?> | ||
|
||
<?import org.controlsfx.control.textfield.CustomPasswordField?> | ||
<fx:root spacing="10.0" type="VBox" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="org.jabref.gui.preferences.ai.AiTab"> | ||
<children> | ||
<CheckBox fx:id="enableChat" mnemonicParsing="false" text="%Enable chat with attached PDF files" /> | ||
<children> | ||
<Label styleClass="titleHeader" text="%AI" /> | ||
|
||
<Label styleClass="sectionHeader" text="%General" /> | ||
|
||
<CheckBox fx:id="enableChat" mnemonicParsing="false" text="%Enable chat with attached PDF files" /> | ||
|
||
<HBox alignment="CENTER_LEFT" spacing="10.0"> | ||
<children> | ||
<Label alignment="BASELINE_CENTER" text="%OpenAI API token" /> | ||
<CustomPasswordField fx:id="openAiToken" HBox.hgrow="ALWAYS" /> | ||
</children> | ||
</HBox> | ||
|
||
<Label styleClass="sectionHeader" text="%Expert settings" /> | ||
<VBox> | ||
<children> | ||
|
||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%These parameters affect how AI will answer you questions." /> | ||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%Leave these fields as is, if you are not sure of their purpose." /> | ||
</children> | ||
</VBox> | ||
<Label text="%System message" /> | ||
<TextArea fx:id="systemMessageTextArea" wrapText="true" /> | ||
<HBox alignment="CENTER_LEFT" spacing="10.0"> | ||
<children> | ||
<Label alignment="BASELINE_CENTER" text="%OpenAI API token" /> | ||
<CustomPasswordField fx:id="openAiToken" HBox.hgrow="ALWAYS" /> | ||
<Label alignment="BASELINE_CENTER" text="%Message window size" /> | ||
<IntegerInputField fx:id="messageWindowSizeTextField" HBox.hgrow="ALWAYS" /> | ||
</children> | ||
</HBox> | ||
</children> | ||
<HBox spacing="10.0"> | ||
<children> | ||
<VBox HBox.hgrow="ALWAYS"> | ||
<children> | ||
<Label text="%Document splitter - chunk size" /> | ||
<IntegerInputField fx:id="documentSplitterChunkSizeTextField" /> | ||
</children> | ||
</VBox> | ||
<VBox HBox.hgrow="ALWAYS"> | ||
<children> | ||
<Label text="%Document splitter - overlap size" /> | ||
<IntegerInputField fx:id="documentSplitterOverlapSizeTextField" /> | ||
</children> | ||
</VBox> | ||
</children> | ||
</HBox> | ||
|
||
<HBox spacing="10.0"> | ||
<children> | ||
<VBox HBox.hgrow="ALWAYS"> | ||
<children> | ||
<Label text="%RAG - maximum results count" /> | ||
<IntegerInputField fx:id="ragMaxResultsCountTextField" /> | ||
</children> | ||
</VBox> | ||
<VBox HBox.hgrow="ALWAYS"> | ||
<children> | ||
<Label text="%RAG - minimum score" /> | ||
<DoubleInputField fx:id="ragMinScoreTextField" /> | ||
</children> | ||
</VBox> | ||
</children> | ||
</HBox> | ||
</children> | ||
</fx:root> |
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.