Added web interface

This commit is contained in:
Mrna
2025-11-03 15:31:27 +01:00
parent c0aaac279c
commit 626ae74cdf
3 changed files with 147 additions and 1 deletions

2
db.py
View File

@@ -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.