Replies: 3 comments 8 replies
-
fwiw, it fails in /chat/playground/ as well. |
Beta Was this translation helpful? Give feedback.
-
numpy.float64 is not json serializable -- you need to convert it into a json format so that it can be transmitted over the wire to the front end. |
Beta Was this translation helpful? Give feedback.
-
On the working version
And it is now
The old code dumped this slightly diffrently:
(note The object is broadly similar, the issue looks to be that switching from the straight json.dumps to dumping via orjson has caused a problem? The attached file is output of print(json.dumps(obj, cls=_LangChainEncoder)) (on v0.0.19 breakpoint), and |
Beta Was this translation helpful? Give feedback.
-
I've narrowed down the problem to one that reproduces on the
weblangchain
repo https://github.com/langchain-ai/weblangchainI'm trying to update to the latest versions of Langchain/Langsmith/LangchainJS/etc (including to the new "community" approach). I have reproduced on this (forked) branch https://github.com/mieslep/weblangchain/tree/compoent_and_update
Note that the prior commit runs correctly - so the most recent commit (the one that updates the LangChain versions) is the one that breaks.
The chain seems to run correctly https://smith.langchain.com/public/296c9325-2dce-4f2c-a533-64baac6c50fc/r
But it seems that somehow in the handling of the response back to the client something is getting mangled? (Not sure why the embedding vector might be returned back to the client...)
Beta Was this translation helpful? Give feedback.
All reactions