LangChain - Production Deployment
What is the expected behavior of this FastAPI route integrating LangChain?
Assuming you send a POST request with JSON
@app.post('/answer')
async def answer_route(payload: dict):
output = langchain_model.run(payload['question'])
return {'answer': output}
Assuming you send a POST request with JSON
{"question": "Define AI"}, what will happen?