KrishnaKumar23 commited on
Commit
72b3bd1
1 Parent(s): 46c9b40

Delete sidebar.py

Browse files
Files changed (1) hide show
  1. sidebar.py +0 -60
sidebar.py DELETED
@@ -1,60 +0,0 @@
1
- import streamlit as st
2
- from streamlit_lottie import st_lottie
3
-
4
-
5
- def faq():
6
- st.markdown(
7
- """
8
- # FAQ
9
- ## How does Document Q&A Bot work?
10
- When you upload a document (in Pdf, word, csv or txt format), it will be divided into smaller chunks
11
- and stored in a special type of database called a vector index
12
- that allows for semantic search and retrieval.
13
-
14
- When you ask a question, our Q&A bot will first look through the document chunks and find the
15
- most relevant ones using the vector index. Then, it will use open-source LLM model named Google Palm
16
- and will provide the final answer.
17
-
18
- ## Is my data safe?
19
- Yes, your data is safe. Our bot does not store your documents or
20
- questions. All uploaded data is deleted after you close the browser tab.
21
-
22
- ## Why does it take so long to index my document?
23
- Since, this is a sample QA bot project that uses open-source model
24
- and doesn't have much resource capabilities like GPU, it may take time
25
- to index your document based on the size of the document.
26
-
27
- ## Are the answers 100% accurate?
28
- No, the answers are not 100% accurate.
29
- But for most use cases, our QA bot is very accurate and can answer
30
- most questions. Always check with the sources to make sure that the answers
31
- are correct.
32
- """
33
- )
34
-
35
-
36
- def sidebar():
37
- with st.sidebar:
38
- st.markdown("## Google Palm")
39
-
40
- st.success('API key already provided!', icon='✅')
41
-
42
- st.markdown(
43
- "## How to use QA bot\n"
44
- "1. Upload a pdf, docx, or a txt file📄\n"
45
- "2. Ask questions about the document💬\n"
46
- )
47
-
48
- # st.session_state["OPENAI_API_KEY"] = api_key_input
49
-
50
- st.markdown("---")
51
- st.markdown("# About")
52
- st.markdown(
53
- "🤖 QA bot allows you to ask questions about your "
54
- "documents and get accurate answers with citations. "
55
- )
56
-
57
- st.markdown("Created by [Krishna Kumar](https://www.linkedin.com/in/krishna-kumar-yadav-726831105/)")
58
- st.markdown("---")
59
-
60
- faq()