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

(new docs): update branch and resolve conflicts around build #21271

Closed
wants to merge 111 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
a7a4630
community[patch]: Modify the text field type and add new exception ha…
19374242 Apr 30, 2024
28b0b0d
community[patch]: Fix for github issue #17690 (#20117)
davidkgp Apr 30, 2024
ea43c66
community[patch]: Fix Bedrock Mistral stop sequence request key (#20115)
jonathancaevans Apr 30, 2024
d7e1275
community[patch]: allows using `text-generation-inference` /generate …
AIexanderDicke Apr 30, 2024
fa4124b
community[minor]: add mintbase loader to langchain (#20089)
kurodenjiro Apr 30, 2024
db14d43
[Core] Feat Pretty Print Tool calls (#20997)
hinthornw Apr 30, 2024
d6e9bd3
docs: Bump cassio min version in docs (#21081)
cbornet Apr 30, 2024
5c77f45
community[minor]: Add async methods to CassandraCache and CassandraSe…
cbornet Apr 30, 2024
845d8e0
langchain[patch]: Update handling of deprecation warnings (#21083)
eyurtsev Apr 30, 2024
5c63ac3
[Patch] Dedent docstring (#20959)
hinthornw Apr 30, 2024
c8f18a2
langchain[patch]: Update import handling in `adapters` (#21079)
eyurtsev Apr 30, 2024
efe27ef
infra: tag non-langchain releases (#20805)
efriis Apr 30, 2024
748f2ba
core: release 0.1.47 (#21094)
efriis Apr 30, 2024
8f38b7a
multiple: Remove unnecessary Ruff suppression comments (#21050)
charliermarsh Apr 30, 2024
3c064a7
core[minor],langchain[patch],community[patch]: Move storage interface…
eyurtsev Apr 30, 2024
b9c53e9
community: release 0.0.35 (#21104)
efriis Apr 30, 2024
b0b1a67
community[patch]: Skip unexpected 404 HTTP Error in Arxiv download (#…
jkpawlowski96 Apr 30, 2024
f1c3687
community[patch]: Using the right encoding to parse the web page in R…
fubuki8087 Apr 30, 2024
3e74936
community[minor]: bump version of LayerupSecurity, add support for un…
JamsheedMistri Apr 30, 2024
fd94aa8
partner[patch]: Upgrade to Ruff v0.4.2 (#21108)
charliermarsh Apr 30, 2024
dbdfa3d
infra: fix minimum version install to force pypi install (#21112)
efriis Apr 30, 2024
2407c35
core: release 0.1.48 (#21113)
efriis Apr 30, 2024
8a62fb0
community: release 0.0.36 (#21118)
efriis Apr 30, 2024
aec13a6
langchain[patch]: Migrate callbacks module to use optional imports fo…
eyurtsev Apr 30, 2024
9b6d04a
langchain[patch]: Migrate document transformers (#21098)
eyurtsev Apr 30, 2024
8658d52
langchain[patch]: Upgrade prompts to optional imports (#21078)
eyurtsev Apr 30, 2024
3853fe9
langchain[patch]: Migrate graphs to use optional community imports (#…
eyurtsev Apr 30, 2024
9e788f0
langchain[patch]: Migrate output parsers to support optional communit…
eyurtsev Apr 30, 2024
e4f51f5
langchain[patch]: Migrate tools to treat community imports as optiona…
eyurtsev Apr 30, 2024
bf95414
langchain[minor]: enhance unit test to test imports recursively (#21122)
eyurtsev Apr 30, 2024
5f8a307
infra: same tagging for langchain (#21126)
efriis Apr 30, 2024
6c938da
langchain: release 0.1.17 (#21125)
efriis Apr 30, 2024
14422a4
langchain: fix core dep (#21128)
efriis Apr 30, 2024
6d3e9ea
docs: format (#21132)
baskaryan Apr 30, 2024
3441a11
docs: minor changes in sambanova community integration docs (#21129)
jhpiedrahitao Apr 30, 2024
0f7f448
community[patch]: add delete() method to AzureSearch vector store (#2…
MacanPN Apr 30, 2024
bef50de
openai[patch]: fix special token default behavior (#21131)
baskaryan May 1, 2024
8d2909e
upstage[minor]: Update few codes and add upstage loader in pdf sectio…
junkeon May 1, 2024
c9e96bb
community[patch]: Fix neo4j enhanced schema bugs (#21072)
tomasonjo May 1, 2024
a36935b
docs: updated docs on langchain_google_community (#21064)
lkuligin May 1, 2024
5a89094
docs: remove repetitive words (#21058)
tianzedavid May 1, 2024
67e6744
docs: fix some notebook formatting (#21136)
efriis May 1, 2024
7860e4c
experimental[patch]: Add support for non-function calling LLMs in llm…
tomasonjo May 1, 2024
1fdf63f
community[patch]: update package name to bagelML (#19948)
ihpolash May 1, 2024
3b473d1
experimental: clean python repl input(experimental:Added code for Pyt…
SheldonLiu0412 May 1, 2024
45ddf4d
community[patch]: Update comments for lazy_load method (#21063)
Noah0115 May 1, 2024
12b1caf
openai[patch]: add tests for secret_str for keys (#20982)
sepiatone May 1, 2024
8a01760
infra: Sync devcontainer.json and compose file mount location (#20461)
stuartleeks May 1, 2024
86fe484
docs: Docs (sample notebook) for Vertex DIY RAG Ranking API (#21054)
Abhishekbhagwat May 1, 2024
ab55f69
[Core] Tracing: update parent run_tree's child_runs (#21049)
hinthornw May 1, 2024
2fcab9a
langchain[patch]: Upgrade storage to treat langchain community as opt…
eyurtsev May 1, 2024
2b10c4d
ci: Use `ruff check` in Makefile (#21138)
charliermarsh May 1, 2024
d640605
langchain[patch]: Migrate chat loaders to optional community imports …
eyurtsev May 1, 2024
86ff8a3
langchain[patch]: Update docstore module to use optional imports from…
eyurtsev May 1, 2024
aa0bc74
langchain[patch]: Migrate agents module into optional imports for com…
eyurtsev May 1, 2024
1ce1a10
langchain[patch],community[minor]: Move graph index creator (#20795)
eyurtsev May 1, 2024
2a6f78a
community[minor]: Rememberizer retriever (#20052)
ea-open-source May 1, 2024
4d1c21d
community[patch]: Fix alternative name in deprecation notice for sql_…
hwchase17 May 1, 2024
bd38073
👥 Update LangChain people data (#21143)
jacoblee93 May 1, 2024
0e5bf16
langchain[patch]: Migrate document loaders to use optional langchain …
eyurtsev May 1, 2024
8b4b75e
docs: standardize vertexai params (#20167)
baskaryan May 1, 2024
b879184
langchain[patch]: embedddings distance move import of openai embeddin…
eyurtsev May 1, 2024
7a39fe6
langchain[patch]: Migrate utilities to handle langchain community as …
eyurtsev May 1, 2024
642975d
partners: AI21 Labs Jamba Support (#20815)
Josephasafg May 1, 2024
daab978
ai21: release 0.1.4 (#21151)
efriis May 1, 2024
7230e43
langchain[patch]: Migrate top level files to use optional langchain c…
eyurtsev May 1, 2024
2f709d9
langchain[patch]: Migrate vectorstores to use optional langchain comm…
eyurtsev May 1, 2024
59f10ab
langchain[patch]: Migrate embeddings to optional imports (#21099)
eyurtsev May 1, 2024
43110da
langchain[patch]: Update some agent tool kits to handle community imp…
eyurtsev May 1, 2024
bec3eee
langchain[patch]: Migrate retrievers to use optional langchain commun…
eyurtsev May 1, 2024
23c5d87
langchain[patch]: Migrate utils to use optional langchain_community (…
eyurtsev May 1, 2024
2914abd
langchain[patch]: Fix how the serializable test identifies serializab…
eyurtsev May 1, 2024
57e8e70
langchain[patch]: Migrate chat models to optional community imports (…
eyurtsev May 1, 2024
9932f49
langchain[patch]: Migrate llms to use optional community imports (#21…
eyurtsev May 1, 2024
44602bd
langchain[patch],community[minor]: Move load_tools to community (#21158)
eyurtsev May 1, 2024
0694538
ai21: fix core version (#21168)
efriis May 1, 2024
9e53fa7
Some more fixes to neo4j enhanced schema (#21139)
tomasonjo May 1, 2024
23fdd32
langchain[patch]: Migrate more code to use optional community in agen…
eyurtsev May 1, 2024
94a8387
langchain[patch]: Migrate more code in utils to use optional langchai…
eyurtsev May 1, 2024
6fa8626
openai[patch]: fix azure open lc serialization, release 0.1.5 (#21159)
baskaryan May 1, 2024
cd4c542
infra: cleanup docs build (#21134)
efriis May 2, 2024
c306364
langchain[patch]: Update more code to use langchain community as an o…
eyurtsev May 2, 2024
c9119b0
langchain[patch],community[minor]: Move some unit tests from langchai…
eyurtsev May 2, 2024
b5c3a04
langchain[patch]: chat histories to handle optional community depende…
eyurtsev May 2, 2024
3cd7fce
langchain[patch],community[minor]: Migrate memory implementations to …
eyurtsev May 2, 2024
bd5d2c2
langchain: import InMemoryChatMessageHistory from core (#21198)
ccurme May 2, 2024
df49404
langchain[patch]: Make more memory code handle community dependency a…
eyurtsev May 2, 2024
663747b
core[patch]: Fixes for convert_messages (#21207)
nfcampos May 2, 2024
d297d90
core[patch]: Release 0.1.49 (#21211)
baskaryan May 2, 2024
7d451d0
community[patch]: Update lancedb.py (#21192)
raghavdixit99 May 2, 2024
ee2c55c
docs: Added documentation on Anthropic models on vertex (#21070)
Adi8885 May 2, 2024
b00fd1d
infra: Undo gh cache removal (#21210)
baskaryan May 2, 2024
683fb45
community[patch]: Refactor CassandraDatabase wrapper (#21075)
cbornet May 2, 2024
1ebb5a7
partners(mistralai): Removing unused variable in completion request (…
maximeperrindev May 2, 2024
2d77e5e
(standard tests): add test for basic conversation sequence (#21213)
ccurme May 2, 2024
eb0a2fd
mistral: release 0.1.6 (#21214)
ccurme May 2, 2024
c1aa237
langchain: fix syntax error in code comment for create_tool_calling_a…
xindoo May 2, 2024
aa9faa8
docs: model table keywords, remove tool calling from llm (#21225)
efriis May 2, 2024
6ac6158
openai[patch]: support tool_choice="required" (#21216)
baskaryan May 2, 2024
47ce8d5
core: tracer: remove numeric execution order (#21220)
nfcampos May 2, 2024
c1eb95b
core: release 0.1.50 (#21230)
efriis May 2, 2024
67a5cc3
openai[patch]: Release 0.1.6 (#21236)
baskaryan May 3, 2024
70bde15
docs: add tool choice to tool calling (#21229)
baskaryan May 3, 2024
c3d169a
docs: Update Nvidia documentation (#21240)
dglogo May 3, 2024
64e17bd
docs: Fix comment within "handle long text" example (#21248)
andyjessen May 3, 2024
3a8d1d8
Hotfix RetrievalQA Docs: docs: Fix formatting (#21183)
TAAGECH9 May 3, 2024
2fbe82f
community[minor]: Relax constraints on CassandraChatMessageHistory co…
cbornet May 3, 2024
6c67e83
merge
ccurme May 3, 2024
dfa9a7f
🦍
ccurme May 3, 2024
d604a65
update Makefile
ccurme May 3, 2024
4336929
update makefile
ccurme May 3, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

// The optional 'workspaceFolder' property is the path VS Code should open by default when
// connected. This is typically a file mount in .devcontainer/docker-compose.yml
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
"workspaceFolder": "/workspaces/langchain",

// Prevent the container from shutting down
"overrideCommand": true
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: ..
volumes:
# Update this to wherever you want VS Code to mount the folder of your project
- ..:/workspaces:cached
- ..:/workspaces/langchain:cached
networks:
- langchain-network
# environment:
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ jobs:
env:
MIN_VERSIONS: ${{ steps.min-version.outputs.min-versions }}
run: |
poetry run pip install $MIN_VERSIONS
poetry run pip install --force-reinstall $MIN_VERSIONS
make tests
working-directory: ${{ inputs.working-directory }}

Expand Down Expand Up @@ -297,14 +297,13 @@ jobs:
with:
name: dist
path: ${{ inputs.working-directory }}/dist/

- name: Create Release
- name: Create Tag
uses: ncipollo/release-action@v1
if: ${{ inputs.working-directory == 'libs/langchain' }}
with:
artifacts: "dist/*"
token: ${{ secrets.GITHUB_TOKEN }}
draft: false
generateReleaseNotes: true
tag: v${{ needs.build.outputs.version }}
generateReleaseNotes: false
tag: ${{needs.build.outputs.pkg-name}}==${{ needs.build.outputs.version }}
body: "# Release ${{needs.build.outputs.pkg-name}}==${{ needs.build.outputs.version }}\n\nPackage-specific release note generation coming soon."
commit: ${{ github.sha }}
15 changes: 5 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,11 @@ clean: docs_clean api_docs_clean

## docs_build: Build the documentation.
docs_build:
docs/.local_build.sh
cd docs && make build-local

## docs_clean: Clean the documentation build artifacts.
docs_clean:
@if [ -d _dist ]; then \
rm -r _dist; \
echo "Directory _dist has been cleaned."; \
else \
echo "Nothing to clean."; \
fi
cd docs && make clean

## docs_linkcheck: Run linkchecker on the documentation.
docs_linkcheck:
Expand Down Expand Up @@ -60,12 +55,12 @@ spell_fix:

## lint: Run linting on the project.
lint lint_package lint_tests:
poetry run ruff docs templates cookbook
poetry run ruff check docs templates cookbook
poetry run ruff format docs templates cookbook --diff
poetry run ruff --select I docs templates cookbook
poetry run ruff check --select I docs templates cookbook
git grep 'from langchain import' docs/docs templates cookbook | grep -vE 'from langchain import (hub)' && exit 1 || exit 0

## format: Format the project files.
format format_diff:
poetry run ruff format docs templates cookbook
poetry run ruff --select I --fix docs templates cookbook
poetry run ruff check --select I --fix docs templates cookbook
4 changes: 2 additions & 2 deletions cookbook/Multi_modal_RAG.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@
" Check if the base64 data is an image by looking at the start of the data\n",
" \"\"\"\n",
" image_signatures = {\n",
" b\"\\xFF\\xD8\\xFF\": \"jpg\",\n",
" b\"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\": \"png\",\n",
" b\"\\xff\\xd8\\xff\": \"jpg\",\n",
" b\"\\x89\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\": \"png\",\n",
" b\"\\x47\\x49\\x46\\x38\": \"gif\",\n",
" b\"\\x52\\x49\\x46\\x46\": \"webp\",\n",
" }\n",
Expand Down
12 changes: 5 additions & 7 deletions cookbook/Multi_modal_RAG_google.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@
" )\n",
" # Text summary chain\n",
" model = VertexAI(\n",
" temperature=0, model_name=\"gemini-pro\", max_output_tokens=1024\n",
" temperature=0, model_name=\"gemini-pro\", max_tokens=1024\n",
" ).with_fallbacks([empty_response])\n",
" summarize_chain = {\"element\": lambda x: x} | prompt | model | StrOutputParser()\n",
"\n",
Expand Down Expand Up @@ -254,7 +254,7 @@
"\n",
"def image_summarize(img_base64, prompt):\n",
" \"\"\"Make image summary\"\"\"\n",
" model = ChatVertexAI(model_name=\"gemini-pro-vision\", max_output_tokens=1024)\n",
" model = ChatVertexAI(model=\"gemini-pro-vision\", max_tokens=1024)\n",
"\n",
" msg = model.invoke(\n",
" [\n",
Expand Down Expand Up @@ -462,8 +462,8 @@
" Check if the base64 data is an image by looking at the start of the data\n",
" \"\"\"\n",
" image_signatures = {\n",
" b\"\\xFF\\xD8\\xFF\": \"jpg\",\n",
" b\"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\": \"png\",\n",
" b\"\\xff\\xd8\\xff\": \"jpg\",\n",
" b\"\\x89\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\": \"png\",\n",
" b\"\\x47\\x49\\x46\\x38\": \"gif\",\n",
" b\"\\x52\\x49\\x46\\x46\": \"webp\",\n",
" }\n",
Expand Down Expand Up @@ -553,9 +553,7 @@
" \"\"\"\n",
"\n",
" # Multi-modal LLM\n",
" model = ChatVertexAI(\n",
" temperature=0, model_name=\"gemini-pro-vision\", max_output_tokens=1024\n",
" )\n",
" model = ChatVertexAI(temperature=0, model_name=\"gemini-pro-vision\", max_tokens=1024)\n",
"\n",
" # RAG pipeline\n",
" chain = (\n",
Expand Down
4 changes: 2 additions & 2 deletions cookbook/advanced_rag_eval.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -532,8 +532,8 @@
"def is_image_data(b64data):\n",
" \"\"\"Check if the base64 data is an image by looking at the start of the data.\"\"\"\n",
" image_signatures = {\n",
" b\"\\xFF\\xD8\\xFF\": \"jpg\",\n",
" b\"\\x89\\x50\\x4E\\x47\\x0D\\x0A\\x1A\\x0A\": \"png\",\n",
" b\"\\xff\\xd8\\xff\": \"jpg\",\n",
" b\"\\x89\\x50\\x4e\\x47\\x0d\\x0a\\x1a\\x0a\": \"png\",\n",
" b\"\\x47\\x49\\x46\\x38\": \"gif\",\n",
" b\"\\x52\\x49\\x46\\x46\": \"webp\",\n",
" }\n",
Expand Down
24 changes: 12 additions & 12 deletions cookbook/self_query_hotel_search.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -355,15 +355,15 @@
"metadata": {},
"outputs": [],
"source": [
"attribute_info[-2][\n",
" \"description\"\n",
"] += f\". Valid values are {sorted(latest_price['starrating'].value_counts().index.tolist())}\"\n",
"attribute_info[3][\n",
" \"description\"\n",
"] += f\". Valid values are {sorted(latest_price['maxoccupancy'].value_counts().index.tolist())}\"\n",
"attribute_info[-3][\n",
" \"description\"\n",
"] += f\". Valid values are {sorted(latest_price['country'].value_counts().index.tolist())}\""
"attribute_info[-2][\"description\"] += (\n",
" f\". Valid values are {sorted(latest_price['starrating'].value_counts().index.tolist())}\"\n",
")\n",
"attribute_info[3][\"description\"] += (\n",
" f\". Valid values are {sorted(latest_price['maxoccupancy'].value_counts().index.tolist())}\"\n",
")\n",
"attribute_info[-3][\"description\"] += (\n",
" f\". Valid values are {sorted(latest_price['country'].value_counts().index.tolist())}\"\n",
")"
]
},
{
Expand Down Expand Up @@ -688,9 +688,9 @@
"metadata": {},
"outputs": [],
"source": [
"attribute_info[-3][\n",
" \"description\"\n",
"] += \". NOTE: Only use the 'eq' operator if a specific country is mentioned. If a region is mentioned, include all relevant countries in filter.\"\n",
"attribute_info[-3][\"description\"] += (\n",
" \". NOTE: Only use the 'eq' operator if a specific country is mentioned. If a region is mentioned, include all relevant countries in filter.\"\n",
")\n",
"chain = load_query_constructor_runnable(\n",
" ChatOpenAI(model=\"gpt-3.5-turbo\", temperature=0),\n",
" doc_contents,\n",
Expand Down
1 change: 1 addition & 0 deletions docs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/.quarto/
src/supabase.d.ts
build
105 changes: 105 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# we build the docs in these stages:
# 1. install quarto and python dependencies
# 2. copy files from "source dir" to "intermediate dir"
# 2. generate files like model feat table, etc in "intermediate dir"
# 3. copy files to their right spots (e.g. langserve readme) in "intermediate dir"
# 4. build the docs from "intermediate dir" to "output dir"

SOURCE_DIR = docs/
INTERMEDIATE_DIR = build/intermediate/docs
VERIONED_INTERMEDIATE_DIR = build/versioned_intermediate/version-0.2.x/docs
OUTPUT_DIR = build/output
OUTPUT_DOCS_DIR = $(OUTPUT_DIR)/docs
VERSIONED_DOCS_DIR = $(OUTPUT_DIR)/versioned_docs/version-0.2.x

PYTHON = .venv/bin/python

QUARTO_CMD ?= quarto

PARTNER_DEPS_LIST := $(shell ls -1 ../libs/partners | grep -vE "airbyte|ibm" | xargs -I {} echo "../libs/partners/{}" | tr '\n' ' ')

PORT ?= 3001

clean:
rm -rf build

install-vercel-deps:
yum -y update
yum install gcc bzip2-devel libffi-devel zlib-devel wget tar gzip rsync -y

wget -q https://github.com/quarto-dev/quarto-cli/releases/download/v1.3.450/quarto-1.3.450-linux-amd64.tar.gz
tar -xzf quarto-1.3.450-linux-amd64.tar.gz

install-py-deps:
python3 -m venv .venv
$(PYTHON) -m pip install --upgrade pip
$(PYTHON) -m pip install --upgrade uv
$(PYTHON) -m uv pip install -r vercel_requirements.txt
$(PYTHON) -m uv pip install --editable $(PARTNER_DEPS_LIST)

generate-files:
mkdir -p $(INTERMEDIATE_DIR)
cp -r $(SOURCE_DIR)/* $(INTERMEDIATE_DIR)
mkdir -p $(INTERMEDIATE_DIR)/templates
cp ../templates/docs/INDEX.md $(INTERMEDIATE_DIR)/templates/index.md
cp ../cookbook/README.md $(INTERMEDIATE_DIR)/cookbook.mdx

$(PYTHON) scripts/model_feat_table.py $(INTERMEDIATE_DIR)

$(PYTHON) scripts/copy_templates.py $(INTERMEDIATE_DIR)

wget -q https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O $(INTERMEDIATE_DIR)/langserve.md
$(PYTHON) scripts/resolve_local_links.py $(INTERMEDIATE_DIR)/langserve.md https://github.com/langchain-ai/langserve/tree/main/

wget -q https://raw.githubusercontent.com/langchain-ai/langgraph/main/README.md -O $(INTERMEDIATE_DIR)/langgraph.md
$(PYTHON) scripts/resolve_local_links.py $(INTERMEDIATE_DIR)/langgraph.md https://github.com/langchain-ai/langgraph/tree/main/

$(PYTHON) scripts/generate_api_reference_links.py --docs_dir $(INTERMEDIATE_DIR)


mkdir -p $(VERIONED_INTERMEDIATE_DIR)
mkdir -p $(VERIONED_INTERMEDIATE_DIR)/templates
mkdir -p $(VERIONED_INTERMEDIATE_DIR)/integrations
mkdir -p $(VERIONED_INTERMEDIATE_DIR)/integrations/llms
cp $(INTERMEDIATE_DIR)/integrations/llms/index.mdx $(VERIONED_INTERMEDIATE_DIR)/integrations/llms/
cp $(INTERMEDIATE_DIR)/integrations/chat/index.mdx $(VERIONED_INTERMEDIATE_DIR)/integrations/chat/
cp -r $(INTERMEDIATE_DIR)/templates/* $(VERIONED_INTERMEDIATE_DIR)/templates/

wget -q https://raw.githubusercontent.com/langchain-ai/langserve/main/README.md -O $(VERIONED_INTERMEDIATE_DIR)/langserve.md
$(PYTHON) scripts/resolve_local_links.py $(VERIONED_INTERMEDIATE_DIR)/langserve.md https://github.com/langchain-ai/langserve/tree/main/

wget -q https://raw.githubusercontent.com/langchain-ai/langgraph/main/README.md -O $(VERIONED_INTERMEDIATE_DIR)/langgraph.md
$(PYTHON) scripts/resolve_local_links.py $(VERIONED_INTERMEDIATE_DIR)/langgraph.md https://github.com/langchain-ai/langgraph/tree/main/

$(PYTHON) scripts/resolve_versioned_links_in_markdown.py $(VERIONED_INTERMEDIATE_DIR) /docs/0.2.x/
$(PYTHON) scripts/generate_api_reference_links.py --docs_dir $(VERIONED_INTERMEDIATE_DIR)


copy-infra:
mkdir -p $(OUTPUT_DIR)
cp -r src $(OUTPUT_DIR)
cp vercel.json $(OUTPUT_DIR)
cp babel.config.js $(OUTPUT_DIR)
cp -r data $(OUTPUT_DIR)
cp docusaurus.config.js $(OUTPUT_DIR)
cp package.json $(OUTPUT_DIR)
cp sidebars.js $(OUTPUT_DIR)
cp -r static $(OUTPUT_DIR)
cp yarn.lock $(OUTPUT_DIR)

quarto-render:
$(QUARTO_CMD) render $(INTERMEDIATE_DIR) --output-dir $(OUTPUT_DOCS_DIR) --no-execute
mv $(OUTPUT_DOCS_DIR)/$(INTERMEDIATE_DIR)/* $(OUTPUT_DOCS_DIR)
rm -rf $(OUTPUT_DOCS_DIR)/build

$(QUARTO_CMD) render $(VERIONED_INTERMEDIATE_DIR) --output-dir $(VERSIONED_DOCS_DIR) --no-execute
mv $(VERSIONED_DOCS_DIR)/$(VERIONED_INTERMEDIATE_DIR)/* $(VERSIONED_DOCS_DIR)
rm -rf $(VERSIONED_DOCS_DIR)/build

md-sync:
rsync -avm --include="*/" --include="*.mdx" --include="*.md" --exclude="*" $(INTERMEDIATE_DIR)/ $(OUTPUT_DOCS_DIR)

build: install-py-deps generate-files copy-infra quarto-render md-sync

start:
cd $(OUTPUT_DIR) && yarn && yarn start --port=$(PORT)
76 changes: 0 additions & 76 deletions docs/code-block-loader.js

This file was deleted.