HNHacker News
TopNewBestAskShowJobs

xfreestar

2 karma · joined January 9, 2023

submissionscomments
xfreestar··on Show HN: Semantic Search Engine for Garry Tan's YouTube Channel
Thanks, this cool to see RAG search applied to so many places. I've tried out Vectara Rag search but could not set up UI on local. It was easier to setup their Arguflow app in docker local https://github.com/arguflow/arguflow
xfreestar··on Spock Stack Svelte PostgreSQL OAuth Caddy SvelteKit
Svelte is elegantly simple to use and can build a full stack social media demo quickly. Are more developers using it for personal projects and when will it become more in demand in tech jobs?
xfreestar··on Alex Gulakov's Blog - JavaScript function to search like in Google
var search_term_is_found = base_text.match( new RegExp("(?=(.|[\r\n])" + search_term .match(/"([^"]+)"|[\w]+/gi) .join(")((.|[\?=r\n])") .replace(/\"/g,'')+")(.|[\r\n])+", "ig") )!=null

Built Using RegEx Negative Lookaheads

bar(?=bar) finds the 1st bar (“bar” which has “bar” after it)