sagemaker llama 2 model responding 'don't know' with Kendra index

0

I've build a document based chatbot with sagemaker llama 2-7b model with Kendra index which is giving the answer but at the end it is adding 'don't know'. but using same sagemaker model with faiss it is correctly answering. What could be the reason the model is answering but keep saying 'don't know' with Kendra index?

prompt_template = """ <s>[INST] <<SYS>> The following is a friendly conversation between a human and an AI. The AI is talkative and provides lots of specific details from its context. If the AI does not know the answer to a question, it truthfully says it does not know. {context} <</SYS>> Instruction: Based on the above documents, provide a detailed answer for, {question} Answer "don't know" if not present in the document. Solution: [/INST]""" PROMPT = PromptTemplate( template=prompt_template, input_variables=["context", "question"], ) condense_qa_template = """ <s>[INST] <<SYS>> Given the following conversation and a follow up question, rephrase the follow up question to be a standalone question.

Chat History: {chat_history} Follow Up Input: {question} <</SYS>> Standalone question: [/INST]"""

Above is the prompt template I've used for both model i.e. with Kendra and faiss.

질문됨 4달 전282회 조회
답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠