Skip to content

What is difference between system prompt and query prompt wrapper? #192

Discussion options

You must be logged in to vote

Hi @abrahimzaman360,

Basically system_prompt is used for assigning a role to the LLM. You can say something like 'You are an expert software engineer with at least 10 years of experience'. And continue with the DO's and DON'T you want in your LLM's response logic/structure.

The job of the query_wrapper_prompt is to wrap the context we fetch from the closest embeddings. We need to use 2 special parameters here: context_str and query_str. For example:

    "Context information is below.\n"
    "---------------------\n"
    "{context_str}\n"
    "---------------------\n"
    "Given the context information and not prior knowledge, "
    "answer the query in the style of a Shakespeare play.\n"…

Replies: 8 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by SeeknnDestroy
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #189 on January 06, 2024 12:45.