2023-08-08 14:25:55 +08:00
|
|
|
from typing import List
|
|
|
|
|
|
|
|
|
|
from langchain.embeddings.base import Embeddings
|
|
|
|
|
from langchain.schema import Document
|
|
|
|
|
|
2023-08-06 23:43:54 +08:00
|
|
|
from server.knowledge_base.kb_service.base import KBService
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class DefaultKBService(KBService):
|
2023-08-08 14:25:55 +08:00
|
|
|
def do_create_kb(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def do_drop_kb(self):
|
|
|
|
|
pass
|
|
|
|
|
|
2023-08-28 16:03:53 +08:00
|
|
|
def do_add_doc(self, docs: List[Document]):
|
2023-08-08 14:25:55 +08:00
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def do_clear_vs(self):
|
|
|
|
|
pass
|
|
|
|
|
|
2023-08-06 23:43:54 +08:00
|
|
|
def vs_type(self) -> str:
|
|
|
|
|
return "default"
|
|
|
|
|
|
|
|
|
|
def do_init(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def do_search(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def do_insert_multi_knowledge(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
def do_insert_one_knowledge(self):
|
|
|
|
|
pass
|
|
|
|
|
|
2023-08-07 16:32:34 +08:00
|
|
|
def do_delete_doc(self):
|
2023-08-06 23:43:54 +08:00
|
|
|
pass
|
2024-02-27 11:05:55 +08:00
|
|
|
|
|
|
|
|
def searchbyContent(self):
|
|
|
|
|
pass
|