forked from mmz-001/knowledge_gpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# flake8: noqa | ||
import streamlit as st | ||
|
||
|
||
def faq(): | ||
st.markdown( | ||
""" | ||
# FAQ | ||
## How does KnowledgeGPT work? | ||
When you upload a document, it will be divided into smaller chunks | ||
and stored in a special type of database called a vector index | ||
that allows for semantic search and retrieval. | ||
When you ask a question, KnowledgeGPT will search through the | ||
document chunks and find the most relevant ones using the vector index. | ||
Then, it will use GPT3 to generate a final answer. | ||
## Is my data safe? | ||
Yes, your data is safe. KnowledgeGPT does not store your documents or | ||
questions. All uploaded data is deleted after you close the browser tab. | ||
## Why does it take so long to index my document? | ||
If you are using a free OpenAI API key, it will take a while to index | ||
your document. This is because the free API key has strict [rate limits](https://platform.openai.com/docs/guides/rate-limits/overview). | ||
To speed up the indexing process, you can use a paid API key. | ||
## What do the numbers mean under each source? | ||
For a PDF document, you will see a citation number like this: 3-12. | ||
The first number is the page number and the second number is | ||
the chunk number on that page. For DOCS and TXT documents, | ||
the first number is set to 1 and the second number is the chunk number. | ||
## Are the answers 100% accurate? | ||
No, the answers are not 100% accurate. KnowledgeGPT uses GPT-3 to generate | ||
answers. GPT-3 is a powerful language model, but it sometimes makes mistakes | ||
and is prone to hallucinations. Also, KnowledgeGPT uses semantic search | ||
to find the most relevant chunks and does not see the entire document, | ||
which means that it may not be able to find all the relevant information and | ||
may not be able to answer all questions (especially summary-type questions | ||
or questions that require a lot of context from the document). | ||
But for most use cases, KnowledgeGPT is very accurate and can answer | ||
most questions. Always check with the sources to make sure that the answers | ||
are correct. | ||
""" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters