And http://localhost:1416/docs#/ seems not to work after deploying the pipeline, I got this error, Failed to load API definition.
2024-09-02T07:59:57.164733458Z pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.IsInstanceSchema (<class 'pandas.core.frame.DataFrame'>)
2024-09-02T07:59:57.164735841Z
2024-09-02T07:59:57.164739599Z For further information visit https://errors.pydantic.dev/2.8/u/invalid-for-json-schema
And when I undeployed the pipeline, http://localhost:1416/docs#/ works.
Enviroments: I use docker.
build args of docker compose.
I have a pipeline, its diagram is below:
retriever and ranker both have an optional argument
top_k: Optional[int]
.When I call its hayhooks API,
optional argument
top_k: Optional[int]
must provided, otherwise, I get field required responseAnd
http://localhost:1416/docs#/
seems not to work after deploying the pipeline, I got this error, Failed to load API definition.And when I undeployed the pipeline,
http://localhost:1416/docs#/
works.