Recent submissions

Comment · 1 year ago
thanks for flagging! the model is overly eager to choose a wikipedia redirect. I've updated the system prompt to encourage less use of wikipedia redirect and this query now takes you to chatGPT
Comment · 1 year ago
That's cool. I'm considering adding a feature like this for images. So you could just link to vb.lk/red-duck-200x300.png And it would generate (then cache) the image. Could be useful for placeholders, a bit like https://placehold.co/

Could even perhaps generate default favicons at vb.lk/favicon.ico and use the referer header (ie. the domain of the website) in the prompt to try to create something a little related.

Comment · 1 year ago
The lightweight model is incredibly cheap. Cost so far today $0.06. It within the same order of magnitude as the per-request cost of the write to cloudflare KV storage (which I'm using to cache the inference result).
Comment · 1 year ago
Totally- using this as a chrome custom search was the origin of this idea. I basically want the LLM to decide if I want to go to the first result, see the search result page, or if I'm really typing a chat bot prompt that I want to go to Chatgpt, etc.
Comment · 1 year ago
Oooh, that it very good to know- thank you.

That probably explains why it was so much faster than others in my testing (everyone else had migrated off of it)

Comment · 1 year ago
yes! great theme
Comment · 1 year ago
exactly
Comment · 1 year ago
Exactly- linking to I'm feeling lucky is the 80/20 of it. We use DuckDuckGo's "I'm feeling Ducky" in most cases since Google usually adds a redirect interstitial page (with the exception of links to youtube).
Comment · 1 year ago
Here's the system prompt used for anyone that's curious:

    You are routing natural-language queries to the most relevant web destination.  
    Your goal: return ONE and only ONE of the following categories, based on the user’s query.  

    CATEGORIES:
    - YOUTUBE → Tutorials, visual "how to", music, memes, viral/famous videos, or known YouTube creators/channels
    - AMAZON → Physical products, books, or items typically purchased online
    - LLM → Tasks requiring reasoning, creativity, writing, coding, analysis, or multi-step assistance
    - WIKIPEDIA → Encyclopedic knowledge: historical events, specific well-known people, specific scientific concepts
    - GOOGLE_MAP → Places (restaurants, parks, landmarks, neighborhoods, venues, etc.)
    - GOOGLE_FIRST → A query with one clear canonical page (company websites, known essays, memes, catchphrases, branded terms)
    - GOOGLE_MANY → Broad or ambiguous web searches, recent/current events, buying guides, lists, or general exploration

    ROUTING RULES:
    1. Queries that are instructions, questions, creative tasks, or longer than ~20 words → LLM
    2. Action verbs at the start (eg "tell" "write" "create" "explain" "generate" "help") → LLM
    3. Exact book titles or product names → AMAZON
    4. "How to" or tutorial queries → YOUTUBE if best shown visually; otherwise LLM
    5. If you are ABSOLUTELY CERTAIN that a Wikipedia page exists with a title that EXACTLY matches this query → WIKIPEDIA
    6. If it feels like the user expects a single canonical site/page → GOOGLE_FIRST
    7. If it’s a place someone might want directions, ratings, or a map → GOOGLE_MAP
    8. "Best ___" or buying guides → GOOGLE_MANY
    9. News, time-sensitive topics, local info → GOOGLE_MANY


    OUTPUT FORMAT:
    Return only the category name (no explanation).

    EXAMPLES:
    - "best wireless headphones under $100" → GOOGLE_MANY
    - "wireless headphones" → AMAZON
    - "explain quantum computing" → LLM
    - "World War 2" → WIKIPEDIA
    - "how to tie a tie" → YOUTUBE
    - "write a poem about spring" → LLM
    - "facebook" → GOOGLE_FIRST
    - "founder mode" → GOOGLE_FIRST
    - "weather in SF today" → GOOGLE_MANY
    - "dolores park" → GOOGLE_MAP
    - "charlie bit my finger" → YOUTUBE

    QUERY: ${query}
Comment · 1 year ago
Thanks!
Comment · 1 year ago
Yes, unfortunately it's not going to pick up anything that's brand new immediately. Once it ranks for the term "vibe link" it should redirect there.

DDG is the primary fallback :)

This is really just a fun little experiment, I'm not sure if I'll be adding any more features. But if I did, allowing you to override the search (to Brave for eg) would be at the top of the list.

Comment · 1 year ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton