I've been using GitHub code search a lot to get examples of how people use APIs or designing features. It's quite good.
I recently did this to figure out how to insert JSON into Sqlite's FTS5 https://github.com/brouberol/5esheets/pull/292
I didn't use AI because for these things because for some things (database design, constructing a grammar) you _really_ want to understand your code completely, and I don't want to deal with hallucinations.