RAVEN_GENERATION_KWARGS = { "max_new_tokens": 1000, "do_sample": False, "temperature": 0.001, "return_full_text": False, "stop_sequences": ["", "Thought:"], "stream": True, } SUMMARY_MODEL_PROMPT = """ [INST] Search results: {results} Please answer the following query using natural language based on the search results provided above with no extra hallucinated content. When there is no relevant information in the search results, please do not answer extra information and answer with "No relevant information". Please be detailed. For your reference, the current location is {current_location} and the current time is {current_time}. Query: {query} [/INST]""" SUMMARY_MODEL_GENERATION_KWARGS = { "max_new_tokens": 1000, "do_sample": False, "temperature": 0.001, "return_full_text": False, "stream": True, } EXAMPLE_QUERIES = { "Discover Any Locale!": "I want to get the best restaurant in New York and get the reviews", "Cross-Border Insights": "Can you compare some of the best places to eat in Paris and New York and tell me their ratings?", "Re-Discover YOUR Neighborhood": "What are some good tourist areas near me and what are folks telling about some of them?", "Tailored Recommendations": "I need a list of the top-rated sushi places in San Francisco, sorted by price", "Compare Feedback": "Can you get me reviews for So Gong Dong Tofu house and Siam Thai Cuisine in San Jose and compare them specifically regarding how tasty the food is? Summarize the answer. Please print the review texts you reference.", "Deep Insights": "What's the nearest I need to walk to get some food near Stanford University?", } INTRO_TEXT = """ # Google Places API Copilot Demo, Driven by NexusRaven-V2 13B This demo presents a natural language interface to the Google Places API, showcasing Raven's capability to enable copilots and agents to use software tools. Raven transforms your plain English queries into function calls to your APIs. Type in your query and lets explore wonderful places and recommendations through Raven and the Places API! πŸ—ΊοΈ Google Places API searches for places of interest and returns information regarding location, reviews, and recommendations. πŸ¦β€β¬› NexusRaven-V2 13B, our function calling model, will execute the necessary API calls in the backend to get the information you need! ### Examples """ CSS = """ footer { visibility: hidden; } .inner-large-font { --text-md: 16px; font-size: 20; } :root { --text-sm: 18px; --input-text-size: 18px; } .dark { --text-sm: 18px; --input-text-size: 18px; } """ HEADER_HTML = """

Nexusflow

""" # Inputs must be encoded via urllib.parse.quote GMAPS_EMBED_HTML_TEMPLATE = """