simonwillisonblog VS pg_search

Compare simonwillisonblog vs pg_search and see what are their differences.

pg_search

pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search (by Casecommons)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
simonwillisonblog pg_search
28 7
159 1,229
- 1.9%
8.2 6.8
about 8 hours ago 4 months ago
JavaScript Ruby
Apache License 2.0 MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

simonwillisonblog

Posts with mentions or reviews of simonwillisonblog. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-09.
  • Sandboxing Python with Win32 App Isolation
    1 project | news.ycombinator.com | 14 Mar 2024
  • AI for Web Devs: Addressing Bugs, Security, & Reliability
    1 project | dev.to | 31 Jan 2024
    Simon Willison has pointed out several examples of prompt injection attacks and why it may never be a solved problem:
  • Where Have All the Websites Gone?
    3 projects | news.ycombinator.com | 9 Jan 2024
    I want more people to have link blogs.

    I have one in the sidebar of https://simonwillison.net/ which I've been running since November 2003. You can search through all 6,836 links here: https://simonwillison.net/search/?type=blogmark

    I can post things to it with a bookmarklet. It has an Atom feed.

    It's such a low-friction way of publishing. A lot of https://daringfireball.net works like this too. I also like https://waxy.org/ and https://kottke.org/ for this.

    I'd love to see more of these.

  • Ask HN: Is it feasible to train my own LLM?
    3 projects | news.ycombinator.com | 2 Jan 2024
  • Moving Away from Substack
    1 project | news.ycombinator.com | 16 Nov 2023
    My approach is to publish to my own blog at https://simonwillison.net and then copy and paste content from that into a Substack newsletter at https://simonw.substack.com a few times a month.

    It's been working really well.

    Substack don't have an API, but they do support copy and paste - so I built myself a tool that assembles my blog content into rich text I can copy and paste straight into the Substack editor.

    I wrote about how that works here: https://simonwillison.net/2023/Apr/4/substack-observable/

  • Building a Blog in Django
    12 projects | news.ycombinator.com | 12 Sep 2023
    Hah, yeah securing something like WordPress can be a challenge, especially if you're running a bunch of plugins.

    My blog is a pretty straight-forward Django setup without many other dependencies, so it's a lot less of an attack surface: https://github.com/simonw/simonwillisonblog

  • Show HN: Superfunctions – AI prompt templates as an API
    1 project | news.ycombinator.com | 20 Aug 2023
    That specific prompt is just an example and it's pretty bad, it was the shortest and simplest prompt I could come up with that would be easily understood.

    You can set response content-types (text, html, json, etc...). If you use json it will get pretty good results because I have some is some logic to attempt to pick out json or json5 objects from the text output. I dont yet have logic to support json arrays, but I'm hoping to add that soon.

    But still client side validation is needed for applications with untrusted input. I dont attempt to solve prompt injection. I saw a lot of interesting posts on this topic from this blog https://simonwillison.net/. I need to find sometime to read more about it.

    Try this one instead, it should be better

  • Stopping at 90%
    2 projects | news.ycombinator.com | 2 Aug 2023
    I've started to consider "commit to writing about it" as the price I have to pay for giving into the lure of another project. It's one of the main reasons I publish so much content on https://simonwillison.net/ and https://til.simonwillison.net

    A project with a published write-up unlocks so much more value than one which you complete without giving others a chance of understanding what you built.

    I've maintained internal blogs (sometimes just a Slack channel or Confluence area) at previous employers for this purpose too.

  • Stanford A.I. Courses
    7 projects | news.ycombinator.com | 2 Jul 2023
    I think you are asking specifically about practical LLM engineering and not the underlying science.

    Honestly this is all moving so fast you can do well by reading the news, following a few reddits/substacks, and skimming the prompt engineering papers as they come out every week (!).

    https://www.latent.space/p/ai-engineer provides an early manifesto for this nascent layer of the stack.

    Zvi writes a good roundup (though he is concerned mostly with alignment so skip if you don’t like that angle): https://thezvi.substack.com/p/ai-18-the-great-debate-debates

    Simon W has some good writeups too: https://simonwillison.net/

    I strongly recommend playing with the OpenAI APIs and working with langchain in a Colab notebook to get a feel for how these all fit together. Also, the tools here are incredibly simple and easy to understand (very new) so looking at, say, https://github.com/minimaxir/simpleaichat/tree/main/simpleai... or https://github.com/smol-ai/developer and digging in to the prompts, what goes in system vs assistant roles, how you gourde the LLM, etc.

  • Seeking Your Top Recommendations for Resources on ChatGPT and Generative AI
    3 projects | /r/ChatGPTPro | 28 Jun 2023
    Simon Willison's Weblog

pg_search

Posts with mentions or reviews of pg_search. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-16.
  • The Ultimate Search for Rails - Episode 1
    8 projects | dev.to | 16 Jan 2023
    On the backend, we'll need a few tools. Apart from the classics (ActiveRecord scopes and the pg_search gem), you’ll see how the (yet officially unreleased but production-tested) all_futures gem, built by SR authors, will act as an ideal ephemeral object to temporarily store our filter params and host our search logic. Finally, we’ll use pagy for pagination duties.
  • Application Search Feature more that ActiveRecord;
    2 projects | /r/rails | 15 May 2022
    You can take a look at pg_search if you’re using Postgres
  • How to build a search engine with Ruby on Rails
    1 project | /r/ruby | 11 Sep 2021
    This was a really good read, thanks. I've got into the habit of jumping straight to PgSearch but could definitely apply this approach to some existing projects.
  • Instant search with Rails 6 and Hotwire
    5 projects | dev.to | 6 Aug 2021
    Cleaner, more performant database queries: Definitely don't just leave your query sitting in the controller! For production use cases, you'd want to consider an option like pg_search
  • Postgres Full-Text Search: A Search Engine in a Database
    10 projects | news.ycombinator.com | 27 Jul 2021
    If you are using Rails with Postgres you can use pg_search gem to build the named scopes to take advantage of full text search.

    https://github.com/Casecommons/pg_search

  • Tips for optimizing pg_search?
    2 projects | /r/rails | 14 Apr 2021
    Hey guys. Looking to release an app for mobile that will be using a rails API. The app will heavily rely on search. I know the go-to is to use elasticsearch but wanted to see if there was enough user demand for the MVP before shelling out $50/mo for the heroku add on. In the mean time I've been using pg_search. From the eye test it's performing okay but will be adding a table that houses over 350K records. With this in mind I was wondering if you all had any tips for increasing the overall speed for search from the model and controller level. Also should note that I'm open to any other free search gems if they deem bette fit.
  • Rails Search Bar
    2 projects | dev.to | 18 Oct 2020
    There are two basic search configurations with pg_search, a Single Model search scope or a multi Model configuration. In my case I am only using the Single Model configuration, but you can read more about multi-search in the documentation.

What are some alternatives?

When comparing simonwillisonblog and pg_search you can also consider the following projects:

pg_cjk_parser - Postgres CJK Parser pg_cjk_parser is a fts (full text search) parser derived from the default parser in PostgreSQL 11. When a postgres database uses utf-8 encoding, this parser supports all the features of the default parser while splitting CJK (Chinese, Japanese, Korean) characters into 2-gram tokens. If the database's encoding is not utf-8, the parser behaves just like the default parser.

ransack - Object-based searching.

pgvector - Open-source vector similarity search for Postgres

Elasticsearch Rails - Elasticsearch integrations for ActiveModel/Record and Ruby on Rails

awesome-personal-blogs - A delightful list of personal tech blogs

textacular - Textacular exposes full text search capabilities from PostgreSQL, and allows you to declare full text indexes. Textacular will extend ActiveRecord with named_scope methods making searching easy and fun!

tsv-utils - eBay's TSV Utilities: Command line tools for large, tabular data files. Filtering, statistics, sampling, joins and more.

elasticsearch-ruby - Ruby integrations for Elasticsearch

awesome-ml - Curated list of useful LLM / Analytics / Datascience resources

Searchkick - Intelligent search made easy

knowledge - Everything I know

MeiliSearch - A lightning-fast search API that fits effortlessly into your apps, websites, and workflow