Skip to content

Commit

Permalink
Added constituion.py
Browse files Browse the repository at this point in the history
Added Added constituion.py as the example document.
  • Loading branch information
PromtEngineer committed May 28, 2023
1 parent de1b1d9 commit 0b19928
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 724 deletions.
Binary file added SOURCE_DOCUMENTS/constitution.pdf
Binary file not shown.
4 changes: 3 additions & 1 deletion run_localGPT.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ def main():
print(answer)

# # Print the relevant sources used for the answer
print("________________________SOURCE DOCUMENTS________________________")
print("----------------------------------SOURCE DOCUMENTS---------------------------")
for document in docs:
print("\n> " + document.metadata["source"] + ":")
print(document.page_content)
print("----------------------------------SOURCE DOCUMENTS---------------------------")


if __name__ == "__main__":
main()
Loading

0 comments on commit 0b19928

Please sign in to comment.