Holds all the AI components: LLM and embedding model, chat history and embeddings cache.
Modifier and Type | Field and Description |
---|---|
private final AiChatService | |
private final ExecutorService | |
private static final String | |
private final ChatHistoryService | |
private static final String | |
private static final String | |
private final IngestionService | |
private final JabRefChatLanguageModel | |
private final JabRefEmbeddingModel | |
private final MVStoreChatHistoryStorage | |
private final MVStoreEmbeddingStore | |
private final MVStoreFullyIngestedDocumentsTracker | |
private final MVStoreSummariesStorage | |
private final BooleanProperty | |
private static final String | |
private final SummariesService | |
public static final String |
Access | Constructor and Description |
---|---|
public | AiService(AiPreferences aiPreferences, FilePreferences filePreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, NotificationService notificationService, TaskExecutor taskExecutor)
|
Modifier and Type | Method and Description |
---|---|
public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
public AiChatService | |
public ChatHistoryService | |
public JabRefChatLanguageModel | |
public JabRefEmbeddingModel | |
public IngestionService | |
public SummariesService | |
public void |
aiChatService | back to summary |
---|---|
private final AiChatService aiChatService |
cachedThreadPool | back to summary |
---|---|
private final ExecutorService cachedThreadPool |
CHAT_HISTORY_FILE_NAME | back to summary |
---|---|
private static final String CHAT_HISTORY_FILE_NAME |
chatHistoryService | back to summary |
---|---|
private final ChatHistoryService chatHistoryService |
EMBEDDINGS_FILE_NAME | back to summary |
---|---|
private static final String EMBEDDINGS_FILE_NAME |
FULLY_INGESTED_FILE_NAME | back to summary |
---|---|
private static final String FULLY_INGESTED_FILE_NAME |
ingestionService | back to summary |
---|---|
private final IngestionService ingestionService |
jabRefChatLanguageModel | back to summary |
---|---|
private final JabRefChatLanguageModel jabRefChatLanguageModel |
jabRefEmbeddingModel | back to summary |
---|---|
private final JabRefEmbeddingModel jabRefEmbeddingModel |
mvStoreChatHistoryStorage | back to summary |
---|---|
private final MVStoreChatHistoryStorage mvStoreChatHistoryStorage |
mvStoreEmbeddingStore | back to summary |
---|---|
private final MVStoreEmbeddingStore mvStoreEmbeddingStore |
mvStoreFullyIngestedDocumentsTracker | back to summary |
---|---|
private final MVStoreFullyIngestedDocumentsTracker mvStoreFullyIngestedDocumentsTracker |
mvStoreSummariesStorage | back to summary |
---|---|
private final MVStoreSummariesStorage mvStoreSummariesStorage |
shutdownSignal | back to summary |
---|---|
private final BooleanProperty shutdownSignal |
SUMMARIES_FILE_NAME | back to summary |
---|---|
private static final String SUMMARIES_FILE_NAME |
summariesService | back to summary |
---|---|
private final SummariesService summariesService |
VERSION | back to summary |
---|---|
public static final String VERSION |
AiService | back to summary |
---|---|
public AiService(AiPreferences aiPreferences, FilePreferences filePreferences, CitationKeyPatternPreferences citationKeyPatternPreferences, NotificationService notificationService, TaskExecutor taskExecutor) |
close | back to summary |
---|---|
public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
|
getAiChatService | back to summary |
---|---|
public AiChatService getAiChatService() |
getChatHistoryService | back to summary |
---|---|
public ChatHistoryService getChatHistoryService() |
getChatLanguageModel | back to summary |
---|---|
public JabRefChatLanguageModel getChatLanguageModel() |
getEmbeddingModel | back to summary |
---|---|
public JabRefEmbeddingModel getEmbeddingModel() |
getIngestionService | back to summary |
---|---|
public IngestionService getIngestionService() |
getSummariesService | back to summary |
---|---|
public SummariesService getSummariesService() |
setupDatabase | back to summary |
---|---|
public void setupDatabase(BibDatabaseContext context) |