-
For example, if a file name is passed in, I want to determine in the server what the file name is by reading a pre-existing file, parsing it into text, and inputting it into the model. Specifically, "HI" will be replaced by "HI.txt". I judge that if it is a file, read the file content as model input. |
Beta Was this translation helpful? Give feedback.
Answered by
eyurtsev
Mar 27, 2024
Replies: 1 comment
-
Prepend a runnable lambda to your chain to manipulate the input. (This is more of an LCEL question rather than langserve.) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
eyurtsev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prepend a runnable lambda to your chain to manipulate the input. (This is more of an LCEL question rather than langserve.)