Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: langchain-ai/langchainjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.1.4
Choose a base ref
...
head repository: langchain-ai/langchainjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.1.5
Choose a head ref

Commits on Jan 18, 2024

  1. Release 0.1.4

    jacoblee93 committed Jan 18, 2024
    Copy the full SHA
    bbe53ef View commit details
  2. Merge pull request #4072 from langchain-ai/release

    langchain[patch]: Release 0.1.4
    jacoblee93 authored Jan 18, 2024
    2
    Copy the full SHA
    238d152 View commit details
  3. Add Pinecone integration (#4062)

    * Scaffold integration directory
    
    * Updated package information and added Pinecone database integration to langchain-pinecone
    
    * Remove unneeded scaffolded files
    
    * Implement Pinecone VectorStore methods
    
    * Begin placing test files
    
    * Remove boilerplate from README
    
    * Update path to vector store implementation in test
    
    * Polish, lint, format
    
    * Docs, deprecations, examples
    
    * Import
    
    * Update import
    
    * 0.0.1
    
    ---------
    
    Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
    zackproser and jacoblee93 authored Jan 18, 2024
    1
    Copy the full SHA
    a6faae1 View commit details
  4. 1
    Copy the full SHA
    53c4acd View commit details

Commits on Jan 19, 2024

  1. docs[minor]: Autogenerate typedoc config, add to gitignore. (#4079)

    * ignore typedoc
    
    * gitignore
    
    * cr
    
    * cr
    bracesproul authored Jan 19, 2024
    1
    Copy the full SHA
    49eaab9 View commit details
  2. all[patch]: Run prettier on scripts folders too (#4080)

    * all[patch]: Run prettier on scripts folders too
    
    * no scripts folder in examples
    
    * ran format
    
    * format api refs
    
    * cr
    
    * format
    bracesproul authored Jan 19, 2024
    1
    Copy the full SHA
    f465c28 View commit details
  3. community[patch]: Add fallback for missing metadata in Redis documents (

    #4085)
    
    * Add fallback for missing metadata in Redis documents
    
    * Fix integration test teardown
    jacoblee93 authored Jan 19, 2024
    1
    Copy the full SHA
    95b4d3b View commit details
  4. core[minor]: Buffer the first chunk on .stream() calls to catch strea…

    …ming errors immediately on startup (#4083)
    
    * Add a way to catch errors immediately
    
    * Make buffering runnable streaming the default behavior
    
    * Make promise resolution more explicit
    jacoblee93 authored Jan 19, 2024
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    31a38a3 View commit details
  5. langchain[minor]: update sql_utils: add schema for mssql (#4006)

    * update sql_utils: add schema for mssql
    
    * Refactor: Remove redundant code in sql_utils
    
    * Lint and format code
    
    ---------
    
    Co-authored-by: Brace Sproul <braceasproul@gmail.com>
    therajatg and bracesproul authored Jan 19, 2024
    1
    Copy the full SHA
    9e74a4a View commit details
  6. langchain[patch]: Correcting token text-splitting behavior (#4078)

    * Correcting token text-splitting behavior
    
    * Changing to consts
    
    * Adding test
    
    * Fix test
    
    ---------
    
    Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
    matthewdparker and jacoblee93 authored Jan 19, 2024
    1
    Copy the full SHA
    7e8bbb4 View commit details
  7. Release 0.1.17

    jacoblee93 committed Jan 19, 2024
    Copy the full SHA
    105817b View commit details
  8. Merge pull request #4088 from langchain-ai/release

    core[patch]: Release 0.1.17
    jacoblee93 authored Jan 19, 2024
    1
    Copy the full SHA
    381496f View commit details
  9. Release 0.0.19

    jacoblee93 committed Jan 19, 2024
    Copy the full SHA
    4d79516 View commit details
  10. Merge pull request #4089 from langchain-ai/release

    community[patch]: Release 0.0.19
    jacoblee93 authored Jan 19, 2024
    1
    Copy the full SHA
    322de68 View commit details
  11. 1
    Copy the full SHA
    e8d88f1 View commit details
  12. all[patch]: add prettier config files (#4087)

    * add prettier config files
    
    * cr
    
    * cr
    
    * add config path
    
    * fix pinecone lint scripts
    
    * drop build artifacts
    
    * write file in templates
    
    * cr
    bracesproul authored Jan 19, 2024
    1
    Copy the full SHA
    4c35736 View commit details

Commits on Jan 21, 2024

  1. scripts[major]: Add LangChain scripts package (#4093)

    * scripts[major]: Add LangChain scripts package
    
    * prefix node modules w/ node:
    
    * one more node: prefix
    
    * move type
    
    * cr
    bracesproul authored Jan 21, 2024
    1
    Copy the full SHA
    30e3d3c View commit details
  2. 1
    Copy the full SHA
    67c9d02 View commit details
  3. Release 0.0.1 (#4102)

    bracesproul authored Jan 21, 2024
    1
    Copy the full SHA
    800719c View commit details
  4. fixed issue #4097 (#4098)

    * fixed issue #4097
    
    * Update index.mdx
    
    ---------
    
    Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
    ritvikPuranik and jacoblee93 authored Jan 21, 2024
    1
    Copy the full SHA
    d84cfb3 View commit details
  5. langchain[patch]: Allow headers to be passed in remote runnable reque…

    …sts, docs (#4107)
    
    * Allow headers to be passed in remote runnable requests, docs
    
    * Fix broken link
    jacoblee93 authored Jan 21, 2024
    1
    Copy the full SHA
    9ed1b27 View commit details
  6. Release 0.1.5

    jacoblee93 committed Jan 21, 2024
    Copy the full SHA
    f794c56 View commit details
  7. Merge pull request #4108 from langchain-ai/release

    langchain[patch]: Release 0.1.5
    jacoblee93 authored Jan 21, 2024
    1
    Copy the full SHA
    18a9802 View commit details
Showing with 3,345 additions and 893 deletions.
  1. +17 βˆ’1 .prettierrc
  2. +2 βˆ’1 docs/api_refs/.gitignore
  3. +5 βˆ’5 docs/api_refs/next.config.js
  4. +3 βˆ’0 docs/api_refs/package.json
  5. +1 βˆ’1 docs/api_refs/postcss.config.js
  6. +46 βˆ’5 docs/api_refs/scripts/create-entrypoints.js
  7. +0 βˆ’1 docs/api_refs/scripts/update-typedoc-css.js
  8. +9 βˆ’9 docs/api_refs/tailwind.config.ts
  9. +0 βˆ’408 docs/api_refs/typedoc.json
  10. +32 βˆ’25 docs/api_refs/typedoc_plugins/hide_underscore_lc.js
  11. +40 βˆ’0 docs/core_docs/docs/ecosystem/langserve.mdx
  12. +22 βˆ’195 docs/core_docs/docs/integrations/vectorstores/pinecone.mdx
  13. +1 βˆ’1 docs/core_docs/docs/modules/data_connection/retrievers/self_query/pinecone-self-query.mdx
  14. +0 βˆ’1 docs/core_docs/docs/modules/model_io/index.mdx
  15. +19 βˆ’0 examples/.prettierrc
  16. +4 βˆ’3 examples/package.json
  17. +21 βˆ’0 examples/src/ecosystem/langsmith.ts
  18. +18 βˆ’0 examples/src/ecosystem/langsmith_options.ts
  19. +40 βˆ’0 examples/src/ecosystem/langsmith_stream_log.ts
  20. +0 βˆ’67 examples/src/indexes/vector_stores/pinecone.ts
  21. +70 βˆ’0 examples/src/indexes/vector_stores/pinecone/delete_docs.ts
  22. +37 βˆ’0 examples/src/indexes/vector_stores/pinecone/index_docs.ts
  23. +26 βˆ’0 examples/src/indexes/vector_stores/pinecone/mmr.ts
  24. +31 βˆ’0 examples/src/indexes/vector_stores/pinecone/query_docs.ts
  25. +1 βˆ’1 examples/src/prompts/semantic_similarity_example_selector_custom_retriever.ts
  26. +1 βˆ’1 examples/src/retrievers/pinecone_self_query.ts
  27. +19 βˆ’0 langchain-core/.prettierrc
  28. +3 βˆ’3 langchain-core/package.json
  29. +23 βˆ’22 langchain-core/scripts/create-entrypoints.js
  30. +18 βˆ’5 langchain-core/src/runnables/base.ts
  31. +11 βˆ’0 langchain-core/src/runnables/tests/runnable.test.ts
  32. +6 βˆ’2 langchain-core/src/utils/stream.ts
  33. +14 βˆ’1 langchain-core/src/utils/testing/index.ts
  34. +19 βˆ’0 langchain/.prettierrc
  35. +3 βˆ’3 langchain/package.json
  36. +35 βˆ’36 langchain/scripts/create-entrypoints.js
  37. +34 βˆ’16 langchain/scripts/generate-docs-llm-compatibility-table.js
  38. +2 βˆ’0 langchain/src/chat_models/anthropic.ts
  39. +9 βˆ’3 langchain/src/experimental/chat_models/anthropic_functions.ts
  40. +2 βˆ’2 langchain/src/retrievers/self_query/pinecone.ts
  41. +3 βˆ’1 langchain/src/runnables/remote.ts
  42. +13 βˆ’0 langchain/src/tests/text_splitter.test.ts
  43. +6 βˆ’6 langchain/src/text_splitter.ts
  44. +15 βˆ’10 langchain/src/util/sql_utils.ts
  45. +2 βˆ’0 langchain/src/vectorstores/pinecone.ts
  46. +29 βˆ’12 libs/create-langchain-integration/helpers/default_file_contents.ts
  47. +9 βˆ’1 libs/create-langchain-integration/helpers/templates.ts
  48. +19 βˆ’0 libs/create-langchain-integration/template/.prettierrc
  49. +2 βˆ’2 libs/create-langchain-integration/template/package.json
  50. +19 βˆ’0 libs/langchain-anthropic/.prettierrc
  51. +2 βˆ’2 libs/langchain-anthropic/package.json
  52. +1 βˆ’1 libs/langchain-anthropic/scripts/create-entrypoints.js
  53. +19 βˆ’0 libs/langchain-cloudflare/.prettierrc
  54. +2 βˆ’2 libs/langchain-cloudflare/package.json
  55. +19 βˆ’0 libs/langchain-cohere/.prettierrc
  56. +2 βˆ’2 libs/langchain-cohere/package.json
  57. +19 βˆ’0 libs/langchain-community/.prettierrc
  58. +3 βˆ’3 libs/langchain-community/package.json
  59. +2 βˆ’0 libs/langchain-community/src/chat_models/bedrock/web.ts
  60. +4 βˆ’0 libs/langchain-community/src/vectorstores/pinecone.ts
  61. +4 βˆ’2 libs/langchain-community/src/vectorstores/redis.ts
  62. +11 βˆ’5 libs/langchain-community/src/vectorstores/tests/redis.int.test.ts
  63. +19 βˆ’0 libs/langchain-google-genai/.prettierrc
  64. +2 βˆ’2 libs/langchain-google-genai/package.json
  65. +19 βˆ’0 libs/langchain-mistralai/.prettierrc
  66. +2 βˆ’2 libs/langchain-mistralai/package.json
  67. +6 βˆ’7 libs/langchain-mistralai/scripts/create-entrypoints.js
  68. +19 βˆ’0 libs/langchain-openai/.prettierrc
  69. +2 βˆ’2 libs/langchain-openai/package.json
  70. +1 βˆ’1 libs/langchain-openai/scripts/create-entrypoints.js
  71. +66 βˆ’0 libs/langchain-pinecone/.eslintrc.cjs
  72. +6 βˆ’0 libs/langchain-pinecone/.gitignore
  73. +19 βˆ’0 libs/langchain-pinecone/.prettierrc
  74. +12 βˆ’0 libs/langchain-pinecone/.release-it.json
  75. +21 βˆ’0 libs/langchain-pinecone/LICENSE
  76. +53 βˆ’0 libs/langchain-pinecone/README.md
  77. +20 βˆ’0 libs/langchain-pinecone/jest.config.cjs
  78. +12 βˆ’0 libs/langchain-pinecone/jest.env.cjs
  79. +83 βˆ’0 libs/langchain-pinecone/package.json
  80. +80 βˆ’0 libs/langchain-pinecone/scripts/check-tree-shaking.js
  81. +100 βˆ’0 libs/langchain-pinecone/scripts/create-entrypoints.js
  82. +77 βˆ’0 libs/langchain-pinecone/scripts/identify-secrets.js
  83. +3 βˆ’0 libs/langchain-pinecone/scripts/jest-setup-after-env.js
  84. +38 βˆ’0 libs/langchain-pinecone/scripts/move-cjs-to-dist.js
  85. +6 βˆ’0 libs/langchain-pinecone/scripts/release-branch.sh
  86. +1 βˆ’0 libs/langchain-pinecone/src/index.ts
  87. +6 βˆ’4 .../vectorstores/tests/pinecone.int.test.ts β†’ langchain-pinecone/src/tests/vectorstores.int.test.ts}
  88. +3 βˆ’3 ...nity/src/vectorstores/tests/pinecone.test.ts β†’ langchain-pinecone/src/tests/vectorstores.test.ts}
  89. +368 βˆ’0 libs/langchain-pinecone/src/vectorstores.ts
  90. +8 βˆ’0 libs/langchain-pinecone/tsconfig.cjs.json
  91. +23 βˆ’0 libs/langchain-pinecone/tsconfig.json
  92. +66 βˆ’0 libs/langchain-scripts/.eslintrc.cjs
  93. +6 βˆ’0 libs/langchain-scripts/.gitignore
  94. +19 βˆ’0 libs/langchain-scripts/.prettierrc
  95. +12 βˆ’0 libs/langchain-scripts/.release-it.json
  96. +21 βˆ’0 libs/langchain-scripts/LICENSE
  97. +9 βˆ’0 libs/langchain-scripts/README.md
  98. +19 βˆ’0 libs/langchain-scripts/jest.config.cjs
  99. +12 βˆ’0 libs/langchain-scripts/jest.env.cjs
  100. +77 βˆ’0 libs/langchain-scripts/package.json
  101. +80 βˆ’0 libs/langchain-scripts/scripts/check-tree-shaking.js
  102. +100 βˆ’0 libs/langchain-scripts/scripts/create-entrypoints.js
  103. +77 βˆ’0 libs/langchain-scripts/scripts/identify-secrets.js
  104. +38 βˆ’0 libs/langchain-scripts/scripts/move-cjs-to-dist.js
  105. +6 βˆ’0 libs/langchain-scripts/scripts/release-branch.sh
  106. +105 βˆ’0 libs/langchain-scripts/src/check-tree-shaking.ts
  107. +404 βˆ’0 libs/langchain-scripts/src/create-entrypoints.ts
  108. +100 βˆ’0 libs/langchain-scripts/src/identify-secrets.ts
  109. +4 βˆ’0 libs/langchain-scripts/src/index.ts
  110. +46 βˆ’0 libs/langchain-scripts/src/move-cjs-to-dist.ts
  111. +75 βˆ’0 libs/langchain-scripts/src/types.ts
  112. +33 βˆ’0 libs/langchain-scripts/tsconfig.json
  113. +19 βˆ’0 libs/langchain-yandex/.prettierrc
  114. +2 βˆ’2 libs/langchain-yandex/package.json
  115. +2 βˆ’2 package.json
  116. +6 βˆ’0 test-int-deps-docker-compose.yml
  117. +83 βˆ’1 yarn.lock
18 changes: 17 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": false,
"quoteProps": "as-needed",
"jsxSingleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"arrowParens": "always",
"requirePragma": false,
"insertPragma": false,
"proseWrap": "preserve",
"htmlWhitespaceSensitivity": "css",
"vueIndentScriptAndStyle": false,
"endOfLine": "lf"
}
}
3 changes: 2 additions & 1 deletion docs/api_refs/.gitignore
Original file line number Diff line number Diff line change
@@ -38,4 +38,5 @@ next-env.d.ts
# Autogenerated docs
/public/*
/langchain
/langchain-core
/langchain-core
typedoc.json
10 changes: 5 additions & 5 deletions docs/api_refs/next.config.js
Original file line number Diff line number Diff line change
@@ -3,12 +3,12 @@ const nextConfig = {
async redirects() {
return [
{
source: '/',
destination: '/index.html',
source: "/",
destination: "/index.html",
permanent: false,
},
]
];
},
}
};

module.exports = nextConfig
module.exports = nextConfig;
3 changes: 3 additions & 0 deletions docs/api_refs/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,8 @@
"build:deps": "yarn run turbo:command build --filter=!api_refs --filter=!core_docs --filter=!examples --filter=!create-langchain-integration --concurrency=1",
"start": "yarn build && next start -p 3001",
"lint": "next lint",
"format": "prettier --write \"**/*.{js,jsx,ts,tsx}\"",
"format:check": "prettier --check \"**/*.{js,jsx,ts,tsx}\"",
"clean": "rm -rf .next .turbo public/ && mkdir public"
},
"dependencies": {
@@ -26,6 +28,7 @@
"eslint": "^8",
"eslint-config-next": "14.0.1",
"postcss": "^8",
"prettier": "^2.8.3",
"tailwindcss": "^3.3.0",
"ts-morph": "^20.0.0",
"typedoc": "^0.25.6",
2 changes: 1 addition & 1 deletion docs/api_refs/postcss.config.js
Original file line number Diff line number Diff line change
@@ -3,4 +3,4 @@ module.exports = {
tailwindcss: {},
autoprefixer: {},
},
}
};
51 changes: 46 additions & 5 deletions docs/api_refs/scripts/create-entrypoints.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,32 @@ const { Project, SyntaxKind } = require("ts-morph");
const fs = require("fs");
const path = require("path");

const BASE_TYPEDOC_CONFIG = {
$schema: "https://typedoc.org/schema.json",
out: "public",
sort: [
"kind",
"visibility",
"instance-first",
"required-first",
"alphabetical",
],
plugin: ["./typedoc_plugins/hide_underscore_lc.js"],
tsconfig: "../../tsconfig.json",
readme: "none",
excludePrivate: true,
excludeInternal: true,
excludeExternals: true,
excludeNotDocumented: false,
includeVersion: true,
sourceLinkTemplate:
"https://github.com/langchain-ai/langchainjs/blob/{gitRevision}/{path}#L{line}",
logLevel: "Error",
name: "LangChain.js",
skipErrorChecking: true,
exclude: ["dist"],
};

/**
*
* @param {string} relativePath
@@ -18,14 +44,18 @@ function main() {
const workspaces = fs
.readdirSync("../../libs/")
.filter((dir) => dir.startsWith("langchain-"))
.map((dir) => path.join("../../libs/", dir, "/scripts/create-entrypoints.js"));
.map((dir) =>
path.join("../../libs/", dir, "/scripts/create-entrypoints.js")
);
const entrypointFiles = [
"../../langchain/scripts/create-entrypoints.js",
"../../langchain-core/scripts/create-entrypoints.js",
...workspaces,
];
/** @type {Array<string>} */
const blacklistedEntrypoints = JSON.parse(fs.readFileSync("./blacklisted-entrypoints.json"));
const blacklistedEntrypoints = JSON.parse(
fs.readFileSync("./blacklisted-entrypoints.json")
);

const entrypoints = new Set([]);
entrypointFiles.forEach((entrypointFile) => {
@@ -66,12 +96,23 @@ function main() {

Object.values(entrypointsObject)
.filter((key) => !deprecatedNodeOnly.includes(key))
.filter((key) => !blacklistedEntrypoints.find((blacklistedItem) => blacklistedItem === `${entrypointDir}/src/${key}.ts`))
.filter(
(key) =>
!blacklistedEntrypoints.find(
(blacklistedItem) =>
blacklistedItem === `${entrypointDir}/src/${key}.ts`
)
)
.map((key) => entrypoints.add(`${entrypointDir}/src/${key}.ts`));
});

updateJsonFile("./typedoc.json", (json) => ({
...json,
// Check if the `./typedoc.json` file exists, since it is gitignored by default
if (!fs.existsSync("./typedoc.json")) {
fs.writeFileSync("./typedoc.json", "{}\n");
}

updateJsonFile("./typedoc.json", () => ({
...BASE_TYPEDOC_CONFIG,
entryPoints: Array.from(entrypoints),
}));
}
1 change: 0 additions & 1 deletion docs/api_refs/scripts/update-typedoc-css.js
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ async function main() {
}
`;


let file = await readFile("./public/assets/style.css", "utf-8");
file += css;
await writeFile("./public/assets/style.css", file);
18 changes: 9 additions & 9 deletions docs/api_refs/tailwind.config.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type { Config } from 'tailwindcss'
import type { Config } from "tailwindcss";

const config: Config = {
content: [
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}',
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
"gradient-conic":
"conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
},
},
},
plugins: [],
}
export default config
};
export default config;
Loading