Skip to content

Commit 7fe5038

Browse files
jirispilkaTC-MO
andauthored
Apply suggestions from code review
Co-authored-by: Michał Olender <[email protected]>
1 parent 7e58d6f commit 7fe5038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sources/platform/integrations/ai/langchain.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ slug: /integrations/langchain
1515
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.
1616
Then we feed the documents into a vector index and answer questions from it.
1717

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/integrations/document_loaders/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/).
2020

2121
Before we start with the integration, we need to install all dependencies:
2222

@@ -126,7 +126,7 @@ LangChain is a standard interface through which you can interact with a variety
126126
It provides modules you can use to build language model applications as well as chains and agents with memory capabilities.
127127

128128
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](https://apify.com/apify/rag-web-browser) Actor.
129+
For example, to incorporate web browsing functionality, you can use the [RAG-Web-Browser Actor](https://apify.com/apify/rag-web-browser).
130130
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.
131131
To set this up, change the `actor_id` to `apify/rag-web-browser` and specify the `run_input`.
132132

@@ -139,7 +139,7 @@ loader = apify.call_actor(
139139
print("Documents:", loader.load())
140140
```
141141

142-
In the similar way, you can use other Apify Actors to load data into LangChain and query the vector index.
142+
Similarly, you can use other Apify Actors to load data into LangChain and query the vector index.
143143

144144
## Resources
145145

0 commit comments

Comments
 (0)