Closed yixuantt closed 10 months ago
🤖
Hello @yixuantt,
I'm here to assist you with your query. I'm an AI bot designed to help with bug solving, answering questions, and aiding contributors while waiting for a human maintainer.
From the code you've shared, it seems like you're using a custom prompt template for your LlamaIndex application. The "meaningless" words you're seeing before your custom prompt are likely part of the default prompt templates defined in the default_prompts.py
file. These templates are used to structure the prompts that are fed into the model for generating responses.
For example, in the DEFAULT_SUMMARY_PROMPT_TMPL
, the text "Write a summary of the following. Try to use only the information provided. Try to include as many key details as possible." is a part of the prompt template. This text is used to instruct the model on what it should do with the {context_str}
that follows.
If you want to change these instructions or remove them, you can modify the corresponding prompt templates in the default_prompts.py
file. Be aware that any changes to these templates will affect how the model generates responses. You can find the default_prompts.py
file in the LlamaIndex codebase here.
I also found a similar issue titled [Bug]: Seeing Chain of Thought Prompts in Responses Using Azure which was last updated on July 11, 2023. The suggested solution is to switch to AzureChatOpenAI
from gpt-3.5
when using Azure. Streaming is also supported in the LlamaIndex class.
I hope this helps! If you have any more questions or need further clarification, feel free to ask.
Best, Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Happy to solve it.
🤖
@logan-markewich, I could use your expertise on this one.
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
Question Validation
Question
Here is my custom prompt.
And here is the generated prompt: