Skip to content

Commit

Permalink
Fix type exception when use office ppt database (#679)
Browse files Browse the repository at this point in the history
Fix type exception when use office ppt database
  • Loading branch information
csunny authored Oct 19, 2023
2 parents 05327c6 + 20aa673 commit b185a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/scene/chat_knowledge/v1/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def generate_input_values(self):
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,
Expand Down

0 comments on commit b185a61

Please sign in to comment.