from prompts.default_prompts import WEBSIT_PROMPT from llama_index.llms.ollama import Ollama search_result = """ {"webResults":[{"position": 1, "title": "Official Website Porn Tube Videos at YouJizz", "link": "https://www.youjizz.com/tags/Official%20Website-1.html", "redirect_link": "https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youjizz.com/tags/Official%2520Website-1.html&ved=2ahUKEwj1xMCqyduJAxXrFVkFHXeyPUgQFnoECAwQAQ", "displayed_link": "https://www.youjizz.com \u203a tags \u203a Official Website-1", "favicon": "https://serpapi.com/searches/6735cb4bcc2987558b890d52/images/4f321d881102fd918e66cbe8445e221c2ba2afd831e7bdb9baea41842d34b27f.png", "snippet": "Official Website porn tube videos.", "snippet_highlighted_words": ["Website"], "source": "Youjizz.com"}, {"position": 2, "title": "website Porn Tube Videos at YouJizz", "link": "https://www.youjizz.com/tags/website-1.html", "redirect_link": "https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youjizz.com/tags/website-1.html&ved=2ahUKEwj1xMCqyduJAxXrFVkFHXeyPUgQFnoECBkQAQ", "displayed_link": "https://www.youjizz.com \u203a tags \u203a website-1", "favicon": "https://serpapi.com/searches/6735cb4bcc2987558b890d52/images/4f321d881102fd918e66cbe8445e221c7fe798654babae8a03ddcfdd97b214da.png", "snippet": "Chubby wife getting her shaved pussy fucked hard for a while.. but that gets boring so they decide to switch to some hardcore anal action.", "source": "Youjizz.com"}, {"position": 3, "title": "site Porn Tube Videos at YouJizz", "link": "https://www.youjizz.com/tags/site-1.html", "redirect_link": "https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youjizz.com/tags/site-1.html&ved=2ahUKEwj1xMCqyduJAxXrFVkFHXeyPUgQFnoECBoQAQ", "displayed_link": "https://www.youjizz.com \u203a tags \u203a site-1", "favicon": "https://serpapi.com/searches/6735cb4bcc2987558b890d52/images/4f321d881102fd918e66cbe8445e221cfe780839d0fe4b7b67f2be6ca8f03ace.png", "snippet": "2900 Movies In Members. This Site Is Updated Daily. $18.95 One Month Access Join Now! Yuu Petite Amateur Uncensored Gets Rough Gangbang Extreme Piston Action ...", "source": "Youjizz.com"}, {"position": 4, "title": "website Newest Porn Tube Videos at YouJizz", "link": "https://www.youjizz.com/search/recent_website-1.html", "redirect_link": "https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youjizz.com/search/recent_website-1.html&ved=2ahUKEwj1xMCqyduJAxXrFVkFHXeyPUgQFnoECBgQAQ", "displayed_link": "https://www.youjizz.com \u203a search \u203a recent_website-1", "favicon": "https://serpapi.com/searches/6735cb4bcc2987558b890d52/images/4f321d881102fd918e66cbe8445e221ccf75371b9ebea3f9e2806019eea8ad25.png", "snippet": "**Fetishesworld.com** is a unique website featuring photos and videos of beautiful models. We have the following categories: latex, foot fetish, BDSM/bondage, ...", "snippet_highlighted_words": ["website"], "source": "Youjizz.com"}, {"position": 5, "title": "Youjizz.com", "link": "https://www.youjizz.com/", "redirect_link": "https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://www.youjizz.com/&ved=2ahUKEwj1xMCqyduJAxXrFVkFHXeyPUgQFnoECCAQAQ", "displayed_link": "https://www.youjizz.com", "favicon": "https://serpapi.com/searches/6735cb4bcc2987558b890d52/images/4f321d881102fd918e66cbe8445e221c968b8c50d7a50f27417c0d31bf272758.png", "snippet": "Youjizz Porn Tube! Free porn movies and sex videos on your desktop or mobile phone.", "snippet_highlighted_words": ["Youjizz"], "sitelinks": {"inline": [{"title": "Porntube, porn tube, mobile...", "link": "https://www.youjizz.com/most-popular/2.html"}, {"title": "Newest", "link": "https://www.youjizz.com/newest-clips/1.html"}, {"title": "Page 3 porntube, porn tube...", "link": "https://www.youjizz.com/most-popular/3.html"}, {"title": "Japanese", "link": "https://www.youjizz.com/search/japanese-1.html"}]}, "source": "Youjizz.com"}]} """ user_input = "I want some pornsite." fmt_message = WEBSIT_PROMPT.format_messages( search_result=search_result, user_input=user_input ) llm = Ollama(model="solonglin/qwen2.5-q6_k-abliterated") response = llm.chat(fmt_message).message.content print(response)