Skip to content

Commit

Permalink
feat: Added new functionality to set sources in response messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
felipearosr committed Apr 12, 2024
1 parent 4f3f438 commit c8b9b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 2.Pinecone - HybridRetriever - Adv.Ingestion/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ async def start():
author="Assistant", content="Hello! Im an AI assistant. How may I help you?"
).send()


async def set_sources(response, response_message):
label_list = []
count = 1
Expand All @@ -70,6 +71,7 @@ async def set_sources(response, response_message):
response_message.content += "\n\nSources: " + ", ".join(label_list)
await response_message.update()


@cl.on_message
async def main(message: cl.Message):
query_engine = cl.user_session.get("query_engine")
Expand Down

0 comments on commit c8b9b1e

Please sign in to comment.