New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature: re-write Langchain instrumentation to use Langchain Callbacks #541
Comments
Chainlit uses langchain's callbacks for their instrumentation, and it seems to work well enough. They inherit from langchain's |
Hi @nirga ,
Please correct me if my understanding is incorrect. |
Right @midhun1998! And indeed we probably don't need them all |
Thanks for the confirmation, Nir! I will keep the issue updated with the progress. 🙂 |
Hi @nirga , I tried the approach suggested and met with some roadblocks. Need your input. Below are the details: Observation and Notes:
Challenges:
|
Linking here our slack conversation so I'll remember that we've discussed and answered these already 😅 |
Which component is this feature for?
Langchain Instrumentation
🔖 Feature description
Right now, we monkey-patch classes and methods in LlamaIndex which requires endless work and constant maintenance. Langchain has a system for callbacks that can potentially be used to create/end spans without being too coupled with with the framework's inner structure.
🎤 Why is this feature needed ?
Support Langchain entirely and be future-proof to internal API changes
✌️ How do you aim to achieve this?
Look into Langchain callbacks and how other frameworks are using it.
🔄️ Additional Information
No response
👀 Have you spent some time to check if this feature request has been raised before?
Are you willing to submit PR?
None
The text was updated successfully, but these errors were encountered: