make doc_query tool name consistent with prompt

This commit is contained in:
LUIS NOVO 2024-10-22 16:45:08 -03:00
parent ab51a92ecd
commit f96fc580b3
2 changed files with 1 additions and 1 deletions

View file

@ -27,7 +27,7 @@ def call_model_with_messages(state: DocQueryState, config: RunnableConfig) -> di
model_name = os.environ.get("RETRIEVAL_MODEL", os.environ["DEFAULT_MODEL"])
model = get_langchain_model(model_name)
system_prompt = Prompter(prompt_template="ask_content").render(data=state)
system_prompt = Prompter(prompt_template="doc_query").render(data=state)
logger.debug(f"System prompt: {system_prompt}")
ai_message = model.invoke(system_prompt)
return {"answer": ai_message}