Skip to content

Commit

Permalink
Fix for InAnYan#126
Browse files Browse the repository at this point in the history
  • Loading branch information
InAnYan committed Aug 7, 2024
1 parent 49ce737 commit 43f1f7c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<Font name="System Bold" size="24.0" />
</font>
</Text>
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%JabRef uses AI providers to enable AI functionality (chatting with attached files and summarization). AI provider is an external service. To enable processing of attached files, their contents need to be shared with the currently selected AI provider.">
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="%JabRef uses AI providers to enable AI functionality (chatting with attached file(s) and summarization). AI provider is an external service. To enable processing of attached file(s), their contents need to be shared with the currently selected AI provider.">
<font>
<Font size="14.0" />
</font>
</Text>
<Text layoutX="20.0" layoutY="77.0" strokeType="OUTSIDE" strokeWidth="0.0" text="%As soon as you ask a question, the text content of all PDFs attached to the entry are send to external service.">
<Text layoutX="20.0" layoutY="77.0" strokeType="OUTSIDE" strokeWidth="0.0" text="%As soon as you ask a question, the text content of all PDFs attached to the entry are sent to external service.">
<font>
<Font size="14.0" />
</font>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jabref/gui/entryeditor/AiChatTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private void showErrorNotIngested() {
setContent(
ErrorStateComponent.withSpinner(
Localization.lang("Processing..."),
Localization.lang("The embeddings of the file are currently being generated. Please wait, and at the end you will be able to chat.")
Localization.lang("The embeddings of the file(s) are currently being generated. Please wait, and at the end you will be able to chat.")
)
);
}
Expand All @@ -142,7 +142,7 @@ private void showErrorNoFiles() {
setContent(
new ErrorStateComponent(
Localization.lang("Unable to chat"),
Localization.lang("Please attach at least one PDF file to enable chatting with PDF files.")
Localization.lang("Please attach at least one PDF file to enable chatting with PDF file(s).")
)
);
}
Expand Down Expand Up @@ -176,7 +176,7 @@ public void showBuildingEmbeddingModel() {
setContent(
ErrorStateComponent.withSpinner(
Localization.lang("Downloading..."),
Localization.lang("Downloading embedding model... Afterwards, you will be able to chat with your files.")
Localization.lang("Downloading embedding model... Afterward, you will be able to chat with your files.")
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/jabref/gui/entryeditor/AiSummaryTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public AiSummaryTab(LibraryTabContainer libraryTabContainer,
this.citationKeyGenerator = new CitationKeyGenerator(bibDatabaseContext, preferencesService.getCitationKeyPatternPreferences());

setText(Localization.lang("AI summary"));
setTooltip(new Tooltip(Localization.lang("AI-generated summary of attached files")));
setTooltip(new Tooltip(Localization.lang("AI-generated summary of attached file(s)")));

aiService.getSummariesStorage().registerListener(new SummarySetListener());
}
Expand Down Expand Up @@ -201,7 +201,7 @@ private void showErrorNotSummarized() {
setContent(
ErrorStateComponent.withSpinner(
Localization.lang("Processing..."),
Localization.lang("The attached files are currently being processed by %0. Once completed, you will be able to see the summary.", aiService.getPreferences().getAiProvider().getLabel())
Localization.lang("The attached file(s) are currently being processed by %0. Once completed, you will be able to see the summary.", aiService.getPreferences().getAiProvider().getLabel())
)
);
}
Expand Down
13 changes: 7 additions & 6 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2543,7 +2543,6 @@ Clear\ embeddings\ cache\ for\ current\ library?=Clear embeddings cache for curr
Clearing\ embeddings\ cache...=Clearing embeddings cache...
Temperature=Temperature
Temperature\ must\ be\ between\ 0\ and\ 2=Temperature must be between 0 and 2
The\ embeddings\ of\ the\ file\ are\ currently\ being\ generated.\ Please\ wait,\ and\ at\ the\ end\ you\ will\ be\ able\ to\ chat.=The embeddings of the file are currently being generated. Please wait, and at the end you will be able to chat.
Are\ you\ sure\ you\ want\ to\ clear\ the\ chat\ history\ of\ this\ entry?=Are you sure you want to clear the chat history of this entry?
Context\ window\ size=Context window size
Context\ window\ size\ must\ be\ greater\ than\ 0=Context window size must be greater than 0
Expand All @@ -2564,16 +2563,11 @@ Embedding\ model\ is\ not\ set\ up=Embedding model is not set up
AI\ summary=AI summary
Regenerate=Regenerate
The\ path\ of\ the\ current\ library\ is\ not\ set,\ but\ it\ is\ required\ for\ summarization=The path of the current library is not set, but it is required for summarization
As\ soon\ as\ you\ ask\ a\ question,\ the\ text\ content\ of\ all\ PDFs\ attached\ to\ the\ entry\ are\ send\ to\ external\ service.=As soon as you ask a question, the text content of all PDFs attached to the entry are send to external service.
Enable\ AI\ functionality\ (summary\ generation\ and\ chatting)\ in\ JabRef=Enable AI functionality (summary generation and chatting) in JabRef
AI-generated\ summary\ of\ attached\ files=AI-generated summary of attached files
API\ key\ is\ missing.=API key is missing.
Customize\ expert\ settings=Customize expert settings
Downloading\ embedding\ model...=Downloading embedding model...
Downloading\ embedding\ model...\ Afterwards,\ you\ will\ be\ able\ to\ chat\ with\ your\ files.=Downloading embedding model... Afterwards, you will be able to chat with your files.
Generating\ embeddings\ for\ for\ %0=Generating embeddings for for %0
JabRef\ uses\ AI\ providers\ to\ enable\ AI\ functionality\ (chatting\ with\ attached\ files\ and\ summarization).\ AI\ provider\ is\ an\ external\ service.\ To\ enable\ processing\ of\ attached\ files,\ their\ contents\ need\ to\ be\ shared\ with\ the\ currently\ selected\ AI\ provider.=JabRef uses AI providers to enable AI functionality (chatting with attached files and summarization). AI provider is an external service. To enable processing of attached files, their contents need to be shared with the currently selected AI provider.
The\ attached\ files\ are\ currently\ being\ processed\ by\ %0.\ Once\ completed,\ you\ will\ be\ able\ to\ see\ the\ summary.=The attached files are currently being processed by %0. Once completed, you will be able to see the summary.
These\ parameters\ affect\ how\ the\ AI\ will\ answer\ you\ questions.=These parameters affect how the AI will answer you questions.
Additionally,\ we\ use\ Deep\ Java\ Library\ embedding\ models\ for\ both\ chatting\ and\ summarization.\ The\ embedding\ model\ will\ be\ downloaded\ in\ background\ from\ Deep\ Java\ Library\ servers\ anonymously.=Additionally, we use Deep Java Library embedding models for both chatting and summarization. The embedding model will be downloaded in background from Deep Java Library servers anonymously.
Chat\ with\ AI\ about\ content\ of\ attached\ file(s)=Chat with AI about content of attached file(s)
Expand All @@ -2593,6 +2587,13 @@ Click\ here\ to\ navigate\ to\ AI\ preferences.=Click here to navigate to AI pre
API\ base\ URL\ setting\ appears\ to\ be\ incorrect.\ Please\ check\ it\ in\ AI\ expert\ settings.=API base URL setting appears to be incorrect. Please check it in AI expert settings.
Could\ not\ find\ path\ for\ a\ linked\ file\ %0\ while\ generating\ embeddings\ for\ entry\ %1=Could not find path for a linked file %0 while generating embeddings for entry %1
Unable\ to\ generate\ embeddings\ for\ file\ %0,\ because\ JabRef\ was\ unable\ to\ extract\ text\ from\ the\ file,\ while\ processing\ entry\ %1=Unable to generate embeddings for file %0, because JabRef was unable to extract text from the file, while processing entry %1
AI-generated\ summary\ of\ attached\ file(s)=AI-generated summary of attached file(s)
As\ soon\ as\ you\ ask\ a\ question,\ the\ text\ content\ of\ all\ PDFs\ attached\ to\ the\ entry\ are\ sent\ to\ external\ service.=As soon as you ask a question, the text content of all PDFs attached to the entry are sent to external service.
Downloading\ embedding\ model...\ Afterward,\ you\ will\ be\ able\ to\ chat\ with\ your\ files.=Downloading embedding model... Afterward, you will be able to chat with your files.
JabRef\ uses\ AI\ providers\ to\ enable\ AI\ functionality\ (chatting\ with\ attached\ file(s)\ and\ summarization).\ AI\ provider\ is\ an\ external\ service.\ To\ enable\ processing\ of\ attached\ file(s),\ their\ contents\ need\ to\ be\ shared\ with\ the\ currently\ selected\ AI\ provider.=JabRef uses AI providers to enable AI functionality (chatting with attached file(s) and summarization). AI provider is an external service. To enable processing of attached file(s), their contents need to be shared with the currently selected AI provider.
Please\ attach\ at\ least\ one\ PDF\ file\ to\ enable\ chatting\ with\ PDF\ file(s).=Please attach at least one PDF file to enable chatting with PDF file(s).
The\ attached\ file(s)\ are\ currently\ being\ processed\ by\ %0.\ Once\ completed,\ you\ will\ be\ able\ to\ see\ the\ summary.=The attached file(s) are currently being processed by %0. Once completed, you will be able to see the summary.
The\ embeddings\ of\ the\ file(s)\ are\ currently\ being\ generated.\ Please\ wait,\ and\ at\ the\ end\ you\ will\ be\ able\ to\ chat.=The embeddings of the file(s) are currently being generated. Please wait, and at the end you will be able to chat.
Edit\ file\ link=Edit file link
Expand Down

0 comments on commit 43f1f7c

Please sign in to comment.