Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed May 6, 2024
1 parent ad4ce87 commit 4aef884
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/app/graphs/new_rag.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ def _get_messages(messages, system_message=DEFAULT_SYSTEM_MESSAGE):

@chain
async def get_search_query(messages: Sequence[BaseMessage], config):
llm = config["configurable"].get("llm_type", LLMType.GPT_35_TURBO)
llm = get_llm(
config["configurable"].get(
"agent==chat_retrieval/llm_type", LLMType.GPT_35_TURBO
)
)
convo = []
for m in messages:
if isinstance(m, AIMessage):
Expand Down

0 comments on commit 4aef884

Please sign in to comment.