mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 21:29:11 +00:00
Add prompt tracing, agent personality to infer webpage urls chat actor
This commit is contained in:
@@ -162,10 +162,9 @@ async def read_webpages(
|
|||||||
):
|
):
|
||||||
"Infer web pages to read from the query and extract relevant information from them"
|
"Infer web pages to read from the query and extract relevant information from them"
|
||||||
logger.info(f"Inferring web pages to read")
|
logger.info(f"Inferring web pages to read")
|
||||||
if send_status_func:
|
urls = await infer_webpage_urls(
|
||||||
async for event in send_status_func(f"**Inferring web pages to read**"):
|
query, conversation_history, location, user, query_images, agent=agent, tracer=tracer
|
||||||
yield {ChatEvent.STATUS: event}
|
)
|
||||||
urls = await infer_webpage_urls(query, conversation_history, location, user, query_images)
|
|
||||||
|
|
||||||
# Get the top 10 web pages to read
|
# Get the top 10 web pages to read
|
||||||
urls = urls[:max_webpages_to_read]
|
urls = urls[:max_webpages_to_read]
|
||||||
|
|||||||
Reference in New Issue
Block a user