Find answers from the community

Updated 8 months ago

Adding background story before starting interacting with LLM

At a glance
Hi! How do I update the system prompt in query_engine ? I want to write a "background story" about what happened before I hit the query_engine, e.g.::

Plain Text
A patient visited a doctor and doctor wrote this diagnosis:

{diagnosis}

Then, hospital workers took these notes about the patient:

{notes}
...


I would just use
Plain Text
llm.complete
, but I need to use my vector store as well. So passing all the prompt above is not helpful for similarity search, I guess.
p
L
2 comments
I found something called chat engine, I think that's what I want. Let's see
Add a reply
Sign up and join the conversation on Discord