Code Monkey home page Code Monkey logo

Comments (5)

sudoaza avatar sudoaza commented on August 11, 2024 1

I've experimented manually with this and have gotten great results. Knowing what the called functions do help the model see the big picture and understand better the function. You could add the analysis for the called functions as a comment before it is called and then pass it whole to the model, without displaying it to the user.

from gepetto.

JusticeRage avatar JusticeRage commented on August 11, 2024

Hi! While this is a good idea on paper, I think that going into functions recursively could be a little dangerous, especially when you get into the STL and the like where the rabbit hole can turn out to be pretty deep. It would be easy to have OpenAI costs spiral out of control for users.
Maybe in the future I'll think of doing this and implement a max-depth setting or something like this.

from gepetto.

AntoineBlaud avatar AntoineBlaud commented on August 11, 2024

Re JusticeRage,
Yes you're right. The cost can also quickly rise. But I was talking about calls to tiny functions without calls inside.
So MaxDepth=1
By the way I think that you-re uploading twice the function if we want both comments and variables name.
Given that the price depends of the size of the input, maybe we can find a way to upload it only once ?

from gepetto.

JusticeRage avatar JusticeRage commented on August 11, 2024

Correct, because the comments added during the first request help davinci-003 provide better suggestions for variable names.

from gepetto.

JusticeRage avatar JusticeRage commented on August 11, 2024

This is definitely something I intend to look into in the near future.

from gepetto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.