mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-13 14:06:43 +00:00
fix: pdf problem
This commit is contained in:
parent
c752c9de08
commit
b4e31c8ea9
@ -15,12 +15,11 @@ CFG = Config()
|
|||||||
class PDFEmbedding(SourceEmbedding):
|
class PDFEmbedding(SourceEmbedding):
|
||||||
"""pdf embedding for read pdf document."""
|
"""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."""
|
"""Initialize with pdf path."""
|
||||||
super().__init__(file_path, vector_store_config)
|
super().__init__(file_path, vector_store_config)
|
||||||
self.file_path = file_path
|
self.file_path = file_path
|
||||||
self.vector_store_config = vector_store_config
|
self.vector_store_config = vector_store_config
|
||||||
self.encoding = encoding
|
|
||||||
|
|
||||||
@register
|
@register
|
||||||
def read(self):
|
def read(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user