Verified Owner
Top Description Fields Constructors Methods
org.jabref.gui.ai.chat

public Class AiChatStatusView

extends VBox
Class Inheritance
Imports
java.nio.file.Path, javafx.beans.property.ListProperty, .ObjectProperty, .ReadOnlyObjectWrapper, .ReadOnlyStringWrapper, javafx.fxml.FXML, javafx.scene.control.Button, .ComboBox, .Label, .TableColumn, .TableView, javafx.scene.layout.VBox, org.jabref.gui.DialogService, org.jabref.gui.preferences.GuiPreferences, org.jabref.gui.util.ValueTableCellFactory, .ViewModelListCellFactory, org.jabref.logic.ai.AiNamingUtils, .AiService, org.jabref.logic.ai.chatting.ChatModel, org.jabref.logic.ai.ingestion.tasks.generateembeddings.GenerateEmbeddingsTask, org.jabref.logic.ai.rag.logic.ResponseEngine, org.jabref.logic.l10n.Localization, org.jabref.model.ai.chatting.ChatMessage, org.jabref.model.ai.identifiers.FullBibEntry, org.jabref.model.ai.pipeline.ResponseEngineKind, org.jabref.model.entry.BibEntryTypesManager, com.airhacks.afterburner.views.ViewLoader, jakarta.inject.Inject

Displays status and metadata for an AI chat session.

This component provides information about:

It also offers actions to:

Typical usage: This component is primarily used within the AiChatView, where:

Future plans: The component is intended to support configuration of chat parameters, such as selecting a different chat model per session instead of relying on global preferences. Currently, only the response engine can be modified.

Field Summary

Modifier and TypeField and Description
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, AiChatStatusViewModel.IngestionStatusRow>
private AiService
private Label
private TableColumn<FullBibEntry, String>
private DialogService
private TableView<FullBibEntry>
private BibEntryTypesManager
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, String>
private TableView<AiChatStatusViewModel.IngestionStatusRow>
private TableColumn<FullBibEntry, String>
private GuiPreferences
private ComboBox<ResponseEngineKind>
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, AiChatStatusViewModel.FileStatus>
private AiChatStatusViewModel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ListProperty<ChatMessage>
public ObjectProperty<ChatModel>
private void
private Button
public ListProperty<FullBibEntry>
private void
private void
private static String
public ListProperty<GenerateEmbeddingsTask>
private void
public ObjectProperty<ResponseEngine>
public void
private void
private void
private void
Inherited from javafx.scene.layout.VBox:
alignmentPropertyclearConstraintscomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthfillWidthPropertygetAlignmentgetClassCssMetaDatagetContentBiasgetCssMetaDatagetMargingetSpacinggetVgrowisFillWidthlayoutChildrenrequestLayoutsetAlignmentsetFillWidthsetMarginsetSpacingsetVgrowspacingProperty

Field Detail

actionColumnback to summary
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, AiChatStatusViewModel.IngestionStatusRow> actionColumn
Annotations
@FXML
aiServiceback to summary
private AiService aiService
Annotations
@Inject
chatModelLabelback to summary
private Label chatModelLabel
Annotations
@FXML
citationKeyColumnback to summary
private TableColumn<FullBibEntry, String> citationKeyColumn
Annotations
@FXML
dialogServiceback to summary
private DialogService dialogService
Annotations
@Inject
entriesTableback to summary
private TableView<FullBibEntry> entriesTable
Annotations
@FXML
entryTypesManagerback to summary
private BibEntryTypesManager entryTypesManager
Annotations
@Inject
fileColumnback to summary
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, String> fileColumn
Annotations
@FXML
ingestionTableback to summary
private TableView<AiChatStatusViewModel.IngestionStatusRow> ingestionTable
Annotations
@FXML
libraryColumnback to summary
private TableColumn<FullBibEntry, String> libraryColumn
Annotations
@FXML
preferencesback to summary
private GuiPreferences preferences
Annotations
@Inject
responseEngineComboBoxback to summary
private ComboBox<ResponseEngineKind> responseEngineComboBox
Annotations
@FXML
statusColumnback to summary
private TableColumn<AiChatStatusViewModel.IngestionStatusRow, AiChatStatusViewModel.FileStatus> statusColumn
Annotations
@FXML
viewModelback to summary
private AiChatStatusViewModel viewModel

Constructor Detail

AiChatStatusViewback to summary
public AiChatStatusView()

Method Detail

chatHistoryPropertyback to summary
public ListProperty<ChatMessage> chatHistoryProperty()
chatModelPropertyback to summary
public ObjectProperty<ChatModel> chatModelProperty()
clearChatHistoryback to summary
private void clearChatHistory()
Annotations
@FXML
constructErrorButtonback to summary
private Button constructErrorButton(AiChatStatusViewModel.IngestionStatusRow row)
entriesPropertyback to summary
public ListProperty<FullBibEntry> entriesProperty()
exportJsonback to summary
private void exportJson()
Annotations
@FXML
exportMarkdownback to summary
private void exportMarkdown()
Annotations
@FXML
formatChatModelLabelback to summary
private static String formatChatModelLabel(ChatModel model)
generateEmbeddingsTasksPropertyback to summary
public ListProperty<GenerateEmbeddingsTask> generateEmbeddingsTasksProperty()
initializeback to summary
private void initialize()
Annotations
@FXML
responseEnginePropertyback to summary
public ObjectProperty<ResponseEngine> responseEngineProperty()
setResponseEngineback to summary
public void setResponseEngine(ResponseEngine responseEngine)
setupEntriesTableback to summary
private void setupEntriesTable()
setupIngestionTableback to summary
private void setupIngestionTable()
setupRestback to summary
private void setupRest()