Spaces:
Runtime error
Runtime error
Rivalcoder commited on
Commit Β·
db3e188
1
Parent(s): 402c718
Update L4 Version2.2
Browse files54 unmodified lines55565758596065 unmodified lines12612712812913013113213354 unmodified lineslink, content = future.result()fetched_data[link] = contentprint(f"[TIMER] Total link fetching: {time.perf_counter() - t0:.2f}s")return fetched_datadef query_gemini(questions, contexts, max_retries=3):65 unmodified lines- If Any Retrieved Datas From Url Is There In Context Use it As Fetch From Online Request (Recently) and use it Answer based on The Question and Context Asked or told Referencesπ CONTEXT:{context}β QUESTIONS:{questions_text}Your task: For each question, provide a complete, professional, and clearly written answer in 2β3 sentences using a formal but readable tone."""print(f"[TIMER] Prompt build: {time.perf_counter() - t0:.2f}s")54 unmodified lines5556575859606165 unmodified lines12712812913013113213313413513613713813914054 unmodified lineslink, content = future.result()fetched_data[link] = contentprint(f"[TIMER] Total link fetching: {time.perf_counter() - t0:.2f}s")print(fetched_data)return fetched_datadef query_gemini(questions, contexts, max_retries=3):65 unmodified lines- If Any Retrieved Datas From Url Is There In Context Use it As Fetch From Online Request (Recently) and use it Answer based on The Question and Context Asked or told Referencesπ CONTEXT:{context}β QUESTIONS:{questions_text}-- If Question Like "What is my flight number?" Then Follow Below Rules also :###Respond Always With Number ThirdCityFlightNumberYour task: For each question, provide a complete, professional, and clearly written answer in 2β3 sentences using a formal but readable tone."""print(f"[TIMER] Prompt build: {time.perf_counter() - t0:.2f}s")
llm.py+7