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.0.191
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.0.192
Choose a head ref
  • 13 commits
  • 48 files changed
  • 8 contributors

Commits on Nov 16, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    f54225d View commit details
  2. Release 0.0.191

    jacoblee93 committed Nov 16, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    dabaf40 View commit details
  3. Merge pull request #3300 from langchain-ai/release

    Release 0.0.191
    jacoblee93 authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    74e586a View commit details
  4. Delete artifacts (#3305)

    jacoblee93 authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    64b35c4 View commit details
  5. Add missing docs (#3290)

    * add wikipedia tool
    
    * added searxng
    
    * adderd SearchApi
    
    * added pdf load dir
    
    * add cohere example
    
    * chore: lint files
    
    * update examples to use runnable agents
    bracesproul authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8487dec View commit details
  6. Brace/new api refs build (#3303)

    * Update api refs build script
    
    * update scripts
    
    * update scripts, remove unused files
    
    * rm langchain
    
    * cleanup scripts
    
    * gave better name
    
    * remove echo
    
    * Update package.json
    
    * revert cjs
    
    * cr
    
    * rm unused script
    
    * cr
    bracesproul authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b9e9202 View commit details
  7. Fix broken fetch usage for CFW (#3302)

    Fixes #3187
    dqbd authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    7538d6f View commit details
  8. Bump Anthropic + OpenAI versions (#3308)

    * Bump OpenAI version
    
    * Bump Anthropic SDK
    
    * Update test
    
    * Whoops
    jacoblee93 authored Nov 16, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    bb9fb67 View commit details

Commits on Nov 17, 2023

  1. Hotfix pdf (#3306)

    * fix: remove blank space between words when use pdf-loader
    
    * fix: add skipBlank option in pdf-loader
    
    * Change PDF loader instance method name, add docs
    
    * Formatting
    
    ---------
    
    Co-authored-by: ppxu <xyang0110@126.com>
    jacoblee93 and ppxu authored Nov 17, 2023
    1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    6d91724 View commit details
  2. Add PrismaVectorStore filter IN operator (#3304)

    * add Prisma filter IN operator
    
    * better naming
    
    * Update langchain/src/vectorstores/prisma.ts
    
    Co-authored-by: Brace Sproul <braceasproul@gmail.com>
    
    * use typeguard
    
    * add operators doc
    
    * add in operator in doc
    
    * typo
    
    * Update langchain/src/vectorstores/prisma.ts
    
    Co-authored-by: Brace Sproul <braceasproul@gmail.com>
    
    * Update examples/src/indexes/vector_stores/prisma_vectorstore/prisma.ts
    
    Co-authored-by: Brace Sproul <braceasproul@gmail.com>
    
    * prettier
    
    * Update prisma.mdx
    
    * Update prisma.mdx
    
    ---------
    
    Co-authored-by: Brace Sproul <braceasproul@gmail.com>
    Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
    3 people authored Nov 17, 2023
    1
    Copy the full SHA
    da38143 View commit details
  3. feat(apify): support Document[] return type for mapping function (#3262)

    * feat(apify): support Document[] for mapping function
    
    * misc: make it backwards compatible
    omikader authored Nov 17, 2023
    Copy the full SHA
    02f6662 View commit details
  4. Integrate Rockset as a vector store (#3231)

    * Integrate Rockset as a vector store
    
    * address comments
    
    * Mark Rockset as requiring optional dep
    
    * Fix lint
    
    * Fix build
    
    * Format
    
    ---------
    
    Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
    kwadhwa18 and jacoblee93 authored Nov 17, 2023
    1
    Copy the full SHA
    d625ddd View commit details
  5. feat: add file-system based cache (#3089)

    * feat: add file-system based cache
    
    * feat: add file-system based cache
    
    * feat: add file-system based cache
    
    * Rename file_system.ts to file_system.test.ts
    
    * Update file_system.test.ts
    
    * Update file_system.ts
    
    * Fix lint
    
    * Fix build
    
    * Adds docs
    
    * Format
    
    * Format
    
    ---------
    
    Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
    vdeturckheim and jacoblee93 authored Nov 17, 2023
    1
    Copy the full SHA
    a37ae04 View commit details
Showing with 1,476 additions and 452 deletions.
  1. +1 βˆ’0 docs/api_refs/.gitignore
  2. +0 βˆ’23 docs/api_refs/generate_typedoc.sh
  3. +7 βˆ’6 docs/api_refs/package.json
  4. +38 βˆ’3 langchain/scripts/build-for-api-ref-docs.js β†’ docs/api_refs/scripts/generate-api-refs.js
  5. +265 βˆ’263 docs/api_refs/typedoc.json
  6. +22 βˆ’0 docs/core_docs/docs/integrations/document_loaders/file_loaders/pdf.mdx
  7. +21 βˆ’7 docs/core_docs/docs/integrations/document_loaders/web_loaders/pdf.mdx
  8. +5 βˆ’7 docs/core_docs/docs/integrations/text_embedding/cohere.mdx
  9. +19 βˆ’0 docs/core_docs/docs/integrations/tools/searchapi.mdx
  10. +17 βˆ’0 docs/core_docs/docs/integrations/tools/searxng.mdx
  11. +15 βˆ’0 docs/core_docs/docs/integrations/tools/wikipedia.mdx
  12. +2 βˆ’0 docs/core_docs/docs/integrations/vectorstores/prisma.mdx
  13. +26 βˆ’0 docs/core_docs/docs/integrations/vectorstores/rockset.mdx
  14. +19 βˆ’0 docs/core_docs/docs/modules/data_connection/document_loaders/how_to/pdf.mdx
  15. +13 βˆ’0 docs/core_docs/docs/modules/model_io/models/chat/how_to/llm_caching.mdx
  16. +13 βˆ’0 docs/core_docs/docs/modules/model_io/models/llms/how_to/llm_caching.mdx
  17. +2 βˆ’2 docs/core_docs/package.json
  18. +1 βˆ’0 examples/package.json
  19. +16 βˆ’18 examples/src/document_loaders/pdf_directory.ts
  20. +4 βˆ’1 examples/src/indexes/vector_stores/prisma_vectorstore/prisma.ts
  21. +31 βˆ’0 examples/src/indexes/vector_stores/rockset.ts
  22. +10 βˆ’12 examples/src/models/embeddings/cohere.ts
  23. +39 βˆ’28 examples/src/tools/searchapi_google_news.ts
  24. +51 βˆ’38 examples/src/tools/searxng_search.ts
  25. +3 βˆ’0 langchain/.env.example
  26. +6 βˆ’0 langchain/.gitignore
  27. +0 βˆ’1 langchain/experimental/tools/pyinterpreter.cjs
  28. +0 βˆ’1 langchain/experimental/tools/pyinterpreter.d.ts
  29. +0 βˆ’1 langchain/experimental/tools/pyinterpreter.js
  30. +25 βˆ’6 langchain/package.json
  31. +0 βˆ’5 langchain/scripts/build-api-refs.sh
  32. +1 βˆ’0 langchain/scripts/check-tree-shaking.js
  33. +5 βˆ’1 langchain/scripts/create-entrypoints.js
  34. +76 βˆ’0 langchain/src/cache/file_system.ts
  35. +42 βˆ’0 langchain/src/cache/tests/file_system.int.test.ts
  36. +1 βˆ’1 langchain/src/chat_models/bedrock/web.ts
  37. +1 βˆ’1 langchain/src/chat_models/tests/chatanthropic.int.test.ts
  38. +9 βˆ’2 langchain/src/document_loaders/fs/pdf.ts
  39. +14 βˆ’6 langchain/src/document_loaders/web/apify_dataset.ts
  40. +9 βˆ’2 langchain/src/document_loaders/web/pdf.ts
  41. +1 βˆ’1 langchain/src/llms/bedrock/web.ts
  42. +2 βˆ’0 langchain/src/load/import_constants.ts
  43. +6 βˆ’0 langchain/src/load/import_type.d.ts
  44. +24 βˆ’2 langchain/src/vectorstores/prisma.ts
  45. +453 βˆ’0 langchain/src/vectorstores/rockset.ts
  46. +89 βˆ’0 langchain/src/vectorstores/tests/rockset.int.test.ts
  47. +0 βˆ’1 package.json
  48. +72 βˆ’13 yarn.lock
1 change: 1 addition & 0 deletions docs/api_refs/.gitignore
Original file line number Diff line number Diff line change
@@ -37,3 +37,4 @@ next-env.d.ts

# Autogenerated docs
/public/*
/langchain
23 changes: 0 additions & 23 deletions docs/api_refs/generate_typedoc.sh

This file was deleted.

13 changes: 7 additions & 6 deletions docs/api_refs/package.json
Original file line number Diff line number Diff line change
@@ -3,12 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"typedoc": "npx typedoc --options typedoc.json && yarn update-css",
"build:typedoc": "bash ./generate_typedoc.sh",
"add-ignore-comments": "cd ../../langchain && node scripts/build-for-api-ref-docs.js",
"update-css": "node ./scripts/update-typedoc-css.js",
"build": "yarn build:typedoc && next build",
"dev": "next dev -p 3001",
"typedoc": "npx typedoc --options typedoc.json",
"build:scripts": "node ./scripts/generate-api-refs.js && node ./scripts/update-typedoc-css.js",
"build": "yarn build:scripts && next build",
"start": "yarn build && next start -p 3001",
"lint": "next lint"
},
@@ -18,14 +16,17 @@
"react-dom": "^18"
},
"devDependencies": {
"@types/fs-extra": "^11",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"autoprefixer": "^10.0.1",
"eslint": "^8",
"eslint-config-next": "14.0.1",
"fs-extra": "^11.1.1",
"postcss": "^8",
"tailwindcss": "^3.3.0",
"ts-morph": "^20.0.0",
"typescript": "^5"
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { Project, SyntaxKind } from "ts-morph";
const { Project, SyntaxKind } = require("ts-morph");
const { exec } = require("child_process");
const fse = require("fs-extra");

async function main() {
async function updateCodeWithIgnoreTags(tsConfigFilePath) {
const project = new Project({
tsConfigFilePath: "./tsconfig.json",
tsConfigFilePath,
});
const sourceFiles = project.getSourceFiles();
/**
@@ -64,4 +66,37 @@ async function main() {

await project.save();
}

async function copyLangChain(pathToLangChain) {
// copy the entire langchain dir to .

await fse.copy(pathToLangChain, "./langchain", { overwrite: false });
return {
rootPath: `${process.cwd()}/langchain`,
tsConfigPath: `${process.cwd()}/langchain/tsconfig.json`,
};
}

async function deleteLangChain(pathToLangChain) {
// delete the langchain dir
await fse.remove(pathToLangChain);
}

const execAsync = async (command, options) => new Promise((resolve, reject) => {
exec(command, options, (err, stdout, stderr) => {
if (err) {
reject(err);
} else {
resolve(stdout);
}
});
});

async function main() {
const pathToLangChain = "../../langchain";
const { rootPath, tsConfigPath } = await copyLangChain(pathToLangChain);
await updateCodeWithIgnoreTags(tsConfigPath);
await execAsync("yarn typedoc");
await deleteLangChain(rootPath);
}
main();
Loading