-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: isolate doc ingestion with a llama http server (#90)
- Loading branch information
Showing
25 changed files
with
514 additions
and
470 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.venv/ | ||
.venv*/ | ||
__pycache__/ | ||
.env | ||
persistent_storage/* | ||
.vscode/ | ||
embedding_model.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +0,0 @@ | ||
from .controller import app | ||
from .utils import to_int | ||
|
||
__all__ = ['app', 'to_int'] | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from ...dyn_loader import VectorDBLoader | ||
from ...vectordb.base import BaseVectorDB | ||
|
||
|
||
def delete_by_source(vectordb_loader: VectorDBLoader, user_id: str, source_names: list[str]) -> bool: | ||
db: BaseVectorDB = vectordb_loader.load() | ||
return db.delete(user_id, 'source', source_names) | ||
|
||
|
||
def delete_by_provider(vectordb_loader: VectorDBLoader, user_id: str, providerKey: str) -> bool: | ||
db: BaseVectorDB = vectordb_loader.load() | ||
return db.delete(user_id, 'provider', [providerKey]) | ||
|
||
|
||
def delete_for_all_users(vectordb_loader: VectorDBLoader, providerKey: str) -> bool: | ||
db: BaseVectorDB = vectordb_loader.load() | ||
return db.delete_for_all_users('provider', [providerKey]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.