Spaces:
Sleeping
Sleeping
File size: 519 Bytes
3369d9f |
1 2 3 4 5 6 7 8 9 10 11 12 |
# DEPRECATED - Use keypoints.py, to get combined answer
# Use this file directly to convert PDFs into FAISS embeddings and save their mapping, specify the desired input and outputs folder
from database import Data
import os
# 1 cent to create embeddings for 9 reports
# Store all reports into inp_dir and the generated DB for all reports will be saved in out_dir
data = Data(inp_dir=os.path.join("inputs", "papers"), out_dir=os.path.join("outputs", "faiss", "papers"))
data.check_output()
data.get_faiss_embeddings()
|