Skip to content

[Feat]: Contextual Code Additions. #210

Open
@samyakkkk

Description

@samyakkkk

Is your feature request related to a problem?

FlutterGPT currently passes contextual code of all classes/methods referred in the current file by fetching it with Dart Analysis Server.

However, for optimisation reasons, we just limit ourselves to the code inside the current project. This could be a problem when users are using submodules or are using new versions of packages or unpopular packages not understood by the default model.****

Describe the solution that you'd like

We need a smart algorithm to figure out what context to include and not include and also assign weightage to each of them so we can shortlist or filter when running short on token limit.

Let's think of all possible cases, - including when using stateful widgets, variables, generated code, packages code etc. and how to include them.

Describe alternatives that you have considered

No response

Additional Information

No response

Acceptance Criteria

After thorough discussion and once approved by everyone in the team, then only we will start to implement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions