langchain-extract
langchain-extract copied to clipboard
Not returning all the required entities defined in the schema
Hi, I faced an issue with langchain-extract. I defined an schema with some required entities(not optional), for instance:
class ExtractedValues(BaseModel): syndication_agent: str=Field(description='who is the syndication agent?') agreement_date: str=Field(description='what is the agreement date?') administrative_agent: str=Field(description='what is the administrative agent?')
then ran the following lines(after lunching the app): runnable = RemoteRunnable("http://localhost:8000/extract_text/") response = runnable.invoke({"text": text, "schema": ExtractedValues.schema()})
However, the response does not contain all the entities defined in the ExtractedValues. Have you ever faced this issue? I am wondering if you can help me with that. Thanks.