paper-qa
tags :
LLM Apps #
github LLM Chain for answering questions from documents with citations
#

Use Cases #
Not only PDF code, .js files, or HTML can be indexed to search ref
import glob
source_files = glob.glob('**/*.js')
docs = Docs()
for f in source_files:
# this assumes the file names are unique in code
docs.add(f, citation='File ' + os.path.name(f), docname=os.path.name(f))
answer = docs.query("Where is the search bar in the header defined?")
print(answer)