Skip to content

Commit

Permalink
clean up print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
ccheng26 committed Apr 4, 2024
1 parent 92635a3 commit 159b643
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions 02-household-queries/chainlit-household-bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,8 @@ async def message_submitted(message: cl.Message):
await retrieval_function(vectordb=vectordb, llm=client)
response = retrieval_call(client, vectordb, message.content)
source_list = [doc.metadata for doc in response['source_documents']]
print(source_list)
sources = ', '.join([sources_item['source'] for sources_item in source_list])
answer = f"Result:\n{response['result']} \nSources: \n" + sources
print(sources)
await cl.Message(content=answer).send()
else:
response = call_llm(message)
Expand Down

0 comments on commit 159b643

Please sign in to comment.