ProjectUnifree / unifree

MIT License
1.43k stars 75 forks source link

Added Support for Retriever Model Idea #31

Closed bshikin closed 11 months ago

bshikin commented 12 months ago

The idea is to create a "fake" conversation that mimics GPT model learning various language rules. The rules are defined under:

prompts:
...
   rules:
      - Remember these translation rules
      - \'Start()\' is equivalent to '_ready()'
      - \'Update()\' is equivalent to '_process(delta)'

Example LLM input looks like:

user: Remember these translation rules
assistant: Certainly! I have remembered this rule.
user: \'Start()\' is equivalent to '_ready()'
assistant: Certainly! I have remembered this rule.
user: \'Update()\' is equivalent to '_process(delta)'
...
user: Migrate this Unity C# code to GDScript class. Code to migrate:
using UnityEngine;
using UnityEngine.UI;

...
bshikin commented 12 months ago

Please note: this PR is on hold for a better implementation of the context lookup.

The idea is to load known samples into an in-memory DB and only attach ones that match the query best.

bshikin commented 11 months ago

No longer needed, https://github.com/ProjectUnifree/unifree/pull/47 is a more generic solution