mitultiwari commited on
Commit
e1f8f0f
·
1 Parent(s): 7b7f6c4

rag over nvidia doc

Browse files
Files changed (2) hide show
  1. chainlit.md +1 -1
  2. src/retrieval_lib.py +2 -2
chainlit.md CHANGED
@@ -1,5 +1,5 @@
1
  # PDF RAG
2
 
3
- RAG over a PDF document: Musk vs Altman/Openai (https://www.courthousenews.com/wp-content/uploads/2024/02/musk-v-altman-openai-complaint-sf.pdf)
4
 
5
  Disclaimer: this is running the query over the pdf document and generating answers using LLM. LLMs can hellucinate and can generate wrong answers.
 
1
  # PDF RAG
2
 
3
+ RAG over a PDF document
4
 
5
  Disclaimer: this is running the query over the pdf document and generating answers using LLM. LLMs can hellucinate and can generate wrong answers.
src/retrieval_lib.py CHANGED
@@ -79,8 +79,8 @@ def initialize_index():
79
  # load pdf
80
  cwd = os.path.abspath(os.getcwd())
81
  data_dir = "data"
82
- #pdf_file = "nvidia_earnings_report.pdf"
83
- pdf_file = "musk-v-altman-openai-complaint-sf.pdf"
84
  pdf_path = os.path.join(cwd, data_dir, pdf_file)
85
  print("path: ", pdf_path)
86
  doc = load_pdf_to_text(pdf_path)
 
79
  # load pdf
80
  cwd = os.path.abspath(os.getcwd())
81
  data_dir = "data"
82
+ pdf_file = "nvidia_earnings_report.pdf"
83
+ # pdf_file = "musk-v-altman-openai-complaint-sf.pdf"
84
  pdf_path = os.path.join(cwd, data_dir, pdf_file)
85
  print("path: ", pdf_path)
86
  doc = load_pdf_to_text(pdf_path)