Codebases are uniquely hard to search semantically
greptile.com·39w
Preview
Report Post

I’m Soohoon, one of the co-founders of Greptile. We’re building AI that understands codebases, which you can query using an API. To do this, we have to, depending on the task, provide an LLM with snippets from the codebase, ideally the fewest number of snippets that give it sufficient information to respond to the query.

Semantic search illustration

We found out that this problem is harder than it looks. Before we get into all the ways we tried to make codebase semantic search work, it’s interesting to see why it’s different from semantically searching a book.

Semantically searching a book

First, we index the corpus we are trying to search over:

  1. S…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help