langchain-ai / langchainjs

🦜🔗 Build context-aware reasoning applications 🦜🔗
https://js.langchain.com/docs/
MIT License
12.52k stars 2.14k forks source link

Docs 404 #4333

Closed benprebble-maker closed 8 months ago

benprebble-maker commented 8 months ago

These docs contain a broken link:

In an effort to make it as easy as possible to create custom chains, we've implemented a "Runnable" protocol that most components implement.

https://api.js.langchain.com/classes/schema_runnable.Runnable.html = 404

dosubot[bot] commented 8 months ago

🤖

Hey @benprebble-maker, back at it with the eagle eyes, I see! Hope you're doing well.

Thank you for bringing this to our attention. It seems like the link to the "Runnable" protocol documentation is indeed broken. I apologize for the inconvenience.

Based on the context provided, the "Runnable" protocol is implemented in the LangChainJS framework and is exported from "./base.js" in the langchain-core/src/runnables/index.ts file. Here is the relevant code snippet:

export {
  ...
  Runnable,
  ...
} from "./base.js";

You can find this in the langchain-core/src/runnables/index.ts file.

The "Runnable" protocol, as represented by the RemoteRunnable class, appears to be responsible for interacting with a remote language model server. It provides a method called streamLog which can be used to send queries to the server and process the responses. You can find more details in the langchain-core/src/runnables/tests/runnable_remote.int.test.ts file.

Unfortunately, I couldn't find the correct URL for the "Runnable" protocol documentation. It's possible that the documentation has been moved or is currently unavailable. I recommend checking back later or reaching out to the repository maintainers for more information.

I hope this helps! If you have any other questions, feel free to ask.

Sources


This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

jacoblee93 commented 8 months ago

Oof, thanks