Closed Emil-io closed 4 months ago
I've also seen the same issue with other types of data. Basically the pipeline execution still works, but cannot generate the docs due to this json schema generation failing
pydantic.errors.PydanticInvalidForJsonSchema: Cannot generate a JsonSchema for core_schema.IsInstanceSchema (<class 'haystack.dataclasses.sparse_embedding.SparseEmbedding'>)
I believe this pull request tries to address a similar problem. https://github.com/deepset-ai/hayhooks/pull/7
This is fixed with #7 and version 0.0.13
.
Remember to use latest Haystack version so it works properly, I had to fix a small thing there too.
I created a hayhooks, haystack and opensearch setup (see this github repo).
Both the query and the indexing yaml are created by dumping a working pipeline config in python.
The problem seems to be caused by the indexing.yml - Once i leave this file out, the query pipeline works without a problem.
Could you help me find the issues here? Error message I am getting when accessing the localhost under "http://0.0.0.0:1416/docs":