-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
OpenSearch Custom Component Failed to build #2243
Comments
Hello, @weily2! I'm here to help you with any issues you're facing. If you need assistance with bugs, questions, or becoming a contributor, feel free to ask. The error you're encountering, To resolve this issue, ensure that none of the field names in your JSON configuration are empty strings. Specifically, check the Here's an example of how to correct the {
"vector_field": [0.029189004564168446, -0.009481273894479912, ...],
"text": "123",
"metadata": {
"source": "C:\\Users\\admin\\AppData\\Local\\langflow\\langflow\\Cache\\640436d1-33c0-4354-9520-1bebeaaa63e8\\a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3.txt",
"": "" # This is the problematic field
}
} Replace the empty string key in the {
"vector_field": [0.029189004564168446, -0.009481273894479912, ...],
"text": "123",
"metadata": {
"source": "C:\\Users\\admin\\AppData\\Local\\langflow\\langflow\\Cache\\640436d1-33c0-4354-9520-1bebeaaa63e8\\a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3.txt",
"valid_key": "valid_value" # Replace with a valid key-value pair
}
} Ensure that all field names in your documents are properly named and not empty strings. This should resolve the |
I had created a OpenSerach custom component with the follow python script:
but after build in canvas, i got the following error:
Can someone help with this? Thank you very much.
The text was updated successfully, but these errors were encountered: