Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

google-genai[patch]: Extend GoogleGenerativeAIEmbeddings to embed more than 100 documents #4279

Merged
merged 10 commits into from
Feb 6, 2024

Conversation

imjwang
Copy link
Contributor

@imjwang imjwang commented Feb 4, 2024

Currently GoogleGenerativeAIEmbeddings does not work if there are more than 100 documents, it silently fails. It seems like the underlying GoogleGenerativeAI client's batchEmbedContents is maxed at 100. Running the client directly results in a 400.

  const gclient = new GoogleGenerativeAI(
    process.env.GOOGLE_API_KEY!
  ).getGenerativeModel({
    model: 'embedding-001'
  })

  await gclient.batchEmbedContents({
    requests: text.map(t => ({
      content: { role: 'user', parts: [{ text: t }] },
      taskType: TaskType.SEMANTIC_SIMILARITY
    }))
  })
 ⨯ GoogleGenerativeAIError: [400 Bad Request] * BatchEmbedContentsRequest.requests: at most 100 requests can be in one batch

This pr chunks the documents to size 100 and uses Promise.allSettled

It returns an array of embeddings as expected by a vectorstore.

Failed embeddings return empty array - current behavior
Failed requests add empty arrays equal to size of chunk.

Replicate:

  const embeddings = new GoogleGenerativeAIEmbeddings({
    modelName: 'embedding-001',
    taskType: TaskType.RETRIEVAL_DOCUMENT
  })
  // call on small array
  const justRight = Array(100).fill('a')
  const res = await embeddings.embedDocuments(justRight)
  console.log(res.length)
  // call on big array
  const tooBig = Array(101).fill('a') 
  try {
    const res2 = await embeddings.embedDocuments(tooBig)
    console.log(res2.length)
  } catch (e) {
    console.log('caught') // doesn't log
  }

First call succeeds. Second call fails and gives uncaught error.

100
 ⨯ GoogleGenerativeAIError: [400 Bad Request] * BatchEmbedContentsRequest.requests: at most 100 requests can be in one batch

    at makeRequest (/Users/jeff/Documents/repos/langchainjs/.next/server/chunks/node_modules__pnpm_f385b9._.js:12364:19)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async batchEmbedContents (/Users/jeff/Documents/repos/langchainjs/.next/server/chunks/node_modules__pnpm_f385b9._.js:12926:22)
    at async GoogleGenerativeAIEmbeddings._embedDocumentsContent (/Users/jeff/Documents/repos/langchainjs/.next/server/chunks/node_modules__pnpm_f385b9._.js:15519:21)
    at async RetryOperation._fn (/Users/jeff/Documents/repos/langchainjs/.next/server/chunks/node_modules__pnpm_f385b9._.js:10900:25) {
  attemptNumber: 7,
  retriesLeft: 0
}

Fixes #4278

@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 4, 2024
Copy link

vercel bot commented Feb 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 6, 2024 4:41am
langchainjs-docs ✅ Ready (Inspect) Visit Preview Feb 6, 2024 4:41am

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Feb 4, 2024
@jacoblee93 jacoblee93 changed the title Extend GoogleGenerativeAIEmbeddings to embed more than 100 documents google-genai[patch]: Extend GoogleGenerativeAIEmbeddings to embed more than 100 documents Feb 6, 2024
@jacoblee93
Copy link
Collaborator

Thank you!

@jacoblee93 jacoblee93 added the lgtm PRs that are ready to be merged as-is label Feb 6, 2024
@dosubot dosubot bot removed the size:S This PR changes 10-29 lines, ignoring generated files. label Feb 6, 2024
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Feb 6, 2024
@jacoblee93 jacoblee93 merged commit 9e40904 into langchain-ai:main Feb 6, 2024
22 checks passed
@jacoblee93
Copy link
Collaborator

Thank you!

nicolewhite referenced this pull request in autoblocksai/javascript-sdk Feb 13, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/react](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react))
| [`18.2.53` ->
`18.2.55`](https://renovatebot.com/diffs/npm/@types%2freact/18.2.53/18.2.55)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2freact/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2freact/18.2.53/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2freact/18.2.53/18.2.55?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@typescript-eslint/eslint-plugin](https://togithub.com/typescript-eslint/typescript-eslint)
([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin))
| [`6.20.0` ->
`6.21.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/6.20.0/6.21.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2feslint-plugin/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2feslint-plugin/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2feslint-plugin/6.20.0/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2feslint-plugin/6.20.0/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[@typescript-eslint/parser](https://togithub.com/typescript-eslint/typescript-eslint)
([source](https://togithub.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser))
| [`6.20.0` ->
`6.21.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/6.20.0/6.21.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@typescript-eslint%2fparser/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@typescript-eslint%2fparser/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@typescript-eslint%2fparser/6.20.0/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@typescript-eslint%2fparser/6.20.0/6.21.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[langchain](https://togithub.com/langchain-ai/langchainjs/tree/main/langchain/)
([source](https://togithub.com/langchain-ai/langchainjs)) | [`0.1.13` ->
`0.1.17`](https://renovatebot.com/diffs/npm/langchain/0.1.13/0.1.17) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/langchain/0.1.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/langchain/0.1.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/langchain/0.1.13/0.1.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/langchain/0.1.13/0.1.17?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [openai](https://togithub.com/openai/openai-node) | [`4.26.1` ->
`4.27.1`](https://renovatebot.com/diffs/npm/openai/4.26.1/4.27.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/openai/4.27.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/openai/4.27.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/openai/4.26.1/4.27.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/openai/4.26.1/4.27.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [tsup](https://tsup.egoist.dev/)
([source](https://togithub.com/egoist/tsup)) | [`8.0.1` ->
`8.0.2`](https://renovatebot.com/diffs/npm/tsup/8.0.1/8.0.2) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tsup/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tsup/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tsup/8.0.1/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tsup/8.0.1/8.0.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [tsx](https://togithub.com/privatenumber/tsx) | [`4.7.0` ->
`4.7.1`](https://renovatebot.com/diffs/npm/tsx/4.7.0/4.7.1) |
[![age](https://developer.mend.io/api/mc/badges/age/npm/tsx/4.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/tsx/4.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/tsx/4.7.0/4.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/tsx/4.7.0/4.7.1?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/eslint-plugin)</summary>

###
[`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#6210-2024-02-05)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0)

##### 🚀 Features

-   export plugin metadata

-   allow `parserOptions.project: false`

-   **eslint-plugin:** add rule prefer-find

##### 🩹 Fixes

- **eslint-plugin:** \[no-unused-vars] don't report on types referenced
in export assignment expression

- **eslint-plugin:** \[switch-exhaustiveness-check] better support for
intersections, infinite types, non-union values

- **eslint-plugin:** \[consistent-type-imports] dont report on types
used in export assignment expressions

- **eslint-plugin:** \[no-unnecessary-condition] handle left-hand
optional with exactOptionalPropertyTypes option

- **eslint-plugin:** \[class-literal-property-style] allow getter when
same key setter exists

- **eslint-plugin:** \[no-unnecessary-type-assertion] provide valid
fixes for assertions with extra tokens before `as` keyword

##### ❤️  Thank You

-   auvred
-   Brad Zacher
-   Kirk Waiblinger
-   Pete Gonzalez
-   YeonJuan

You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning)
and
[releases](https://main--typescript-eslint.netlify.app/users/releases)
on our website.

</details>

<details>
<summary>typescript-eslint/typescript-eslint
(@&#8203;typescript-eslint/parser)</summary>

###
[`v6.21.0`](https://togithub.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#6210-2024-02-05)

[Compare
Source](https://togithub.com/typescript-eslint/typescript-eslint/compare/v6.20.0...v6.21.0)

##### 🚀 Features

-   allow `parserOptions.project: false`

##### ❤️  Thank You

-   auvred
-   Brad Zacher
-   Kirk Waiblinger
-   Pete Gonzalez
-   YeonJuan

You can read about our [versioning
strategy](https://main--typescript-eslint.netlify.app/users/versioning)
and
[releases](https://main--typescript-eslint.netlify.app/users/releases)
on our website.

</details>

<details>
<summary>langchain-ai/langchainjs (langchain)</summary>

###
[`v0.1.17`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.1.17)

[Compare
Source](https://togithub.com/langchain-ai/langchainjs/compare/0.1.16...0.1.17)

#### What's Changed

- langchain\[patch]: Release 0.1.16 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4334](https://togithub.com/langchain-ai/langchainjs/pull/4334)
- Correct waitlist instruction in README by
[@&#8203;eknuth](https://togithub.com/eknuth) in
[https://github.com/langchain-ai/langchainjs/pull/4335](https://togithub.com/langchain-ai/langchainjs/pull/4335)
- docs\[patch]: Fix broken link by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4336](https://togithub.com/langchain-ai/langchainjs/pull/4336)
- langchain\[patch]: Export helper functions from indexing api by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4344](https://togithub.com/langchain-ai/langchainjs/pull/4344)
- docs\[minor]: Add Human-in-the-loop to tools use case by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4314](https://togithub.com/langchain-ai/langchainjs/pull/4314)
- langchain\[minor],docs\[minor]: Add `SitemapLoader` by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4331](https://togithub.com/langchain-ai/langchainjs/pull/4331)
- langchain\[patch]: Rm unwanted build artifacts by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4345](https://togithub.com/langchain-ai/langchainjs/pull/4345)

#### New Contributors

- [@&#8203;eknuth](https://togithub.com/eknuth) made their first
contribution in
[https://github.com/langchain-ai/langchainjs/pull/4335](https://togithub.com/langchain-ai/langchainjs/pull/4335)

**Full Changelog**:
langchain-ai/langchainjs@0.1.16...0.1.17

###
[`v0.1.16`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.1.16)

[Compare
Source](https://togithub.com/langchain-ai/langchainjs/compare/0.1.15...0.1.16)

#### What's Changed

- scripts\[minor],docs\[minor]: Add migration script to scripts package
by [@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4326](https://togithub.com/langchain-ai/langchainjs/pull/4326)
- scripts\[patch]: Release 0.0.5 by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4330](https://togithub.com/langchain-ai/langchainjs/pull/4330)
- Update aws.mdx by
[@&#8203;jasel-lewis](https://togithub.com/jasel-lewis) in
[https://github.com/langchain-ai/langchainjs/pull/4322](https://togithub.com/langchain-ai/langchainjs/pull/4322)
- Updated debugging.mdx by
[@&#8203;jasonnathan](https://togithub.com/jasonnathan) in
[https://github.com/langchain-ai/langchainjs/pull/4319](https://togithub.com/langchain-ai/langchainjs/pull/4319)
- langchain\[patch]: Fix run on dataset method for built-in evaluators
by [@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4332](https://togithub.com/langchain-ai/langchainjs/pull/4332)

#### New Contributors

- [@&#8203;jasel-lewis](https://togithub.com/jasel-lewis) made their
first contribution in
[https://github.com/langchain-ai/langchainjs/pull/4322](https://togithub.com/langchain-ai/langchainjs/pull/4322)
- [@&#8203;jasonnathan](https://togithub.com/jasonnathan) made their
first contribution in
[https://github.com/langchain-ai/langchainjs/pull/4319](https://togithub.com/langchain-ai/langchainjs/pull/4319)

**Full Changelog**:
langchain-ai/langchainjs@0.1.15...0.1.16

###
[`v0.1.15`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.1.15)

[Compare
Source](https://togithub.com/langchain-ai/langchainjs/compare/0.1.14...0.1.15)

#### What's Changed

- langchain\[patch]: Release 0.1.14 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4315](https://togithub.com/langchain-ai/langchainjs/pull/4315)
- ci\[minor]: Add new test:unit:ci and build before tests in ci file by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4312](https://togithub.com/langchain-ai/langchainjs/pull/4312)
- Revert "langchain\[minor]: Add imports migration script" by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4324](https://togithub.com/langchain-ai/langchainjs/pull/4324)
- core\[patch]: Inline more portable SAX parser, remove node-only type
import by [@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4325](https://togithub.com/langchain-ai/langchainjs/pull/4325)
- langchain\[patch],community\[patch]: Fix lint warnings by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4323](https://togithub.com/langchain-ai/langchainjs/pull/4323)
- core\[patch]: Release 0.1.25 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4327](https://togithub.com/langchain-ai/langchainjs/pull/4327)
- langchain\[patch]: Bump core dep by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4328](https://togithub.com/langchain-ai/langchainjs/pull/4328)
- langchain\[patch]: Release 0.1.15 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4329](https://togithub.com/langchain-ai/langchainjs/pull/4329)

**Full Changelog**:
langchain-ai/langchainjs@0.1.14...0.1.15

###
[`v0.1.14`](https://togithub.com/langchain-ai/langchainjs/releases/tag/0.1.14)

[Compare
Source](https://togithub.com/langchain-ai/langchainjs/compare/0.1.13...0.1.14)

#### What's Changed

- langchain\[patch]: Release 0.1.13 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4287](https://togithub.com/langchain-ai/langchainjs/pull/4287)
- langchain\[patch]: Improve memory vector store tests by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4283](https://togithub.com/langchain-ai/langchainjs/pull/4283)
- infra\[minor]: Split unit tests by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4292](https://togithub.com/langchain-ai/langchainjs/pull/4292)
- docs\[minor]: Add new QA & RAG use case section by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4211](https://togithub.com/langchain-ai/langchainjs/pull/4211)
- docs\[patch]: Fix header typo by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4295](https://togithub.com/langchain-ai/langchainjs/pull/4295)
- create-langchain-integration\[patch]: Fix build command + release by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4297](https://togithub.com/langchain-ai/langchainjs/pull/4297)
- redis\[major]: Adds new
[@&#8203;langchain/redis](https://togithub.com/langchain/redis)
integration package by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4299](https://togithub.com/langchain-ai/langchainjs/pull/4299)
- redis\[patch]: Release 0.0.1 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4300](https://togithub.com/langchain-ai/langchainjs/pull/4300)
- community\[minor]: update CloseVector versions to greatly improve web
saving/loading of index files over 5MB. by
[@&#8203;jo32](https://togithub.com/jo32) in
[https://github.com/langchain-ai/langchainjs/pull/4291](https://togithub.com/langchain-ai/langchainjs/pull/4291)
- google-genai\[patch]: Extend GoogleGenerativeAIEmbeddings to embed
more than 100 documents by
[@&#8203;imjwang](https://togithub.com/imjwang) in
[https://github.com/langchain-ai/langchainjs/pull/4279](https://togithub.com/langchain-ai/langchainjs/pull/4279)
- google-genai\[patch]: Release 0.0.10 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4301](https://togithub.com/langchain-ai/langchainjs/pull/4301)
- Fix typos and grammer errors in concepts.mdx by
[@&#8203;barisbll](https://togithub.com/barisbll) in
[https://github.com/langchain-ai/langchainjs/pull/4304](https://togithub.com/langchain-ai/langchainjs/pull/4304)
- core\[patch]: Properly export ImagePromptTemplate by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4307](https://togithub.com/langchain-ai/langchainjs/pull/4307)
- ci\[patch]: Set concurrency to 1 for unit tests ci by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4310](https://togithub.com/langchain-ai/langchainjs/pull/4310)
- core\[minor]: Move remote runnable to core and fix base message
serialization format by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4309](https://togithub.com/langchain-ai/langchainjs/pull/4309)
- core\[patch]: Update build artifact by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4311](https://togithub.com/langchain-ai/langchainjs/pull/4311)
- core\[patch]: Release 0.1.24 by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4313](https://togithub.com/langchain-ai/langchainjs/pull/4313)
- docs\[minor]: Add OpenAI tools docs by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4306](https://togithub.com/langchain-ai/langchainjs/pull/4306)
- langchain\[patch]: Fix ImagePromptTemplate deserialization, export
RemoteRunnable directly from
[@&#8203;langchain/core](https://togithub.com/langchain/core) by
[@&#8203;jacoblee93](https://togithub.com/jacoblee93) in
[https://github.com/langchain-ai/langchainjs/pull/4308](https://togithub.com/langchain-ai/langchainjs/pull/4308)
- langchain\[minor]: Add imports migration script by
[@&#8203;bracesproul](https://togithub.com/bracesproul) in
[https://github.com/langchain-ai/langchainjs/pull/4103](https://togithub.com/langchain-ai/langchainjs/pull/4103)
- langchain\[patch]: update metadata and default expand param for
confluence loader by [@&#8203;fuleinist](https://togithub.com/fuleinist)
in
[https://github.com/langchain-ai/langchainjs/pull/4220](https://togithub.com/langchain-ai/langchainjs/pull/4220)

#### New Contributors

- [@&#8203;barisbll](https://togithub.com/barisbll) made their first
contribution in
[https://github.com/langchain-ai/langchainjs/pull/4304](https://togithub.com/langchain-ai/langchainjs/pull/4304)

**Full Changelog**:
langchain-ai/langchainjs@0.1.13...0.1.14

</details>

<details>
<summary>openai/openai-node (openai)</summary>

###
[`v4.27.1`](https://togithub.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4271-2024-02-12)

[Compare
Source](https://togithub.com/openai/openai-node/compare/v4.27.0...v4.27.1)

Full Changelog:
[v4.27.0...v4.27.1](https://togithub.com/openai/openai-node/compare/v4.27.0...v4.27.1)

###
[`v4.27.0`](https://togithub.com/openai/openai-node/blob/HEAD/CHANGELOG.md#4270-2024-02-08)

[Compare
Source](https://togithub.com/openai/openai-node/compare/v4.26.1...v4.27.0)

Full Changelog:
[v4.26.1...v4.27.0](https://togithub.com/openai/openai-node/compare/v4.26.1...v4.27.0)

##### Features

- **api:** add `timestamp_granularities`, add `gpt-3.5-turbo-0125` model
([#&#8203;661](https://togithub.com/openai/openai-node/issues/661))
([5016806](https://togithub.com/openai/openai-node/commit/50168066862f66b529bae29f4564741300303246))

##### Chores

- **internal:** fix retry mechanism for ecosystem-test
([#&#8203;663](https://togithub.com/openai/openai-node/issues/663))
([0eb7ed5](https://togithub.com/openai/openai-node/commit/0eb7ed5ca3f7c7b29c316fc7d725d834cee73989))
- respect `application/vnd.api+json` content-type header
([#&#8203;664](https://togithub.com/openai/openai-node/issues/664))
([f4fad54](https://togithub.com/openai/openai-node/commit/f4fad549c5c366d8dd8b936b7699639b895e82a1))

</details>

<details>
<summary>egoist/tsup (tsup)</summary>

### [`v8.0.2`](https://togithub.com/egoist/tsup/releases/tag/v8.0.2)

[Compare
Source](https://togithub.com/egoist/tsup/compare/v8.0.1...v8.0.2)

##### Bug Fixes

- support swc target for mjs
([#&#8203;1081](https://togithub.com/egoist/tsup/issues/1081))
([83c7c7f](https://togithub.com/egoist/tsup/commit/83c7c7f3131ca6d46aaad4de3111c2fd5e5b5c21))

</details>

<details>
<summary>privatenumber/tsx (tsx)</summary>

###
[`v4.7.1`](https://togithub.com/privatenumber/tsx/releases/tag/v4.7.1)

[Compare
Source](https://togithub.com/privatenumber/tsx/compare/v4.7.0...v4.7.1)

##### Bug Fixes

- escape `import.meta.url` passed to esbuild
([#&#8203;474](https://togithub.com/privatenumber/tsx/issues/474))
([e23592e](https://togithub.com/privatenumber/tsx/commit/e23592ea6485cfecfb6915098fc7423fcc03a3b6))
- remove the pipe file before starting the ipc server
([#&#8203;459](https://togithub.com/privatenumber/tsx/issues/459))
([0ed0097](https://togithub.com/privatenumber/tsx/commit/0ed00976165b45cf7928e582ce1debf9d1133ef3))

***

This release is also available on:

- [npm package (@&#8203;latest
dist-tag)](https://www.npmjs.com/package/tsx/v/4.7.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am on Monday" in timezone
America/Chicago, Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/autoblocksai/javascript-sdk).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNzMuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE3My4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:bug Related to a bug, vulnerability, unexpected error with an existing feature lgtm PRs that are ready to be merged as-is size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GoogleGenerativeAIEmbeddings cannot embed more than 100 documents
2 participants