Skip to content

Commit

Permalink
0.1[patch]: update 0.1 branch with main changes (#5344)
Browse files Browse the repository at this point in the history
* core[minor]: RunnableLambda should consume (async) iterator if the wrapped function returns one (#5342)

* core: RunnableLambda should consume async iterator if the wrapped function returns one

* Consume iterators too

* Add tests

* Dont interpret arrays/sets/etc as iterators

* Implement in invoke too

* Fix async storage propagation

* Handle any async iterable

* Add more tests

* community[minor]: Improve Azure Cosmos DB vector store support (#5197)

* feat: add delete by filter

* feat: return added document ids

* fix: delete by id

* test: update integration tests

* feat: add automatic index creation

* Update azure_cosmosdb.ts

* refactor: separate ids and filter params for delete()

* refactor: use a single param for delete

* test: fix unit tests

* Address feedback

---------

Co-authored-by: Jacob Lee <jacoblee93@gmail.com>

* Revert "Merge branch 'v0.1' into main" (#5345)

This reverts commit db5ab3f, reversing
changes made to 2b3b194.

---------

Co-authored-by: Nuno Campos <nuno@boringbits.io>
Co-authored-by: Yohan Lasorsa <noda@free.fr>
Co-authored-by: Jacob Lee <jacoblee93@gmail.com>
  • Loading branch information
4 people committed May 13, 2024
1 parent dbdb6f9 commit 444d319
Show file tree
Hide file tree
Showing 14 changed files with 646 additions and 323 deletions.
2 changes: 1 addition & 1 deletion docs/core_docs/docs/modules/model_io/concepts.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ There are a few parsers dedicated to working with OpenAI function calling. They

### Agent Output Parsers

[Agents](/docs/modules/agents/) are systems that use language models to determine what steps to take. The output of a language model therefore needs to be parsed into some schema that can represent what actions (if any) are to be taken. AgentOutputParsers are responsible for taking raw LLM or ChatModel output and converting it to that schema. The logic inside these output parsers can differ depending on the model and prompting strategy being used.
[Agents](../agents) are systems that use language models to determine what steps to take. The output of a language model therefore needs to be parsed into some schema that can represent what actions (if any) are to be taken. AgentOutputParsers are responsible for taking raw LLM or ChatModel output and converting it to that schema. The logic inside these output parsers can differ depending on the model and prompting strategy being used.
2 changes: 1 addition & 1 deletion docs/core_docs/docs/use_cases/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you are just getting started and you have relatively simple APIs, you should
Chains are a sequence of predetermined steps, so they are good to get started with as they give you more control and let you
understand what is happening better.

- [OpenAPI Chain](/docs/modules/chains/additional/openai_functions/openapi)
- [OpenAPI Chain](../modules/chains/additional/openai_functions/openapi)

## Agents

Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/use_cases/tabular.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If you are just getting started, and you have relatively small/simple tabular da
Chains are a sequence of predetermined steps, so they are good to get started with as they give you more control and let you
understand what is happening better.

- [SQL Database Chain](/docs/modules/chains/popular/sqlite)
- [SQL Database Chain](../modules/chains/popular/sqlite)

## Agents

Expand Down
13 changes: 2 additions & 11 deletions docs/core_docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ const mdxComponentsPath = path.resolve(__dirname, "docs", "mdx_components");
const baseLightCodeBlockTheme = require("prism-react-renderer/themes/vsLight");
const baseDarkCodeBlockTheme = require("prism-react-renderer/themes/vsDark");

const baseUrl = "/v0.1/";

/** @type {import('@docusaurus/types').Config} */
const config = {
title: "🦜️🔗 Langchain",
Expand All @@ -24,8 +22,7 @@ const config = {
url: "https://js.langchain.com",
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: baseUrl,
trailingSlash: true,
baseUrl: "/",

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
Expand Down Expand Up @@ -133,12 +130,6 @@ const config = {
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
// TODO(brace) -- Uncomment once 0.2 is merged to main & site is live!
// announcementBar: {
// content:
// 'LangChain v0.2 is coming soon! Preview the new docs <a href="/v0.2/docs/introduction/">here</a>.',
// isCloseable: true,
// },
prism: {
theme: {
...baseLightCodeBlockTheme,
Expand Down Expand Up @@ -308,7 +299,7 @@ const config = {
}),

scripts: [
baseUrl + "js/google_analytics.js",
"/js/google_analytics.js",
{
src: "https://www.googletagmanager.com/gtag/js?id=G-TVSL7JBE9Y",
async: true,
Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"docusaurus": "docusaurus",
"start": "yarn build:typedoc && yarn quarto && rimraf ./docs/api && NODE_OPTIONS=--max-old-space-size=7168 docusaurus start",
"build": "yarn clean && yarn build:typedoc && yarn quarto && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:vercel": "yarn clean && yarn build:typedoc:vercel && bash ./scripts/vercel_build.sh && yarn quarto:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build && mv build v0.1 && mkdir build && mv v0.1 build && mv build/v0.1/404.html build",
"build:vercel": "yarn clean && yarn build:typedoc:vercel && bash ./scripts/vercel_build.sh && yarn quarto:vercel && rimraf ./build && NODE_OPTIONS=--max-old-space-size=7168 DOCUSAURUS_SSR_CONCURRENCY=4 docusaurus build",
"build:typedoc": "yarn workspace api_refs build",
"build:typedoc:vercel": "yarn workspace api_refs build:vercel",
"swizzle": "docusaurus swizzle",
Expand Down
Loading

0 comments on commit 444d319

Please sign in to comment.