id like to take a python framework project and have a specialized coder. id like to feed it the documentation and git hub code where examples are shown. then id like to have the chat LM injest it and only code in that framework api
my approach so far has been to shove some of its documentation into the prompt and tell it 'this is the documenation for xyz framework. only answer qeustions based on information and code found here'.
while this works somewhat, it starts to hallucinate adding code from other frameworks and even languages. for example, the ui frame work may specify changing the text size of a label with label.size = '30' and the LM will respond with label.font_size = '30'
how woudl i go about correcting this? perhaps with a kind of framework schema that the LM checks its answers against? so the scheme would day you can only use property size with a label, and the lm would correct its code on a second pass? if so how would i format that schema??
i am open to completely rewriting the documentation so its in a format that the LM can properly injest and understand.
lastly, i obviously run out of context size so i have tried this in a vector db. but this runs into the same problems. so i think i want to know how to feed it the write information and prompt it better so it stays 100% within its framework api
will this speed up ollama project?