Open cjellick opened 3 months ago
Keeping some notes here:
Large changes to how knowledge is integrated: #385
Tested with build from b6c00b5330eb
We now see Knowledge Retrieval Context
being added when there are queries made relating to knowledge files.
While testing this feature , there were couple of instances were I see the queries made relating to the knowledge file are not being answered from the knowledge file. In these cases , output from knowledgeInstruction is empyt ( No data retrieved from knowledge base.
).
Stack Trace shows this:
Detailed steps to reproduce the issue is tracked in the following 2 issues: https://github.com/gptscript-ai/desktop/issues/336#issuecomment-2338898813 https://github.com/gptscript-ai/desktop/issues/402#issuecomment-2339237256
From a convo with Thorsten:
Right now, it is pretty naive: we have a static context that says something dumb like "you have an ad hoc rag tool..." and then we rely on the LLM deciding to call retreival
I think it's time to do a proper "Retrieval Augmented Generation" wherein we write a context tool that looks at the input from the user, figures out if knowledge has relevant information about that input, and if it does, go ahead and add it as context.
My success criteria is: