Merge branch 'dev' into llm_fxp

This commit is contained in:
yhjun1026 2023-06-06 14:40:37 +08:00
commit 49746b0247
2 changed files with 1 additions and 3 deletions

View File

@ -49,7 +49,6 @@ class KnowledgeEmbedding:
if self.file_type == "url":
embedding = URLEmbedding(
file_path=self.file_path,
model_name=self.model_name,
vector_store_config=self.vector_store_config,
)
return embedding

View File

@ -15,12 +15,11 @@ CFG = Config()
class PDFEmbedding(SourceEmbedding):
"""pdf embedding for read pdf document."""
def __init__(self, file_path, vector_store_config, encoding):
def __init__(self, file_path, vector_store_config):
"""Initialize with pdf path."""
super().__init__(file_path, vector_store_config)
self.file_path = file_path
self.vector_store_config = vector_store_config
self.encoding = encoding
@register
def read(self):