You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: Update LangChain integration to remove wrong links (#1274)
Update LangChain integration to remove wrong links and information about
RAG-Web-Browser
@TC-MO please check English 🙏🏻
---------
Co-authored-by: Michał Olender <[email protected]>
Copy file name to clipboardExpand all lines: sources/platform/integrations/ai/langchain.md
+23-7Lines changed: 23 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ slug: /integrations/langchain
15
15
In this example, we'll use the [Website Content Crawler](https://apify.com/apify/website-content-crawler) Actor, which can deeply crawl websites such as documentation, knowledge bases, help centers, or blogs and extract text content from the web pages.
16
16
Then we feed the documents into a vector index and answer questions from it.
17
17
18
-
This example focuses on how to integrate Apify with LangChain using the Python language,
19
-
but if you prefer to use JavaScript, you can follow the same steps in the [JavaScript LangChain documentation](https://js.langchain.com/docs/modules/indexes/document_loaders/examples/web_loaders/apify_dataset).
18
+
This example demonstrates how to integrate Apify with LangChain using the Python language.
19
+
If you prefer to use JavaScript, you can follow the [JavaScript LangChain documentation](https://js.langchain.com/docs/integrations/document_loaders/web_loaders/apify_dataset/).
20
20
21
21
Before we start with the integration, we need to install all dependencies:
22
22
@@ -122,11 +122,27 @@ answer: LangChain is a framework for developing applications powered by language
122
122
source: https://python.langchain.com
123
123
```
124
124
125
-
LangChain is a standard interface through which you can interact with a variety of large language models (LLMs). It provides modules you can use to build language model applications. It also provides chains and agents with memory capabilities.
125
+
LangChain is a standard interface through which you can interact with a variety of large language models (LLMs).
126
+
It provides modules you can use to build language model applications as well as chains and agents with memory capabilities.
127
+
128
+
You can use all of Apify’s Actors as document loaders in LangChain.
129
+
For example, to incorporate web browsing functionality, you can use the [RAG-Web-Browser Actor](https://apify.com/apify/rag-web-browser).
130
+
This allows you to either crawl and scrape top pages from Google Search results or directly scrape text content from a URL and return it as Markdown.
131
+
To set this up, change the `actor_id` to `apify/rag-web-browser` and specify the `run_input`.
132
+
133
+
```python
134
+
loader = apify.call_actor(
135
+
actor_id="apify/rag-web-browser",
136
+
run_input={"query": "apify langchain web browser", "maxResults": 3},
0 commit comments