Added web interface
This commit is contained in:
2
db.py
2
db.py
@@ -217,7 +217,7 @@ def query(db: Database | Path, text: str, record_count: int = 10) -> list[tuple[
|
||||
|
||||
return results
|
||||
|
||||
def add_document(db: Database | Path, file: Path, max_workers: int = 1) -> None:
|
||||
def add_document(db: Database | Path, file: Path, max_workers: int = 4) -> None:
|
||||
"""
|
||||
Adds a new document to the database. If path is given, do load, add, save.
|
||||
Loads PDF with PyMuPDF, splits by pages, and creates records and vectors.
|
||||
|
||||
Reference in New Issue
Block a user