News for hackers. Stuff that matters.
Re:Show HN: GPT Repo Loader – load entire code repos into GP... by groestl on Friday March 17, 2023 @03:48AM (#35194395)
Maybe someone can correct me, but my understanding is that you would calculate the embeddings of code chunks, and the embedding of the prompt, and take those chunks that are most similar to the embedding of the prompt as context.

Edit: This, btw, is also the reason why I think that this here popped up on the hackernews frontpage a short while ago: https://github.com/pgvector/pgvector

Re:Show HN: GPT Repo Loader – load entire code repos into GP... by michaelmior on Friday March 17, 2023 @08:05AM (#35195931)
This sounds like a reasonable start. Eventually we need to get to the point where we can expose an API for models to request additional information on their own.
Re:Show HN: GPT Repo Loader – load entire code repos into GP... by samstave on Friday March 17, 2023 @11:10AM (#35198066)
Exactly, but this has some scary implications in the future - imagine when it is common pratice to allow AIs API access as a matter of course...

When giving a prompt, the prompt causes the crawling of many APIs to build the response - the power of such activity/features, will be scary power-to-authoratarian goals.

Imagine if the prompt is "Select all users who have political beliefs, posts, comments, links from APIs A, B, C, etc where sentiment appears to dissent from [party line]"

Re:Show HN: GPT Repo Loader – load entire code repos into GP... by groestl on Friday March 17, 2023 @12:16PM (#35199083)
Imagine that these prompts are not triggered by humans anymore, but by the AI invoking itself.

Sam Altman takes comfort in the thought that their AI does nothing without a human prompting it, so it has a human in the loop, as a circuit breaker if you will.

This assumption is rapidly becoming a mere hope, as right now probably hundreds of developers are working on systems which, when put into production and connected to other systems, might just come down to: the AI is calling itself, and giving itself orders.

Re:Show HN: GPT Repo Loader – load entire code repos into GP... by samstave on Friday March 17, 2023 @07:30PM (#35204286)
Imagine that you just out-did me on how dystopian this AI cyberpunk future could get.

Imagine I want you to shoot me.'

Imagine I Want [whatever]GPT to make a cyberpunk Anime based on such...