Comments (3)
Possibly of interest: https://www.willmcgugan.com/blog/tech/post/better-python-tracebacks-with-rich/
from langchain.
Similarly, if you try to do chain.predict(abc='hello')
when the chain expects input to be xyz
, the ValueError is a bit vague: ValueError: Missing some input keys: {'abc'}
Something like ValueError: Chain requires input parameters ['xyz']. Received ['abc'].
would be more helpful
from langchain.
Hi, @hwchase17! I'm Dosu, and I'm here to help the LangChain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, the issue is about improving the error message for missing keys in pydantic classes. There have been some suggestions from other users, such as using the traceback library to provide better error messages and improving the ValueError message to give more helpful information about the missing input parameters. However, it seems that the issue is still unresolved.
Could you please let us know if this issue is still relevant to the latest version of the LangChain repository? If it is, please comment on the issue to let us know. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the LangChain project!
from langchain.
Related Issues (20)
- ### Checked other resources
- Using the map_reduce mode with prompt load_summarize_chain in version 0.1.16 of langchain, I occasionally ran into situations where output_text was empty.
- pretty_print doesn't respect the `additional_kwargs` HOT 1
- DOC: The tool calling agent doesn't work on retrievers: create_tool_calling_agent HOT 5
- DOC: How to call the model multiple times in LangChain Expression Language (LCEL)
- Importing GuardrailsOutputParser from langchain.output_parsers is deprecated. HOT 2
- FAISS score filtering is done twice with and without applied relevance_fn HOT 1
- DOC: import create_sql_query_chain is incorrectly imported in SQL + CSV document HOT 1
- OllamaFunctions returning type Error when using with_structured_output HOT 2
- Input variables is ignored even though passed in when MessagesPlaceholder.optional=True HOT 1
- vulnerability found: CVE-2024-1455, The XMLOutputParser in LangChain uses the etree module from the XML parser in the standard python library which has some XML vulnerabilities. HOT 1
- AzureSearchVectorStoreRetriever search_kwargs is empty HOT 1
- Bug: incorrect value of start_index in RecursiveCharacterTextSplitter when substring is present HOT 1
- DOC: No example of usage implementation is provided for the langchain.chains.query_constructor.base.load_query_constructor_runnable function
- bind_tools NotImplementedError when using ChatOllama HOT 17
- AttributeError on calling LLMGraphTransformer.convert_to_graph_documents HOT 7
- Unstructured API Loader Is stuck on SSL Error for self-hosted API. No option for verify_ssl=False to avoid this. HOT 2
- search_kwargs not being used in vectorstore as_retriever HOT 1
- ChatTogether and JsonOuputFunctionParser
- PineconeHynridSearchRetriever not having search_kwargs HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from langchain.