Skip to content

Commit 06948f4

Browse files
authored
docs: Update old imports (#7951)
1 parent 2a12d7c commit 06948f4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/core_docs/docs/integrations/platforms/google.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ PaLM models are no longer supported.
212212
> referred to as vector similarity-matching or an approximate nearest neighbor (ANN) service.
213213
214214
```typescript
215-
import { MatchingEngine } from "langchain/vectorstores/googlevertexai";
215+
import { MatchingEngine } from "@langchain/community/vectorstores/googlevertexai";
216216
```
217217

218218
### Postgres Vector Store
@@ -279,7 +279,7 @@ const vectorStore = await PostgresVectorStore.initialize(
279279
There exists a `GoogleCustomSearch` utility which wraps this API. To import this utility:
280280

281281
```typescript
282-
import { GoogleCustomSearch } from "langchain/tools";
282+
import { GoogleCustomSearch } from "@langchain/community/tools/google_custom_search";
283283
```
284284

285285
We can easily load this wrapper as a Tool (to use with an Agent). We can do this with:

docs/core_docs/docs/integrations/vectorstores/googlevertexai.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ set for the document. So if we just wanted to limit the results to those
147147
with a red color, we can do:
148148

149149
```typescript
150-
import { Restriction } from `langchain/vectorstores/googlevertexai`;
150+
import { Restriction } from `@langchain/community/vectorstores/googlevertexai`;
151151

152152
const redFilter: Restriction[] = [
153153
{
@@ -180,7 +180,7 @@ const results = await engine.similaritySearch("this", 4, filter);
180180
Deleting documents are done using ID.
181181

182182
```typescript
183-
import { IdDocument } from `langchain/vectorstores/googlevertexai`;
183+
import { IdDocument } from `@langchain/community/vectorstores/googlevertexai`;
184184

185185
const oldResults: IdDocument[] = await engine.similaritySearch("this", 10);
186186
const oldIds = oldResults.map( doc => doc.id! );

0 commit comments

Comments
 (0)