Relative Content

Tag Archive for langchain

correct input schema documentation for langserve with fastapi

How do you get LangServe to correctly infer the input schema for FastAPI’s automatically generated API docs? It seems like it always documents that the input schema is just a simple string. FastAPI can correctly infer an input schema based on pydantic types, but once you introduce LangServe (which should know how to extract the input schema from the runnable), it stops working.