girishwangikar commited on
Commit
c1a2399
Β·
verified Β·
1 Parent(s): aa8c099

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -11,6 +11,17 @@ from langchain_community.embeddings import HuggingFaceEmbeddings
11
  from langchain.prompts import PromptTemplate
12
  from dotenv import load_dotenv
13
 
 
 
 
 
 
 
 
 
 
 
 
14
  # Load environment variables
15
  load_dotenv()
16
 
 
11
  from langchain.prompts import PromptTemplate
12
  from dotenv import load_dotenv
13
 
14
+ """
15
+ ### How to Use the App:
16
+
17
+ 1. **Upload PDF:** Upload PDF and click 'Process PDF' to add them to the knowledge base.
18
+ 2. **Ask a Question:** Switch to the 'Q&A System' tab, enter your question, and click 'Ask Question' to get an answer based on the uploaded PDF content.
19
+ 3. **Clear Data:** Click 'Clear Knowledge Base' to reset and remove all uploaded documents.
20
+
21
+ Ensure a PDF is uploaded before asking questions.
22
+ """
23
+
24
+
25
  # Load environment variables
26
  load_dotenv()
27