Find answers from the community

Updated 3 months ago

Langchain ask

Question around using conversational agent:

I have this IndexToolConfig to read documents:

tool_config = IndexToolConfig(
index=index,
name=f"Specific-Details-GPT",
description=f"Useful tool for answering specific detailed questions using data from documents.",
index_query_kwargs={"similarity_top_k": 3},
tool_kwargs={"return_direct": True}
)

I'm using chat-conversational-react-description langchain agent to use the tool. I asked it to tell me about events.

However, I get this output from the agent:
{
"action": "Specific-Details-GPT",
"action_input": "What kind of events are you interested in? Please provide more specific details."
}

Observation:

I am interested in events...

Then, it returned the observation itself, rather than telling me about events
L
1 comment
Whether or not langchain agents use a tool is based entirely on the description. Asking about an event, it doesn't see any relation to the description you wrote, so it choses not to use the tool
Add a reply
Sign up and join the conversation on Discord