https://bulkdata.uspto.gov/data/patent/application/redbook/fulltext/2020/
-
pip install beautifulsoup4
-
pip install lxml
-
pip install openai
-
python read.py
Processes the raw patent file (xml) into a pandas dataframe with the fields we're interested in.
Reads back the dataframe, encodes each abstract, then indexes into a vector db. The vector db is FAISS.
Generates some abstracts using GPT4 and writes it to a csv file.
Evaluates the generated abstracts from previous step using cosine similarity and euclidean distance.
Searches the index for other abstracts that match the search query abstract.
Based on an input claim and claims of similar-abstract applications, generates additional claims using GPT4 and writes to a csv file.