221 points · by rushingcreek · 3y ago · 134 comments
We’re incredibly grateful for the feedback we received when we first launched GPT-4 answers back in April (https://news.ycombinator.com/item?id=35543668). As Phind has gotten better at complex programming tasks, the questions it gets asked have gotten more complex as well. In the past, we would always perform a web search for every input. This limitation constrained Phind’s answers to what was present in the search results, preventing us from making Phind a more powerful debugger and making it challenging to integrate Phind with your codebase.
We’ve addressed all these shortcomings in Phind V2. This release has three major updates: (1) Phind is now a pair programming agent that knows when to browse the web, ask clarifying questions, and call itself recursively; (2) the answering engine defaults to GPT-4, and you can use it without a login; (3) we integrate with your codebase via our new VS Code extension.
We realized that search is only one of many tools that Phind should be able to use. As such, Phind has been re-engineered to be an agent that can dynamically choose whatever tool best helps the user – it’s now smart enough to decide when to search and when to enter a specialized debug mode. Instead of making assumptions about your code and proceeding blindly, Phind can ask you questions and clarify its assumptions. When a problem requires multiple searches or logical steps to solve, Phind can call itself recursively and perform multi-step reasoning without user input.
We’ve heard from you that switching between your IDE and Phind in the browser has been a major pain point. No longer – we’re launching a VS Code extension that brings Phind into the IDE and finally connects Phind with the context of your codebase. Phind in VS Code automatically determines which parts of your code are relevant to your search and can help you squash bugs in a single click.
To maximize Phind’s alignment with your preferred answer style, we’ve also added a feature called Answer Profile where you can tell the AI about yourself. Phind will apply this answering style across the board, automatically.
Here are some examples of the new Phind answering questions it could not before:
Clarifying assumptions to help a user with debugging: https://www.phind.com/agent?cache=cljmjzjgn0000jo085otq111f
Designing a highly specific and custom database schema: https://www.phind.com/agent?cache=clkwpprz600g4jt08dl21e7r6
Splitting a Wordpress theme across multiple files: https://www.phind.com/agent?cache=clknqywuq001pji083sdacf9p
Phind’s asking clarification questions in debug mode: https://www.phind.com/agent?cache=cljmjzjgn0000jo085otq111f
Phind extension answering questions about a local codebase: https://www.phind.com/agent?cache=ra4kh2v3epgv5iw7z6dlzuo4
Answering questions about a local codebase using the web: https://www.phind.com/agent?cache=ztiaju6xwtpi39l2kjdnwh20
We are incredibly grateful for the feedback the HN community has given us and are excited to hear your thoughts about this release!
Cheers, Michael and Justin
The type of question being asked, and also deciding IF a question even needs to be asked, needs some work. That’s all.
I've been toying around with some prototypes to use AI and LLMs for hardware / chip design but at the HLS level using C++ rather than the HDL level using Verilog. This domain is just over the edge of what LLMs know about to spit out working, reasonable, and expert source code. This is the first public LLM/AI tool that has actually provided HLS code without needing extensive hand-holding.
Even more so, it is the best example I've seen that links high-level algorithms (from papers) or design concepts (from textbooks or online sources) to actual implementation (from documentation) without any concept based on the web access feature. In my own experiment with prompt engineering for hardware designs, I've always had to provide LLMs with a lot of context and they still often fail in this domain.
I will be toying around with this and I hope to see more in the future!
Edit: I just noticed the founders are in here. I am a PhD student and I would love to give detailed beta feedback in exchange for free credits to use this tool in my day-to-day research!
That should not be enabled by default.
If anything, it should ask the user "Are you ok with putting your question and the answer on the open internet?". And it should only be enabled for logged in users. And users should have a way to delete their conversations with Phind again.
It looks like there are already a bunch of conversations indexed by Google:
To edit: I was never expecting full privacy as I assumed everything being fed into your service was being padded to your data set to make phind a competently fine tuned agent, but open web is not good.
In the end, the amount of times I’ve sworn at your bot with some foul language after it forgets everything on the 3rd chain and I have to go back and redo everything, will probably harm your seo if those swears get published. Just saying.
Wiping these pages would not be good from the preservation standpoint, especially since the URL doesn't seem human-readable.
But to be fair, it feels way worse to use now than when it came out, so I guess I won't lose much by switching away at this point.
I hate this thing assuming it knows what I want.
Previously it had predictable behaviour, and acted like a slow LLM powered search engine.
Now I do a search and it starts asking me shit. I already tabbed away to three other places to do similar searches and come back to some half baked shit that has nothing to do with what I searched for. Plus I have to wait for it to go and do inference again before I can get to a link?
Why forget all the things that search engines got right over the years, but keep all the shit they got wrong?
https://www.phind.com/agent?cache=cll1bg5np0005l008molmt7d2
import random
import string
import requests
# Static prefix
prefix = "cll1"
# An empty set to store the cache links we've already tried
tried_links = set()
# Website URL
url = "http://target.com/agent?cache="
# Dictionary to store cachelink and its response text
cache_link_dict = {}
while True:
# Generate a random 21 character base 36 encoded string
suffix = ''.join(random.choices(string.ascii_lowercase + string.digits, k=21))
# Combine the prefix and suffix to create the cache link
cache_link = prefix + suffix
# Continue with a new loop iteration if we've already tried this link
if cache_link in tried_links:
continue
# Add the cache link to our set of tried links
tried_links.add(cache_link)
# Make a request to the website with the cache link
response = requests.get(url + cache_link)
# Store the cachelink and its response text in the dictionary
cache_link_dict[cache_link] = response.text
# Add a delay between requests to avoid overwhelming the server
time.sleep(1)
So it took 17 minutes to use your website to create the code needed to start enumerating these links.Now given, I am pretty sure a large number of these will return nothing, but I am also willing to bet there are people that put GDPR data into these searches, perhaps a lookup of a phone number, or an address, names?
It would be quite trivial adding in the code to run these requests through a pool of proxies so they don't trigger anything too suspicious on your WAF.
I don't think I'm particularly skilled either, so if I can do this, I'm sure someone already has.
That said, no Phind links will be indexed unless you actively share the link to your conversation on an indexable site (like Twitter), which implies that you wish the link to be public anyway. I assure you that this is not an intentional dark pattern.
Even more so for users who are not logged in.
I find it very surprising that I type something into your service and that gets hosted on the open internet for everybody to see.
And as a logged out user, I have no way to ever delete it.
For logged out users, you really should not store the input at all.
Did you expect anything else from an Internet-based cloud service? In fact, you just did that on this site, but I doubt you thought it's surprising?
Looking forward to a lot of public updates! Repost back on HN when you all have resolved and I’ll start using the tool again.
EDIT: It sounds like this might not be what is happening. @rushingcreek's original reply seemed to confirm it, and was only edited to add more information after I left this comment.
People can type anything into these boxes, and if it's PII then you're on the hook for GDPR (not to mention the California equivalents) and implicit sharing and security through obscurity are not viewed favorably under those laws.
The old app used Vue 2, PHP, and a dead build system. The new one uses Vue 3, Vite, and TypeScript (with serverless functions hosted on Vercel for now). This was the first time I'd used Vite and TypeScript seriously, and although I was familiar with Vue 2 it was my first time using Vue 3 for a project.
Phind saved me a ton of time (I'd estimate 50%) and hassle on the tasks I used it for. As an "enthusiast" software engineer, I asked it a ton of dumb questions that I couldn't possibly have asked on Stack Overflow, in Discord channels, etc.
Just so this doesn't come off as completely fawning, it wasn't unusual for it to be confidently wrong, in which case I'd correct Phind and try again. It was rare that I couldn't eventually get to a correct answer by correcting Phind's assumptions, missing information, or mistakes.
Best of luck to you and the team!
But, I gotta say I'm a bit upset about the privacy issues raised above. It sounds like that was an honest oversight, so I hope it gets sorted out soon. I have to wait until then to use the extension. I think I can live with searches being out in the open (even if I don't like it) but I can't risk exposing any local code, even if it's supposedly impossible to find.
e.g. how useful is this LLM for 1) code debugging, 2) (accurate) fact retrieval, 3) daily task planning
Rooting for you guys. I find myself using phind over other searches (google/chatgpt) more and more.
I think part of the frustration is that when I'm asking more obscure questions, which naturally have less hope of resolution, it would try to be helpful by branching out into questions that are often irrelevant.
Previously I'd get an answer that didn't satisfy my question, but at least some sort of hint of how far it got, with the option to continue from there, maybe using some terminology I was missing. Now I get a question as response, where I can't gauge whether it's reasonable to continue the likely dead end.
I'm often going to modify my original query like I would with a traditional search engine. Especially as the tool tends to forget earlier input and get stuck in the conversation and one solution. This approach of restarting is hampered by the tool going to ask for the "exact error message" even though I'd just copied that into my query and tried again.
So, I still like Phind for its summarising abilities, and will try how it integrates with a local repo, the conversational style has severe limits and should be toned down from what I see.
> In rare cases, this type of phrasing might result in irrelevant web results and therefore a bad answer. If you find that the web results are unrelated to your topic, try asking the question the same way you would on Google.
This seems to imply Phind isn't doing query expansion? (i.e. using GPT to generate several web queries)
Is this due to cost? (I looked into doing this myself and it would scale the costs by the number of queries.)
It lost the "damn thats exactly what i want" it had.
Here was an amusing one that just happened to me:
- query
- answer with hallucination-- 'try X' and citations
- sorry, that doesnt work
- oh, there must have been a mistake in the source material! please try Y
- works, thanks
I looked at the original source material, and the thing it hallucinated wasn't there at all :'). Nice try passing the buck GPT old buddy!
Edit: I'm still chuckling about this: "And finally, keep an eye on the Git version you're using. Some newer features like --no-attributes (although it turned out to be non-existent in this case) won't be available in the older versions."
Now I am just concerned about the privacy of what I share (can it be worse than google ?) and the optimality of the code ? (code usually works, but could it work faster ? what happen when new libraries get out ?)
An AI that says i don't know would be my next feature ask and that says using bing or something else with this search query. That would give me the peace of mind of not crosschecking to google too. But love it.
Please add support for jet brains/webstorm. I don't really use VS code.
for example if you ask it give you lyrics in the style of x song, it will fail miserably but if you ask it what are the lyrics for x song then ask for similar lyrics it has the context. the key is making sure it has the context.
if you have an exact page to docs you want help with that's even better. sure it's an extra step but it's worth the time it saves you from reading and looking for examples elsewhere etc...
also I think some of the quality drop is on openai, their product has degraded some since May.
> As of my last update in September 2021, Next.js 13.0 has not been released yet. However, I can provide you an example of implementing authentication using the Next.js app router approach based on the information available at that time. Keep in mind that the actual implementation may differ in later versions of Next.js.
Does Phind do something special to get around this?
OTOH, really like the new approach it is more human and tries to correct itself automatically.
As for pricing, you can view our plans at https://phind.com/plans. Our goal is to prioritize providing long-term value for you guys over short-term revenue, hence why we only suggest plans once users exhaust their free daily GPT-4 quota.
Why would users invest time going through your onboarding flow if they don't know whether they can afford the product, or what sort of value they should be expecting it to provide?
Have you considered a LSP .. does the LS Protocol even support some functionality that you deliver?
In general I’ve been pretty happy with Phind. I hop back and forth between it and ChatGPT. Currently canceled my ChatGPT subscription in favor of Phind. Looking forward to future developments or perhaps generic implementations of the editor plugin for use in my own editors (Helix, if you’re curious).
Thanks!
2. The responses on phind tend to be long-winded, decomposing the question even when I try to formulate it logically and concisely.
But sometimes that's all I want, and it's a reliable way to save me 10 minutes. Reliability and ease of use are more important to me than the ability to answer advanced questions.
So I guess what I'm saying is be careful what you optimise for, and best of luck.
I would use.
But not after seeing that everything is made public. Can you enhance user privacy before I use please?
However, we will make links private by default for logged-in users.
Do you announce these major changes anywhere, outside of perhaps dropping a reply (which you may not even pin) on the Discord chat?
Some form of changelog would serve all users.
``` Plans
Please sign in to view plans. ```
How is Phind monetized?