Replies: 2 comments
-
🤖 Hey there, @Huyueeer! Great to see you back with another intriguing puzzle for us to solve together. 😊 How's everything going on your end? The input that the agent submits to the retriever in the LangChain framework is controlled by the For example, if you want to ensure that the input is always a certain length, you could modify the function like this: {
"input": lambda x: x["input"] if len(x["input"]) <= MAX_LENGTH else x["input"][:MAX_LENGTH],
...
} In this example, Please replace This is based on the code in the templates/neo4j-semantic-layer/neo4j_semantic_layer/agent.py file in the LangChain repository. If you're still having trouble with this, could you please provide more details about the issue? Specifically, it would be helpful to know what you mean by "the agent would submit 99986 to Retriever", and how this is causing problems for you. Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
is there any solution to this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I found that every time the agent submitted input to retriever, it would be a cut. For example, my input would be“Help me find 99986 related material information.” The agent would submit 99986 to Retriever, cause I can not take from the vector library to the beneficial information back to the subsequent workflow, what method can control agent to retriever input?
System Info
no
Beta Was this translation helpful? Give feedback.
All reactions