Skip to content

Commit

Permalink
Irrelevant citations fix for perplexity (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshugt16 authored Dec 12, 2024
1 parent a47fcaf commit 7a5aadb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kairon/shared/llm/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ async def __get_answer(self, query, system_prompt: Text, context: Text, user, **
]
if previous_bot_responses:
messages.extend(previous_bot_responses)
query = self.modify_user_message_for_perplexity(query, llm_type, hyperparameters)
query = self.modify_user_message_for_perplexity(query, llm_type, hyperparameters)
messages.append({"role": "user", "content": f"{context} \n{instructions} \nQ: {query} \nA:"}) if instructions \
else messages.append({"role": "user", "content": f"{context} \nQ: {query} \nA:"})
completion, raw_response = await self.__get_completion(messages=messages,
Expand Down

0 comments on commit 7a5aadb

Please sign in to comment.