Find answers from the community

Updated 2 months ago

it modifies the prompt I'm using for

it modifies the prompt I'm using for search, isn't it? I need to add a system prompt, e.g.:

Plain Text
You are a professional Business Analyst bla bla bla


It has nothing to do with the prompt I will use for retrieval?
L
p
3 comments
There is no prompt for searching
@Logan M Sorry,

Plain Text
query_engine = index.as_query_engine(
    text_qa_template=custom_qa_prompt, refine_template=custom_refine_prompt
)


If user asks: What's your company's location?

The query above will be used for similarity search, right?

What are custom_qa_prompt and custom_refine_prompt then?

I don't understand, there are user prompt (original query coming from a user) and a system prompt (which we pre-define), right?
theres two steps

retrieval - retrieving nodes for a given query

synthesis - using the retrieved nodes and query to generate a response

The prompt templates above are used in synthesis
Add a reply
Sign up and join the conversation on Discord