mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 15:38:55 +01:00
Add prompt tracing, agent personality to infer webpage urls chat actor
This commit is contained in:
parent
ab321dc518
commit
14e453039d
1 changed files with 3 additions and 4 deletions
|
@ -162,10 +162,9 @@ async def read_webpages(
|
|||
):
|
||||
"Infer web pages to read from the query and extract relevant information from them"
|
||||
logger.info(f"Inferring web pages to read")
|
||||
if send_status_func:
|
||||
async for event in send_status_func(f"**Inferring web pages to read**"):
|
||||
yield {ChatEvent.STATUS: event}
|
||||
urls = await infer_webpage_urls(query, conversation_history, location, user, query_images)
|
||||
urls = await infer_webpage_urls(
|
||||
query, conversation_history, location, user, query_images, agent=agent, tracer=tracer
|
||||
)
|
||||
|
||||
# Get the top 10 web pages to read
|
||||
urls = urls[:max_webpages_to_read]
|
||||
|
|
Loading…
Reference in a new issue