Skip to content
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

[WIP] prompt preprocessing #541

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

andrewfulton9
Copy link

I added the basic structure for a preprocessor. There is still a lot to do here. I have an example of using it in a notebook in the top level folder of the repository. I will remove it before moving this PR from a draft. It has a very simple preprocessor that uses chatgpt to reword the prompt. I ended up calling chatgpt outside of the ragna openai assistant so the ragna specific instruction wouldn't be included. It may be worth opening up the assistant interface a bit to allow more varied use of the assistants. I also havn't addressed saving the QueryProcessor information to the database yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant