langchain-ai / rag-from-scratch

1.63k stars 453 forks source link

USER_AGENT environment variable not set, consider setting it to identify your requests. #24

Open NicoleRR opened 2 weeks ago

NicoleRR commented 2 weeks ago

when I run first step, it says I don't set USER_AGENT.I don't konw how to set it ,just use langchain1.0 or other ways.

HudsonArauj commented 2 weeks ago

I had the same problem. You are probably using AsyncHtml or another library that has html settings. I looked it up and maybe it's a request regarding the browser. In POST or GET requests, we have a header, and in this a user-agent with settings such as Chrome, Mozila and others. So I think this is a way to solve the problem, but I haven't solved it yet. if you are not using the asyncHtml library, just remove this import

soumilsuri commented 1 week ago

image

i am getting this