Skip to content

A python library for indexing and querying PDFS with a few lines of code.

Notifications You must be signed in to change notification settings

jacobsomer/py-pdf-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

py-pdf-search

A python library for indexing and querying PDFS with a few lines of code.

py-pdf-search is a powerful Python library developed specifically for indexing and querying PDF documents, making it an ideal solution for patent search tasks.

Here are two examples demonstrating the usage of PY-PDF-SEARCH:

Example 1: NLP Search

from pdfagent import PDFAgent
import os

if __name__ == "__main__":
    agent = PDFAgent(
       "path/to/pdf_files",
        "openAIKEY"
        )

    res= agent.search("Find patent filings related to secure and scalable filing systems for medical records.")
    print(res)

Example 2: Cosign Similarity Search

from pdfagent import PDFAgent
import os

if __name__ == "__main__":
    agent = PDFAgent(
       "path/to/pdf_files",
        "openAIKEY"
        )

    res= agent.cosign_similarity("<PATH_TO_PDF>", k=3)
    print(res)

Checkout the Presentation Here Presentation Link

About

A python library for indexing and querying PDFS with a few lines of code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages