Skip to content

Commit

Permalink
remove metadata dict handling
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinFrasch committed May 8, 2024
1 parent a022c92 commit 44980ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/slackbot/ai_fcts.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
def format_docs(docs):
context = ""
for index, doc in enumerate(docs):
context += f"Document Rank {index + 1}: Page Link: {doc.metadata['page_id']} {doc.page_content}\n\n"
context += f"Document Rank {index + 1}: Page Link: {doc.metadata} {doc.page_content}\n\n"
return context

# create function to invoke the retrievalQA
Expand Down

0 comments on commit 44980ff

Please sign in to comment.