Skip to content

docs: move concepts into a separate directory #27170

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

Closed
wants to merge 37 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
907c758
docs[patch]: add long-term memory agent tutorial (#27057)
vbarda Oct 3, 2024
103e573
community[patch]: chore warn deprecate the wandb callback handler (#2…
parambharat Oct 3, 2024
2a54448
langchain[patch]: Release 0.3.2 (#27073)
baskaryan Oct 3, 2024
47a9199
community[patch]: Fix missing protected_namespaces (#27076)
tibor-reiss Oct 3, 2024
7f730ce
docs: remove spaces in percent pip (#27082)
Oct 3, 2024
cc1b8b3
docs: Documentation update for Document Parse (#26844)
chosh0615 Oct 3, 2024
546dc44
core[patch]: add UsageMetadata details (#27072)
baskaryan Oct 3, 2024
c09da53
openai[patch]: add usage metadata details (#27080)
baskaryan Oct 3, 2024
87fc5ce
core[patch]: exclude model cache from ser (#27086)
baskaryan Oct 3, 2024
ab4dab9
core: fix batch race condition in FakeListChatModel (#26924)
Oct 3, 2024
47142eb
docs: Integrations NVIDIA llm documentation (#26934)
raspawar Oct 3, 2024
2715bed
docs[patch]: update links w/ new langgraph API ref (#26961)
vbarda Oct 3, 2024
e8e5d67
openai: fix None token detail (#27091)
Oct 4, 2024
0495b7f
anthropic[patch]: add usage_metadata details (#27087)
baskaryan Oct 4, 2024
4935a14
core,integrations[minor]: Dont error on fields in model_kwargs (#27110)
baskaryan Oct 4, 2024
1e768a9
anthropic[patch]: correctly handle tool msg with empty list (#27109)
baskaryan Oct 4, 2024
558fb4d
box: Add citation support to langchain_box.retrievers.BoxRetriever wh…
shurrey Oct 4, 2024
11df1b2
core[patch]: Release 0.3.9 (#27117)
baskaryan Oct 4, 2024
414fe16
anthropic[patch]: Release 0.2.2 (#27118)
baskaryan Oct 4, 2024
98942ed
openai[patch]: Release 0.2.2 (#27119)
baskaryan Oct 4, 2024
827bdf4
fireworks[patch]: Release 0.2.1 (#27120)
baskaryan Oct 4, 2024
bd5b335
standard-tests[patch]: fix oai usage metadata test (#27122)
baskaryan Oct 4, 2024
64a16f2
infra: add nvidia and astradb back to api build (#27115)
Oct 4, 2024
0b8416b
anthropic[patch]: fix input_tokens when cached (#27125)
baskaryan Oct 4, 2024
06ce5d1
anthropic[patch]: Release 0.2.3 (#27126)
baskaryan Oct 4, 2024
7a07196
docs: update Google Spanner Vector Store documentation (#27124)
averikitsch Oct 4, 2024
07dd8dd
community[patch]: update gpt-4o cost (#27038)
ogawa65a Oct 7, 2024
3809980
docs: fix anthropic max_tokens docstring (#27166)
baskaryan Oct 7, 2024
f70650f
core[patch]: correct typo doc-string for astream_events method (#27108)
adityash97 Oct 7, 2024
14de81b
community: sambastudio chat model (#27056)
jhpiedrahitao Oct 7, 2024
780ce00
core[minor]: add **kwargs to index and aindex functions for custom ve…
Jalmeida1994 Oct 7, 2024
8f83921
Update MIGRATE.md (#27169)
eyurtsev Oct 7, 2024
c61b9da
docs: Grammar fix in concepts.mdx (#27149)
AleksandarPetrov Oct 7, 2024
931ce8d
core[patch]: Update `AsyncCallbackManager` to honor `run_inline` attr…
parambharat Oct 7, 2024
c4ebccf
core[minor]: Improve support for id in VectorStore (#26660)
cbornet Oct 7, 2024
bf94e5e
x
eyurtsev Oct 7, 2024
f34e36e
foo
eyurtsev Oct 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/api_doc_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ jobs:
mv langchain-google/libs/genai langchain/libs/partners/google-genai
mv langchain-google/libs/vertexai langchain/libs/partners/google-vertexai
mv langchain-google/libs/community langchain/libs/partners/google-community
# mv langchain-datastax/libs/astradb langchain/libs/partners/astradb
# mv langchain-nvidia/libs/ai-endpoints langchain/libs/partners/nvidia-ai-endpoints
mv langchain-datastax/libs/astradb langchain/libs/partners/astradb
mv langchain-nvidia/libs/ai-endpoints langchain/libs/partners/nvidia-ai-endpoints
mv langchain-cohere/libs/cohere langchain/libs/partners/cohere
mv langchain-elastic/libs/elasticsearch langchain/libs/partners/elasticsearch
mv langchain-postgres langchain/libs/partners/postgres
Expand Down
73 changes: 7 additions & 66 deletions MIGRATE.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,11 @@
# Migrating

## 🚨Breaking Changes for select chains (SQLDatabase) on 7/28/23
Please see the following guides for migratin LangChain code:

In an effort to make `langchain` leaner and safer, we are moving select chains to `langchain_experimental`.
This migration has already started, but we are remaining backwards compatible until 7/28.
On that date, we will remove functionality from `langchain`.
Read more about the motivation and the progress [here](https://github.com/langchain-ai/langchain/discussions/8043).
* Migrate to [LangChain v0.3](https://python.langchain.com/docs/versions/v0_3/)
* Migrate to [LangChain v0.2](https://python.langchain.com/docs/versions/v0_2/)
* Migrating from [LangChain 0.0.x Chains](https://python.langchain.com/docs/versions/migrating_chains/)
* Upgrate to [LangGraph Memory](https://python.langchain.com/docs/versions/migrating_memory/)

### Migrating to `langchain_experimental`

We are moving any experimental components of LangChain, or components with vulnerability issues, into `langchain_experimental`.
This guide covers how to migrate.

### Installation

Previously:

`pip install -U langchain`

Now (only if you want to access things in experimental):

`pip install -U langchain langchain_experimental`

### Things in `langchain.experimental`

Previously:

`from langchain.experimental import ...`

Now:

`from langchain_experimental import ...`

### PALChain

Previously:

`from langchain.chains import PALChain`

Now:

`from langchain_experimental.pal_chain import PALChain`

### SQLDatabaseChain

Previously:

`from langchain.chains import SQLDatabaseChain`

Now:

`from langchain_experimental.sql import SQLDatabaseChain`

Alternatively, if you are just interested in using the query generation part of the SQL chain, you can check out this [`SQL question-answering tutorial`](https://python.langchain.com/v0.2/docs/tutorials/sql_qa/#convert-question-to-sql-query)

`from langchain.chains import create_sql_query_chain`

### `load_prompt` for Python files

Note: this only applies if you want to load Python files as prompts.
If you want to load json/yaml files, no change is needed.

Previously:

`from langchain.prompts import load_prompt`

Now:

`from langchain_experimental.prompts import load_prompt`
The [LangChain CLI](https://python.langchain.com/docs/versions/v0_3/#migrate-using-langchain-cli) can help automatically upgrade your code to use non deprecated imports.
This will be especially helpful if you're still on either version 0.0.x or 0.1.x of LangChain.
11 changes: 9 additions & 2 deletions docs/docs/concepts.mdx → docs/docs/concepts/index.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
---
sidebar_position: 0
sidebar_class_name: hidden
---

# Conceptual guide

import ThemedImage from '@theme/ThemedImage';
import useBaseUrl from '@docusaurus/useBaseUrl';

This section contains introductions to key parts of LangChain.
In this section, you'll find explanations of the key concepts, providing a deeper understanding of core principles.

The conceptual guide will not cover step-by-step instructions or specific implementation details — those are found in the [How-To Guides](/docs/how_to/) and [Tutorials](/docs/tutorials) sections. For detailed reference material, please visit the [API Reference](https://python.langchain.com/api_reference/).

## Architecture

Expand Down Expand Up @@ -611,7 +618,7 @@ Read more about [defining tools that return artifacts here](/docs/how_to/tool_ar
When designing tools to be used by a model, it is important to keep in mind that:

- Chat models that have explicit [tool-calling APIs](/docs/concepts/#functiontool-calling) will be better at tool calling than non-fine-tuned models.
- Models will perform better if the tools have well-chosen names, descriptions, and JSON schemas. This another form of prompt engineering.
- Models will perform better if the tools have well-chosen names, descriptions, and JSON schemas. This is another form of prompt engineering.
- Simple, narrowly scoped tools are easier for models to use than complex tools.

#### Related
Expand Down
Loading
Loading