mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-31 15:47:05 +00:00
Fix type exception when use office ppt database (#679)
Fix type exception when use office ppt database
This commit is contained in:
commit
b185a61cbd
@ -92,7 +92,7 @@ class ChatKnowledge(BaseChat):
|
||||
context = [d.page_content for d in docs]
|
||||
context = context[: self.max_token]
|
||||
relations = list(
|
||||
set([os.path.basename(d.metadata.get("source", "")) for d in docs])
|
||||
set([os.path.basename(str(d.metadata.get("source", ""))) for d in docs])
|
||||
)
|
||||
input_values = {
|
||||
"context": context,
|
||||
|
Loading…
Reference in New Issue
Block a user