Jobs_Applier_AI_Agent_AIHawk icon indicating copy to clipboard operation
Jobs_Applier_AI_Agent_AIHawk copied to clipboard

[FEATURE]: LangChain Traceability

Open zycarlc opened this issue 1 year ago • 1 comments

Feature summary

Get user to trace their LLM usage on LangChain

Feature description

Since this project uses LangChain to manage all the LLM requests, It would be great to let user to trace all the use of LLM on LangChain/LangSmith platform.

I tried to supply the LangChain environment variables in the main func as instructed by LangChain:

    `os.environ['LANGCHAIN_TRACING_V2'] = 'true'
    os.environ['LANGCHAIN_ENDPOINT']="https://api.smith.langchain.com"
    os.environ['LANGCHAIN_API_KEY']="******************"
    os.environ['LANGCHAIN_PROJECT']="*******"`

error:

Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError(\'403 Client Error: Forbidden for url: https://api.smith.langchain.com/runs/batch\', \'{"detail":"Forbidden"}\')') ^C Aborted! Failed to batch ingest runs: LangSmithError('Failed to POST https://api.smith.langchain.com/runs/batch in LangSmith API. HTTPError(\'403 Client Error: Forbidden for url: https://api.smith.langchain.com/runs/batch\', \'{"detail":"Forbidden"}\')')

Motivation

No response

Alternatives considered

No response

Additional context

No response

zycarlc avatar Nov 15 '24 06:11 zycarlc

@zycarlc Hi, do you want to work on this?

For better communication with other open source developers I suggest you join our discord group: https://discord.gg/mMZcMTH9K6

feder-cr avatar Nov 19 '24 23:11 feder-cr