Git Product home page Git Product logo

docc-gpt's People

Contributors

gonzalonunez avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docc-gpt's Issues

DocC-GPT ate my code!

I ran DocC-GPT on a swift package I have called Animal Years. It is a very simple class with two methods. After running DocC-GPT on my package, it did add documentation text comments to the class and and the first method, but it clipped off the end of my first method, and completely deleted my second method.

Swift Syntax

Explore using Swift Syntax to document smaller units of code at a time instead of entire files. This would get us around some token limit issues, but I worry we may lose some of the contextual benefits of passing in entire files.

https://github.com/apple/swift-syntax

Error: keyNotFound(CodingKeys(stringValue: "choices", intValue: nil)

I just went to try this with the Swift Package Index Server repo and it throws the following error after processing what seems to be the last file in the list:

โœ“ Finished documenting BuildIndex+Model.swift
โœ“ Finished documenting BuildShow+View.swift
โœ“ Finished documenting BuildShow+Model.swift
โœ“ Finished documenting PackageResult+ModelSupport.swift
โœ“ Finished documenting PackageShow+StructuredDataSchema.swift
โœ“ Finished documenting PackageShow+Types.swift
โœ“ Finished documenting routes.swift
Error: keyNotFound(CodingKeys(stringValue: "choices", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"choices\", intValue: nil) (\"choices\").", underlyingError: nil))

I believe routes.swift is the last one, judging by the logs earlier in the list

แ … Documenting PackageShow+StructuredDataSchema.swift...
แ … Documenting PackageShow+Types.swift...
แ … Documenting routes.swift...
โœ“ Finished documenting UpdateRecentPackages1.swift
โœ“ Finished documenting UpdateVersionAddUrl.swift
โœ“ Finished documenting UpdateVersionAddPublisedAtReleaseNotes.swift
โœ“ Finished documenting CreateTarget.swift

I wonder if this is due to API metering or something? I'm using the free plan at the moment, while playing around.

Might try this in a smaller project but if you've got a pointer, that'd be great :)

Fine-tuning

If the GPT-4 32k context window still leaves us wanting with a few-shot prompt, consider fine-tuning a base model with examples of well-documented Swift code.

https://platform.openai.com/

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.