The document metadata is already provided, in the input. In the response object I am not getting any document metadata.
from llama_index.llms import OpenAI, ChatMessage, MessageRole
from llama_index.prompts import ChatPromptTemplate
llm = OpenAI(temperature=0.1)
# service = ServiceContext.from_defaults(llm=llm)
hr_manager_prompt_chat = ChatPromptTemplate([
ChatMessage(role=MessageRole.SYSTEM,
content=("You are the HR manager of a company. You have received a CV and a job description. You need to match the CV to the job description.")),
ChatMessage(role=MessageRole.USER, content=("""Please match the CV to the job description.
jd - {jd}
cv - {cv}"""))
])
total_prompt = hr_manager_prompt_chat.format(jd = str(jd[0]), cv = str(cvs[0]))
print(total_prompt)
response = llm.complete(total_prompt)