anarchy-ai / anarchy-ai/LLM-VM

Prompt Template for Code Synthesis

Aberta
#11 8 comentários 0 reações 0 responsáveis Ver no GitHub
good first issue SWAG
Linguagem predominante
Python
Estrelas
490
Forks
139
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

Separate into "prompt template" (a GPT-3 recognized word) and variables. Then ask the gpt-3 to change specific parameters for the template.

Prompt template: What is the [variable] of the [object]?

- variable-object pairs = (currency, Myanmar), (price, Bitcoin)
Now, for generation we might specify differences for either prompt templates or variable/object. Based on following parameters(not comprehensive list):

i. Style: Keep the meaning of the question same but ask in different styles.
eg: introduce spelling mistakes, code mixing, cultural tone difference etc.

ii. Semantic diversity: The task itself should change.
Add the above nlp metrics in code and set thresholds, keep generating till the thresholds are satisfied.

Reference:
1. https://arxiv.org/pdf/2005.04118.pdf (behavioral testing of the nlp)
2.https://arxiv.org/abs/2111.09963 (behavioral testing of recommender system)
Essentially we will framing the task as NLP task or recommendation task with behavioral metrics satisfied.

eg: keep generating similar sentences with cosine_similarity 0.5 and diversity 0.4 till "n" sentences reached or "x" attempts satisfied.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.