Skip to content
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

Add langchain #339

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add langchain #339

wants to merge 2 commits into from

Conversation

thinkdb1
Copy link

@thinkdb1 thinkdb1 commented Mar 6, 2025

langchain追踪,添加了chains,agentAction代理处理,向量数据库查询,嵌入模型调用,llm调用几个点到追踪,由于各个具体模块都是由接口来规范的,所以只能定位到接口用的上一层,例如tool工具类,但每一个agentAction就是一个具体工具动作。另外无法使用callback的钩子函数,1,会出现被用户覆盖情况,2,也有因为接口规范原因无法注入

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


zjlOffice seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link
Contributor

@Cirilla-zmh Cirilla-zmh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great works!

Key: "module-name",
Value: attribute.StringValue(request.moduleName),
}, attribute.KeyValue{
Key: "system",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please adjust these existing attribute keys according to OTel semconv?
https://opentelemetry.io/docs/specs/semconv/gen-ai/gen-ai-spans/

{
"Version": "[0.1.13,)",
"ImportPath": "github.com/tmc/langchaingo/llms",
"Function": "GenerateFromSinglePrompt",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity: Does langchaingo support for streaming api? (I haven't notice a similar one)

@NameHaibinZhang
Copy link
Collaborator

cla requires signature

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants