I am new to Langchain and followed this Retrival QA - Langchain . I have a custom prompt but when I try to pass Prompt with chain_type_kwargs its throws error in pydantic StufDocumentsChain . and on removing chain_type_kwargs itt just works. how can pass to the prompt? error File /usr/local/lib/python3.11/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__() ValidationError: 1 validation error for StuffDocumentsChain __root__...
Originally asked by umair mehmood on Stack Exchange (stackoverflow) (CC BY-SA 4.0).