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

Make preamble in vector query prompt customisable #642

Conversation

igor-2lemetry
Copy link
Contributor

Closes #641

@@ -23,6 +23,8 @@ class VectorQueryEngine(BaseQueryEngine):
)
template_generator: J2 = field(default=Factory(lambda: J2("engines/query/vector_query.j2")), kw_only=True)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While I do like the granularity of being able to override specific bits of the prompt, I'm not sure this change is necessary since users can override template_generator to completely change the prompt.

@andrewfrench @vasinov do you have any suggestions for how we might improve this?

@collindutter
Copy link
Member

Closing. For now the best solution is to override template_generator. And this process may become easier with some upcoming changes to how Prompt Stack works.

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

Successfully merging this pull request may close these issues.

Make preamble in vector query prompt customisable
2 participants