You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: webviewer-ask-ai/README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,17 @@
1
1
# WebViewer - Ask AI sample
2
2
3
-
[WebViewer](https://docs.apryse.com/web/guides/get-started) is a powerful JavaScript-based PDF Library that is part of the [Apryse SDK](https://apryse.com/).
3
+
Add an AI-powered assistant to WebViewer, enabling chat-based Q&A, document and selected-text summarization, keyword extraction, and contextual prompts that lets users ask questions about their PDFs.
4
+
5
+
6
+
[WebViewer](https://apryse.com/products/webviewer) is a powerful JavaScript-based PDF Library that is part of the [Apryse SDK](https://apryse.com/).
This sample demonstrates how to utilize the artificial intelligence capabilities within the WebViewer, using a chat panel interface to ask questions about the loaded document. Also the user can select text to summarize.
A license key is required to run WebViewer. You can obtain a trial key in our [get started guides](https://docs.apryse.com/web/guides/get-started), or by signing-up on our [developer portal](https://dev.apryse.com/).
13
17
@@ -25,9 +29,7 @@ npm install
25
29
26
30
## Configuration
27
31
28
-
This sample uses OpenAI. You can use any other artificial intelligence of your choice.
29
-
30
-
However, to get started with this sample rename `.env.example` file into `.env` and fill the followings:
32
+
OpenAI is the default backend for this sample. To get started, rename `.env.example` file into `.env` and fill the following:
To use another model, replace the LangChain provider in `server/llmManager.js`, install the corresponding provider package, and update the `.env` variables for that model provider.
0 commit comments