Skip to content

Commit

Permalink
Merge pull request #9 from felipearosr/Set-Sources-Function-Update
Browse files Browse the repository at this point in the history
Set-Sources-Function-Update
  • Loading branch information
felipearosr authored Apr 12, 2024
2 parents e246957 + c8b9b1e commit f34e461
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 f34e461

Please sign in to comment.