paper-qa

paper-qa

January 24, 2024 | seedling, permanent

tags :

LLM Apps #

github LLM Chain for answering questions from documents with citations

<2023-08-28 Mon> #

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)


No notes link to this note