pvanand commited on
Commit
7334dbe
1 Parent(s): 33fe017

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -72,7 +72,11 @@ async def generate_report(request: Request, query: QueryModel):
72
  try:
73
  urls,optimized_search_query = search_brave(search_query, num_results=10)
74
  # Fetch and extract content from the URLs
75
- all_text_with_urls = fetch_and_extract_content(data_format, urls, query_str)
 
 
 
 
76
  # Prepare the prompt for generating the report
77
  additional_context = limit_tokens(str(all_text_with_urls))
78
  prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} USING THE #### SCRAPED DATA:{additional_context}"
 
72
  try:
73
  urls,optimized_search_query = search_brave(search_query, num_results=10)
74
  # Fetch and extract content from the URLs
75
+ all_text_with_urls = fetch_and_extract_content(
76
+ data_format=data_format,
77
+ urls=urls,
78
+ query=query,
79
+ num_refrences=8)
80
  # Prepare the prompt for generating the report
81
  additional_context = limit_tokens(str(all_text_with_urls))
82
  prompt = f"#### COMPLETE THE TASK: {description} #### IN THE CONTEXT OF ### CONTEXT: {query_str} USING THE #### SCRAPED DATA:{additional_context}"