-
-
Notifications
You must be signed in to change notification settings - Fork 49
Bible Chat with ChatGPT API
This wiki page describes how to use menu plugin "Bible Chat" in UniqueBible.app

Bible Chat is a Qt-based graphical user interface that uses OpenAI ChatGPT API to generate chat conversations about the bible.
To use "Bible Chat", users need to register an OpenAI account and generate a API key first.
Read pricing at: https://openai.com/pricing
Generate API key at: https://platform.openai.com/account/api-keys
ChatGPT web version is available at: https://chat.openai.com/chat
Bible Chat uses the same model, but with enhanced features not available at ChatGPT web version.
With "Bible Chat", users can:
-
start conversation about the bible directly. Bible Chat set the bible as the context for conversations. For example, asking "Who is David?" in "Bible Chat" get a different response from asking in ChatGPT web version
-
adjust temperature [What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.]
-
adjust number of choices in ChatGPT responses [How many chat completion choices to generate for each input message.]
-
save conversations for offline use
-
search history, based on title or content
-
edit and save conversations
-
listen to text-to-speech audio as Bible Chat generates responses
-
enter message with voice

- Launch "Bible Chat" from plugins menu
- Click "Settings" to enter your own OpenAI API key
- Enter your message in message entry field and press Enter key, to start a conversation
The Bible Chat Window is separated into left and right areas, by a movable splitter. Users can move the splitter to either end to hide one of them.
On the Left, from top to bottom:
-
search entry and button for title - enter text here to search for a title, that contains the entered text, in saved record. You may either press the button or press the "Enter" key after text entry.
-
search entry and button for content - enter text here to search for a content, that contains the entered text, in saved record. You may either press the button or press the "Enter" key after text entry.
-
record list - list of saved records or search results. Select a record to update the content view on the right.
-
"Remove" & "Clear All" buttons - remove selected record or remove all records. Confirmation is required before you proceed the deletion.
-
"Help" button - open this wiki page
On the right, from top to bottom:
-
message input - users enter a message here to begin or continue a conversation. The voice checkbox toggle voice-typing. The send button sends the message. Alternately, users can press the "Enter" key after text entry. When a message is sent, a progress bar is displayed to indicate that the message is being processed.
-
Chat or Image - this determines whether the message to sent to generate a chat response or an image.
-
content view - display conversation content
-
Control interface:
-
Settings - open "Settings" dialog, where you can enter OpenAI API key, orgnisation ID, conversation context, text-to-speech language. In UniqueBible.app the conversation context is set to "about the bible" by default. you may modify the context to get the conversations more focused on a particular context.
-
Temperature - according to OpenAI documentation, temperature means "What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic."
-
Choices - according to OpenAI documentation, choices means "How many chat completion choices to generate for each input message."
-
Audio checkbox - toggles audio plackback when a new response is loaded. Users can select default language in "Settings"
-
Editable checkbox - toggles to edit the content view or make it read-only
-
"New" - open a new conversation
-
"Save" saves edited conversation. Each conservation is automatically saved when a new response is loaded. Users may edit and updated the content with this button.
How to edit a record's title?
Edit the first line of a record to change its title.
Where is the offline database, that "Bible Chat" works with, stored?
UniqueBible/marvelData/BibleChat.sqlite
Can I change the context to make the conversation context to focus on a particular area in bible study?
Yes. Click the "Settings" button to edit the chat context. Change the default "about the bible" to something you want to focus, e.g. "about the new testament in the bible". Press "OK" to close the "Settings" dialog. Click "New" to start a new conversation.