-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] KnowledgeBaseTool may return parameter placeholder not filled error #2712
Comments
Here is one of the documents retrieved from the knowledge base. The substring ml-commons/common/src/main/java/org/opensearch/ml/common/connector/Connector.java Line 82 in 9b413a7
|
This function may wrongly replace parameters from retrieved documents from knowledge base tool: ml-commons/common/src/main/java/org/opensearch/ml/common/connector/HttpConnector.java Line 311 in 9b413a7
|
Raised a draft PR to fix it: #2724. More discussion is needed. |
Correct me, if I misunderstand. You mean the output of KnowledgeBaseTool can contain something like the string " |
Yes. |
The bug also persists with remote LLM connector:
And receives error
|
Created an RFC as a solution: #2748 |
What is the bug?
I am implementing the the knowledge base tool. Unfortunately, I meet with a tricky bug from the connector. I did some deep dive and found the error is originating from
validatePayload
function fromConnector.java
.How can one reproduce the bug?
Prerequisites: configure LLM and bedrock knowledge base, and then obtain their
model_id
.What is the expected behavior?
The retrieved documents from bedrock knowledge should be free from payload validation in connector.
What is your host/environment?
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
Add any other context about the problem.
The text was updated successfully, but these errors were encountered: