Find answers from the community

Updated 4 months ago

Hi! I'm trying to customize the query

At a glance
Hi! I'm trying to customize the query engine of a Property Graph Index to include an additional variable. Can you show how or point me to some documents I can take a look? I've tried:
https://docs.llamaindex.ai/en/stable/examples/query_engine/ensemble_query_engine/
https://docs.llamaindex.ai/en/stable/examples/response_synthesizers/custom_prompt_synthesizer/
But I don't see an appropriate way to add the additional variable to the query engine for knowledge graph.
L
p
4 comments
what do you mean an additional variable? To the prompt?
The prompts cannot have additional variables. If you need to, you can pass in an updated prompt each time
Yeah! I want to customize the prompt as well, but where can I put the additional variable?
Because I see it mention using some customization with additional variable tone_name here: https://docs.llamaindex.ai/en/stable/examples/response_synthesizers/custom_prompt_synthesizer/
Add a reply
Sign up and join the conversation on Discord