Skip to content

Commit

Permalink
Merge branch 'v0.1' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
bracesproul committed May 13, 2024
2 parents 2b3b194 + dbdb6f9 commit db5ab3f
Show file tree
Hide file tree
Showing 6 changed files with 282 additions and 256 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](../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](/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.
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](../modules/chains/additional/openai_functions/openapi)
- [OpenAPI Chain](/docs/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](../modules/chains/popular/sqlite)
- [SQL Database Chain](/docs/modules/chains/popular/sqlite)

## Agents

Expand Down
13 changes: 11 additions & 2 deletions docs/core_docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ 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 @@ -22,7 +24,8 @@ 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: baseUrl,
trailingSlash: true,

onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
Expand Down Expand Up @@ -130,6 +133,12 @@ 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 @@ -299,7 +308,7 @@ const config = {
}),

scripts: [
"/js/google_analytics.js",
baseUrl + "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",
"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: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 db5ab3f

Please sign in to comment.