Settings

Theme

Engineering over AI

martinantos.com

17 points by inferense a year ago · 18 comments

Reader

jokethrowaway a year ago

Very true!

I do RAG for other types of structured data and this is fundamental to get relevant objects in your context.

My approach for code would be to create a graph structure with relationships between the different codepaths and expose a retrieval api through tools/function calling so that the LLM can query the codebase structure on top of doing semantic embedding similarity search and text similarity search.

You could also add a graph search for related elements for each element returned by the other search pipelines to increase the chance of having all the pieces of the puzzle in the context before using the LLM to solve the problem.

The other crucial thing to do would be to inspect dependencies (and their types, when possible) and maybe download documentation to offer tips that are accurate and not hallucinated.

Nowadays I get hallucinations for code generation as soon as things get hard, making LLM coding useful only for trivial code writing.

Analysing the code structure and dependencies would require plenty of work for each specific language, so it won't be a easy win like "just throwing RAG" - which is what the current players are doing to raise money - with mediocre results.

davidt84 a year ago

I feel like I just read the introduction to an interesting blog post.

  • rising-sky a year ago

    At the bottom of the page, in the footer, there's this text:

    > Half-baked ideas for a better future.

    Maybe the article is intentionally supposed to read like that?

    • tjr a year ago

      https://philip.greenspun.com/writing/changed-by-web-and-webl...

      What was missing from the 1990 Web? The original Web did not effectively support the one-paragraph idea. A reader who encountered a Web page containing only one paragraph would have been startled and wondered if the page had been left unfinished.

      • thfuran a year ago

        How startling would that really be? Seems like half the internet claimed to be under construction.

        • ben_w a year ago

          If you had a dialup modem, like mine, that only ever got 1-2 kilobytes per second despite being theoretically 56k, pages did sometimes stop loading in the middle without any

          • throwup238 a year ago

            > If you had a dialup modem, like mine, that only ever got 1-2 kilobytes per second despite being theoretically 56k, pages did sometimes stop loading in the middle without any [cuts off]

            Are you still using it?

      • myhf a year ago

        But this isn't a one-paragraph idea, it's 10 paragraphs suggesting that there will be an idea, then one paragraph suggesting that there has been an idea.

    • carlmr a year ago

      Maybe let AI finish the article.

airstrike a year ago

I feel like this is both very right but also the million dollar question?

I don't think others necessarily quote-unquote "lost focus" on this problem, but it's not exactly easy to solve correctly, so in the meantime it's easier to create something with the next best approximation.

downWidOutaFite a year ago

I think this is the idea behind sourcegraph's cody, trying to take their expertise in understanding codebases and ASTs and using it to guide the llm

dimgl a year ago

Where's the rest of the article?

katdork a year ago

Typo of "codebase" as codebae: This is also the reason why the higher context window doesn’t matter. Even if you could feed your whole codebase into an LLM, you’d still face the same problem of missing the structural relationships of the codebae.

ratedgene a year ago

You would need to have smaller agents negotiate on behalf of their functional units.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection