Live data from Hacker News

Launch HN: Bloop (YC S21) – Code Search with GPT-4

news.ycombinator.com

41–50 of 131 posts

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#41
post #35

Earlier quoted context omitted.

I'm curious why you're using your key? I want to try this out on my work codebase, but for security reasons it would be better to use my own key, since I don't know if OpenAI might decide to share API search history with whoever owns the key.

It wouldn’t be a free version if you have to bring your own key. I agree an option would be a good idea.

I would love the option to be able to bring your own key. It won't be free, but I share the same concern but I am happy to pay for that.

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#42
post #37

I have to ask the obvious question, with GPT4 able to write code to solve the problem itself, why would I bother searching for existing code?

GPT doesn't have access to your whole codebase so it can't help much in real world use cases.

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#43

"Precise code navigation in 10+ languages helps you move quickly through refs and defs" I can't find any mention of which languages are supported - can anyone point me in the right direction?

We currently support Go, JS/TS, JSX/TSX, Python, Rust, C#, Java, C/C++

It would be nice to have this displayed somewhere prominently. I tried adding a lisp project and it sort of just spun around indefinitely until I clicked back.

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#44
post #19

From the Codeium ( https://www.codeium.com ) team here! Exciting to see more teams take on the code search problem - modern pure regex definitely is a suboptimal solution. Just to objectively highlight some of the similarities and differences between Bloop and Codeium Search (Codeium also provides Autocomplete) to a user: - Both are free for individuals - Both use a mix of AI and regex - Bloop has both free local and…

[deleted]

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#45

"Precise code navigation in 10+ languages helps you move quickly through refs and defs" I can't find any mention of which languages are supported - can anyone point me in the right direction?

We currently support Go, JS/TS, JSX/TSX, Python, Rust, C#, Java, C/C++

This is a very competent set of supported languages for a startup. I think it would be stronger marketing to just list them out, and to omit the repetition of JSX/JS, TSX/TS.

If I see "10+ languages" but it's actually 10, no wait, actually 8, then I'm just getting progressively let down.

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#46
I don’t understand these new saas that rely on GPT. It surely is my lack of understanding, but since the interface to GPT is mainly text: why any company would pay for N different GPT saas (e.g., one for searching for code, another for searching for documentation on confluence, another for allowing your business analysts with their queries, etc.)?

Wouldn’t it make more sense for any company to have only ONE interface to use GPT that is wired with some (or all) parts of the company digital assets? Text is already flexible enough to allow such a universal interface.

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#47

Very interesting. I want you to know that > ‘Private’ here means that no code is shared with us or OpenAI at index time, and when a search is made only relevant code snippets are shared to generate the response. (This is more or less the same data usage as Copilot). is the reason I went from "ha, cool tool" to "okay, let me go download it". Quite surprised that you don't actually have a login wall to download. Missin…

at the cost of fewer downloads

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#48

"Precise code navigation in 10+ languages helps you move quickly through refs and defs" I can't find any mention of which languages are supported - can anyone point me in the right direction?

I tried to implement this using OpenAI's embeddings then using cosign similarity between produces vectors instead of the vector DB ( as shown in OpenAI's example code here ). I do the same thing where I take the highest ranking code snippets (vectors) and include them in a prompt to ChatGPT with an original prompt. My code is a mess since I just hacked it together after a long day of work but its a small file. Like 100 lines.

I used TreeSitter which I thought was pretty awesome though because it allows for parsing a TON of different languages. I had to parse the languages to create the different code snippet strings. I don't want to create a code snippet of half a function for example..

So TreeSitter parses the code into an AST and I send each different AST node to OpenAI to get the vector (I optimized this so multiple nodes of the same AST type are combined). Send the prompt to OpenAI to get a vector. Find the most similar code snippets to the prompt and include them at the top of a prompt to ChatGPT.

This is the same idea right? If anyones interested it can be found here: https://bbarrows.com/posts/using-embeddings-ada-and-chatgpt-...

https://github.com/bebrws/openai-search-codebase-and-chat-ab...

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#49
post #46

I don’t understand these new saas that rely on GPT. It surely is my lack of understanding, but since the interface to GPT is mainly text: why any company would pay for N different GPT saas (e.g., one for searching for code, another for searching for documentation on confluence, another for allowing your business analysts with their queries, etc.)? Wouldn’t it make more sense for any company to have only ONE interface…

The point is that the interface to Bloop (or whatever 3rd party SaaS product) is just plain text. In programming parlance I would call this a facade [1] on top of GPT-4. The benefit is that you, the end user, can just continue typing things like "Where do we create our database pool?" in a search box, but under the covers Bloop can use GPT-4, but then eventually upgrade to GPT-5, GPT-6, or some other much better currently-super secret competitor version.

1. https://en.wikipedia.org/wiki/Facade_pattern

Re: Launch HN: Bloop (YC S21) – Code Search with GPT-4

#50
post #46

I don’t understand these new saas that rely on GPT. It surely is my lack of understanding, but since the interface to GPT is mainly text: why any company would pay for N different GPT saas (e.g., one for searching for code, another for searching for documentation on confluence, another for allowing your business analysts with their queries, etc.)? Wouldn’t it make more sense for any company to have only ONE interface…

I would like also to understand the amount of startups funded in 2021 (or around) that relies on GPT-{n} now. They pivoted or found out that they solution was much easier with GPT-{n}?

Also, why as a customer would care if you use GPT or something else? It is because it is a buzzword?

Post reply on HN