-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add memory to copilot #67
Comments
From @BenjaminScholtens export enum EditType {
USER_EDIT = "user-edit",
LLM_EDIT = "llm-edit",
LLM_GENERATION = "llm-generation",
}
export type CustomNotebook = vscode.NotebookCellData & {
language: string;
metadata: vscode.NotebookCellData["metadata"] & {
edits?: {
cellValue: string;
timestamp: number;
type: EditType;
}[];
};
};
example in action {
"kind": 2,
"value": "<span>This is a test</span>\n",
"languageId": "scripture",
"outputs": [],
"metadata": {
"type": "text",
"id": "MAT 1:1",
"data": {},
"edits": [
{
"cellValue": "<span>This is a test</span>\n",
"timestamp": 1727201112868,
"type": "user-edit"
}
]
}
}, |
I am thinking we should
The idea here is to be able to track how often AI suggestions are the final step. |
Nevermind @BenjaminScholtens actually set it up to save an edit step every time you create an LLM generation, and then subsequent user edits will be saved as an edit step separately. |
Every cell can have a 'history' or memory.
If you go to a cell, we can pull up similar memories, so we can see a history of edits made on similar content, and then try to programmatically apply those to the cell you are on.
We can also abstract memories, creating more generalized 'rules' for the translation/editing process based on LLM-synthesized memories.
E.g., if the user fixes punctuation in 10 different ways, we can create a more general memory of how to fix punctuation including all 10 ways in one memory. This is probably more valuable for edits that can't be applied programmatically.
If you are looking at a cell, perhaps it makes sense to have the copilot suggest for you 'patterns' based on memories of previous edits.
Example feature to aim for
If you fix the proper nouns in one book, you want to be able to jump to another book and have the LLM suggest correcting the proper nouns there as well.
The text was updated successfully, but these errors were encountered: