Skip to content

Commit a363ab5

Browse files
authored
rename repo namespace to langchain-ai (langchain-ai#11259)
### Description renamed several repository links from `hwchase17` to `langchain-ai`. ### Why I discovered that the README file in the devcontainer contains an old repository name, so I took the opportunity to rename the old repository name in all files within the repository, excluding those that do not require changes. ### Dependencies none ### Tag maintainer @baskaryan ### Twitter handle [kzk_maeda](https://twitter.com/kzk_maeda)
1 parent 17cdeb7 commit a363ab5

File tree

30 files changed

+49
-49
lines changed

30 files changed

+49
-49
lines changed

.devcontainer/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This project includes a [dev container](https://containers.dev/), which lets you
55
You can use the dev container configuration in this folder to build and run the app without needing to install any of its tools locally! You can use it in [GitHub Codespaces](https://github.com/features/codespaces) or the [VS Code Dev Containers extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
66

77
## GitHub Codespaces
8-
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/hwchase17/langchain)
8+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/langchain-ai/langchain)
99

1010
You may use the button above, or follow these steps to open this repo in a Codespace:
11-
1. Click the **Code** drop-down menu at the top of https://github.com/hwchase17/langchain.
11+
1. Click the **Code** drop-down menu at the top of https://github.com/langchain-ai/langchain.
1212
1. Click on the **Codespaces** tab.
1313
1. Click **Create codespace on master** .
1414

.github/CONTRIBUTING.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ best way to get our attention.
3232

3333
### 🚩GitHub Issues
3434

35-
Our [issues](https://github.com/hwchase17/langchain/issues) page is kept up to date
35+
Our [issues](https://github.com/langchain-ai/langchain/issues) page is kept up to date
3636
with bugs, improvements, and feature requests.
3737

3838
There is a taxonomy of labels to help with sorting and discovery of issues of interest. Please use these to help
@@ -60,7 +60,7 @@ we do not want these to get in the way of getting good code into the codebase.
6060
## 🚀 Quick Start
6161

6262
This quick start describes running the repository locally.
63-
For a [development container](https://containers.dev/), see the [.devcontainer folder](https://github.com/hwchase17/langchain/tree/master/.devcontainer).
63+
For a [development container](https://containers.dev/), see the [.devcontainer folder](https://github.com/langchain-ai/langchain/tree/master/.devcontainer).
6464

6565
### Dependency Management: Poetry and other env/dependency managers
6666

.github/ISSUE_TEMPLATE/feature-request.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ body:
2727
attributes:
2828
label: Your contribution
2929
description: |
30-
Is there any way that you could help, e.g. by submitting a PR? Make sure to read the CONTRIBUTING.MD [readme](https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md)
30+
Is there any way that you could help, e.g. by submitting a PR? Make sure to read the CONTRIBUTING.MD [readme](https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md)

.github/PULL_REQUEST_TEMPLATE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Replace this entire comment with:
1010
Please make sure your PR is passing linting and testing before submitting. Run `make format`, `make lint` and `make test` to check this locally.
1111
1212
See contribution guidelines for more information on how to write/run tests, lint, etc:
13-
https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
13+
https://github.com/langchain-ai/langchain/blob/master/.github/CONTRIBUTING.md
1414
1515
If you're adding a new integration, please include:
1616
1. a test for the integration, preferably unit tests that do not rely on network access,

CITATION.cff

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ authors:
55
given-names: "Harrison"
66
title: "LangChain"
77
date-released: 2022-10-17
8-
url: "https://github.com/hwchase17/langchain"
8+
url: "https://github.com/langchain-ai/langchain"

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
[![Open Issues](https://img.shields.io/github/issues-raw/langchain-ai/langchain)](https://github.com/langchain-ai/langchain/issues)
1717

1818

19-
Looking for the JS/TS version? Check out [LangChain.js](https://github.com/hwchase17/langchainjs).
19+
Looking for the JS/TS version? Check out [LangChain.js](https://github.com/langchain-ai/langchainjs).
2020

2121
**Production Support:** As you move your LangChains into production, we'd love to offer more hands-on support.
2222
Fill out [this form](https://airtable.com/appwQzlErAS2qiP0L/shrGtGaVBVAz7NcV2) to share more about what you're building, and our team will get in touch.
@@ -26,7 +26,7 @@ Fill out [this form](https://airtable.com/appwQzlErAS2qiP0L/shrGtGaVBVAz7NcV2) t
2626
In an effort to make `langchain` leaner and safer, we are moving select chains to `langchain_experimental`.
2727
This migration has already started, but we are remaining backwards compatible until 7/28.
2828
On that date, we will remove functionality from `langchain`.
29-
Read more about the motivation and the progress [here](https://github.com/hwchase17/langchain/discussions/8043).
29+
Read more about the motivation and the progress [here](https://github.com/langchain-ai/langchain/discussions/8043).
3030
Read how to migrate your code [here](MIGRATE.md).
3131

3232
## Quick Install
@@ -49,7 +49,7 @@ This library aims to assist in the development of those types of applications. C
4949
**💬 Chatbots**
5050

5151
- [Documentation](https://python.langchain.com/docs/use_cases/chatbots/)
52-
- End-to-end Example: [Chat-LangChain](https://github.com/hwchase17/chat-langchain)
52+
- End-to-end Example: [Chat-LangChain](https://github.com/langchain-ai/chat-langchain)
5353

5454
**🤖 Agents**
5555

docs/docs_skeleton/docs/get_started/introduction.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Off-the-shelf chains make it easy to get started. For complex applications, comp
2020

2121
We recommend following our [Quickstart](/docs/get_started/quickstart) guide to familiarize yourself with the framework by building your first LangChain application.
2222

23-
_**Note**: These docs are for the LangChain [Python package](https://github.com/hwchase17/langchain). For documentation on [LangChain.js](https://github.com/hwchase17/langchainjs), the JS/TS version, [head here](https://js.langchain.com/docs)._
23+
_**Note**: These docs are for the LangChain [Python package](https://github.com/langchain-ai/langchain). For documentation on [LangChain.js](https://github.com/langchain-ai/langchainjs), the JS/TS version, [head here](https://js.langchain.com/docs)._
2424

2525
## Modules
2626

docs/docs_skeleton/docusaurus.config.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const config = {
196196
},
197197
// Please keep GitHub link to the right for consistency.
198198
{
199-
href: "https://github.com/hwchase17/langchain",
199+
href: "https://github.com/langchain-ai/langchain",
200200
position: "right",
201201
className: "header-github-link",
202202
"aria-label": "GitHub repository",
@@ -224,11 +224,11 @@ const config = {
224224
items: [
225225
{
226226
label: "Python",
227-
href: "https://github.com/hwchase17/langchain",
227+
href: "https://github.com/langchain-ai/langchain",
228228
},
229229
{
230230
label: "JS/TS",
231-
href: "https://github.com/hwchase17/langchainjs",
231+
href: "https://github.com/langchain-ai/langchainjs",
232232
},
233233
],
234234
},

docs/extras/additional_resources/dependents.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Dependents stats for `langchain-ai/langchain`
3939
|[go-skynet/LocalAI](https://github.com/go-skynet/LocalAI) | 9955 |
4040
|[AIGC-Audio/AudioGPT](https://github.com/AIGC-Audio/AudioGPT) | 9081 |
4141
|[gventuri/pandas-ai](https://github.com/gventuri/pandas-ai) | 8201 |
42-
|[hwchase17/langchainjs](https://github.com/hwchase17/langchainjs) | 7754 |
42+
|[langchain-ai/langchainjs](https://github.com/langchain-ai/langchainjs) | 7754 |
4343
|[langgenius/dify](https://github.com/langgenius/dify) | 7348 |
4444
|[PipedreamHQ/pipedream](https://github.com/PipedreamHQ/pipedream) | 6950 |
4545
|[h2oai/h2ogpt](https://github.com/h2oai/h2ogpt) | 6858 |

docs/extras/integrations/document_loaders/git.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"from git import Repo\n",
4141
"\n",
4242
"repo = Repo.clone_from(\n",
43-
" \"https://github.com/hwchase17/langchain\", to_path=\"./example_data/test_repo1\"\n",
43+
" \"https://github.com/langchain-ai/langchain\", to_path=\"./example_data/test_repo1\"\n",
4444
")\n",
4545
"branch = repo.head.reference"
4646
]
@@ -123,7 +123,7 @@
123123
"outputs": [],
124124
"source": [
125125
"loader = GitLoader(\n",
126-
" clone_url=\"https://github.com/hwchase17/langchain\",\n",
126+
" clone_url=\"https://github.com/langchain-ai/langchain\",\n",
127127
" repo_path=\"./example_data/test_repo2/\",\n",
128128
" branch=\"master\",\n",
129129
")"

docs/extras/integrations/document_loaders/github.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
"outputs": [],
6363
"source": [
6464
"loader = GitHubIssuesLoader(\n",
65-
" repo=\"hwchase17/langchain\",\n",
65+
" repo=\"langchain-ai/langchain\",\n",
6666
" access_token=ACCESS_TOKEN, # delete/comment out this argument if you've set the access token as an env var.\n",
6767
" creator=\"UmerHA\",\n",
6868
")"
@@ -117,7 +117,7 @@
117117
"DataLoaders\r\n",
118118
"- @eyurtsev\r\n",
119119
"\n",
120-
"{'url': 'https://github.com/hwchase17/langchain/pull/5408', 'title': 'DocumentLoader for GitHub', 'creator': 'UmerHA', 'created_at': '2023-05-29T14:50:53Z', 'comments': 0, 'state': 'open', 'labels': ['enhancement', 'lgtm', 'doc loader'], 'assignee': None, 'milestone': None, 'locked': False, 'number': 5408, 'is_pull_request': True}\n"
120+
"{'url': 'https://github.com/langchain-ai/langchain/pull/5408', 'title': 'DocumentLoader for GitHub', 'creator': 'UmerHA', 'created_at': '2023-05-29T14:50:53Z', 'comments': 0, 'state': 'open', 'labels': ['enhancement', 'lgtm', 'doc loader'], 'assignee': None, 'milestone': None, 'locked': False, 'number': 5408, 'is_pull_request': True}\n"
121121
]
122122
}
123123
],
@@ -147,7 +147,7 @@
147147
"outputs": [],
148148
"source": [
149149
"loader = GitHubIssuesLoader(\n",
150-
" repo=\"hwchase17/langchain\",\n",
150+
" repo=\"langchain-ai/langchain\",\n",
151151
" access_token=ACCESS_TOKEN, # delete/comment out this argument if you've set the access token as an env var.\n",
152152
" creator=\"UmerHA\",\n",
153153
" include_prs=False,\n",
@@ -220,7 +220,7 @@
220220
"### Expected behavior\n",
221221
"\n",
222222
"Chain should run\n",
223-
"{'url': 'https://github.com/hwchase17/langchain/issues/5027', 'title': \"ChatOpenAI models don't work with prompts created via ChatPromptTemplate.from_role_strings\", 'creator': 'UmerHA', 'created_at': '2023-05-20T10:39:18Z', 'comments': 1, 'state': 'open', 'labels': [], 'assignee': None, 'milestone': None, 'locked': False, 'number': 5027, 'is_pull_request': False}\n"
223+
"{'url': 'https://github.com/langchain-ai/langchain/issues/5027', 'title': \"ChatOpenAI models don't work with prompts created via ChatPromptTemplate.from_role_strings\", 'creator': 'UmerHA', 'created_at': '2023-05-20T10:39:18Z', 'comments': 1, 'state': 'open', 'labels': [], 'assignee': None, 'milestone': None, 'locked': False, 'number': 5027, 'is_pull_request': False}\n"
224224
]
225225
}
226226
],

docs/extras/integrations/document_loaders/readthedocs_documentation.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"This notebook covers how to load content from HTML that was generated as part of a `Read-The-Docs` build.\n",
1313
"\n",
14-
"For an example of this in the wild, see [here](https://github.com/hwchase17/chat-langchain).\n",
14+
"For an example of this in the wild, see [here](https://github.com/langchain-ai/chat-langchain).\n",
1515
"\n",
1616
"This assumes that the HTML has already been scraped into a folder. This can be done by uncommenting and running the following command"
1717
]

docs/extras/integrations/llms/modal.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"cell_type": "markdown",
5353
"metadata": {},
5454
"source": [
55-
"The [`langchain.llms.modal.Modal`](https://github.com/hwchase17/langchain/blame/master/langchain/llms/modal.py) integration class requires that you deploy a Modal application with a web endpoint that complies with the following JSON interface:\n",
55+
"The [`langchain.llms.modal.Modal`](https://github.com/langchain-ai/langchain/blame/master/langchain/llms/modal.py) integration class requires that you deploy a Modal application with a web endpoint that complies with the following JSON interface:\n",
5656
"\n",
5757
"1. The LLM prompt is accepted as a `str` value under the key `\"prompt\"`\n",
5858
"2. The LLM response returned as a `str` value under the key `\"prompt\"`\n",

docs/extras/integrations/providers/vectara/vectara_chat.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"source": [
88
"# Chat Over Documents with Vectara\n",
99
"\n",
10-
"This notebook is based on the [chat_vector_db](https://github.com/hwchase17/langchain/blob/master/docs/modules/chains/index_examples/chat_vector_db.html) notebook, but using Vectara as the vector database."
10+
"This notebook is based on the [chat_vector_db](https://github.com/langchain-ai/langchain/blob/master/docs/modules/chains/index_examples/chat_vector_db.html) notebook, but using Vectara as the vector database."
1111
]
1212
},
1313
{

docs/extras/integrations/providers/vectara/vectara_text_generation.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"source": [
77
"# Vectara Text Generation\n",
88
"\n",
9-
"This notebook is based on [text generation](https://github.com/hwchase17/langchain/blob/master/docs/modules/chains/index_examples/vector_db_text_generation.ipynb) notebook and adapted to Vectara."
9+
"This notebook is based on [text generation](https://github.com/langchain-ai/langchain/blob/master/docs/modules/chains/index_examples/vector_db_text_generation.ipynb) notebook and adapted to Vectara."
1010
]
1111
},
1212
{

docs/extras/modules/model_io/prompts/prompt_templates/formats.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ prompt.format(adjective="funny", content="chickens")
2626
# Output: Tell me a funny joke about chickens.
2727
```
2828

29-
Currently, only `jinja2` and `f-string` are supported. For other formats, kindly raise an issue on the [Github page](https://github.com/hwchase17/langchain/issues).
29+
Currently, only `jinja2` and `f-string` are supported. For other formats, kindly raise an issue on the [Github page](https://github.com/langchain-ai/langchain/issues).

docs/extras/use_cases/code_understanding.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
"source": [
9393
"# Clone\n",
9494
"repo_path = \"/Users/rlm/Desktop/test_repo\"\n",
95-
"# repo = Repo.clone_from(\"https://github.com/hwchase17/langchain\", to_path=repo_path)"
95+
"# repo = Repo.clone_from(\"https://github.com/langchain-ai/langchain\", to_path=repo_path)"
9696
]
9797
},
9898
{

docs/extras/use_cases/more/agents/agent_simulations/multiagent_bidding.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@
414414
"1. define a format they will produce their outputs in\n",
415415
"2. parse their outputs\n",
416416
"\n",
417-
"We can subclass the [RegexParser](https://github.com/hwchase17/langchain/blob/master/langchain/output_parsers/regex.py) to implement our own custom output parser for bids."
417+
"We can subclass the [RegexParser](https://github.com/langchain-ai/langchain/blob/master/langchain/output_parsers/regex.py) to implement our own custom output parser for bids."
418418
]
419419
},
420420
{

docs/extras/use_cases/more/agents/agents/sales_agent_with_context.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"Here, we show how the AI Sales Agent can use a **Product Knowledge Base** to speak about a particular's company offerings,\n",
2020
"hence increasing relevance and reducing hallucinations.\n",
2121
"\n",
22-
"We leverage the [`langchain`](https://github.com/hwchase17/langchain) library in this implementation, specifically [Custom Agent Configuration](https://langchain-langchain.vercel.app/docs/modules/agents/how_to/custom_agent_with_tool_retrieval) and are inspired by [BabyAGI](https://github.com/yoheinakajima/babyagi) architecture ."
22+
"We leverage the [`langchain`](https://github.com/langchain-ai/langchain) library in this implementation, specifically [Custom Agent Configuration](https://langchain-langchain.vercel.app/docs/modules/agents/how_to/custom_agent_with_tool_retrieval) and are inspired by [BabyAGI](https://github.com/yoheinakajima/babyagi) architecture ."
2323
]
2424
},
2525
{

docs/extras/use_cases/more/code_writing/cpal.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"\n",
1111
"The CPAL chain builds on the recent PAL to stop LLM hallucination. The problem with the PAL approach is that it hallucinates on a math problem with a nested chain of dependence. The innovation here is that this new CPAL approach includes causal structure to fix hallucination.\n",
1212
"\n",
13-
"The original [PR's description](https://github.com/hwchase17/langchain/pull/6255) contains a full overview.\n",
13+
"The original [PR's description](https://github.com/langchain-ai/langchain/pull/6255) contains a full overview.\n",
1414
"\n",
1515
"Using the CPAL chain, the LLM translated this\n",
1616
"\n",

docs/extras/use_cases/question_answering/how_to/local_retrieval_qa.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
"\n",
618618
"For an even simpler flow, use `RetrievalQA`.\n",
619619
"\n",
620-
"This will use a QA default prompt (shown [here](https://github.com/hwchase17/langchain/blob/275b926cf745b5668d3ea30236635e20e7866442/langchain/chains/retrieval_qa/prompt.py#L4)) and will retrieve from the vectorDB.\n",
620+
"This will use a QA default prompt (shown [here](https://github.com/langchain-ai/langchain/blob/275b926cf745b5668d3ea30236635e20e7866442/langchain/chains/retrieval_qa/prompt.py#L4)) and will retrieve from the vectorDB.\n",
621621
"\n",
622622
"But, you can still pass in a prompt, as before, if desired."
623623
]

docs/snippets/modules/data_connection/retrievers/get_started.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ from langchain.chains import RetrievalQA
6666
from langchain.llms import OpenAI
6767
```
6868

69-
Next in the generic setup, let's specify the document loader we want to use. You can download the `state_of_the_union.txt` file [here](https://github.com/hwchase17/langchain/blob/master/docs/extras/modules/state_of_the_union.txt).
69+
Next in the generic setup, let's specify the document loader we want to use. You can download the `state_of_the_union.txt` file [here](https://github.com/langchain-ai/langchain/blob/master/docs/extras/modules/state_of_the_union.txt).
7070

7171

7272
```python

docs/snippets/modules/model_io/models/llms/how_to/streaming_llm.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Currently, we support streaming for a broad range of LLM implementations, including but not limited to `OpenAI`, `ChatOpenAI`, `ChatAnthropic`, `Hugging Face Text Generation Inference`, and `Replicate`. This feature has been expanded to accommodate most of the models. To utilize streaming, use a [`CallbackHandler`](https://github.com/hwchase17/langchain/blob/master/langchain/callbacks/base.py) that implements `on_llm_new_token`. In this example, we are using `StreamingStdOutCallbackHandler`.
1+
Currently, we support streaming for a broad range of LLM implementations, including but not limited to `OpenAI`, `ChatOpenAI`, `ChatAnthropic`, `Hugging Face Text Generation Inference`, and `Replicate`. This feature has been expanded to accommodate most of the models. To utilize streaming, use a [`CallbackHandler`](https://github.com/langchain-ai/langchain/blob/master/langchain/callbacks/base.py) that implements `on_llm_new_token`. In this example, we are using `StreamingStdOutCallbackHandler`.
22
```python
33
from langchain.llms import OpenAI
44
from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Causal program-aided language (CPAL) chain
22

33

4-
see https://github.com/hwchase17/langchain/pull/6255
4+
see https://github.com/langchain-ai/langchain/pull/6255

libs/experimental/langchain_experimental/pal_chain/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
As in https://arxiv.org/pdf/2211.10435.pdf.
44
55
This is vulnerable to arbitrary code execution:
6-
https://github.com/hwchase17/langchain/issues/5872
6+
https://github.com/langchain-ai/langchain/issues/5872
77
"""
88
from langchain_experimental.pal_chain.base import PALChain
99

libs/experimental/langchain_experimental/prompts/load.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Susceptible to arbitrary code execution: https://github.com/hwchase17/langchain/issues/4849
1+
# Susceptible to arbitrary code execution: https://github.com/langchain-ai/langchain/issues/4849
22
import importlib
33
import json
44
from pathlib import Path

libs/experimental/tests/integration_tests/chains/test_cpal.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class TestUnitCPALChain_MathWordProblems(unittest.TestCase):
4646
"""Unit Test the CPAL chain and its component chains on math word problems.
4747
4848
These tests can't run in the standard unit test directory because of
49-
this issue, https://github.com/hwchase17/langchain/issues/7451
49+
this issue, https://github.com/langchain-ai/langchain/issues/7451
5050
5151
"""
5252

@@ -398,7 +398,7 @@ def test_against_pal_chain_doc(self) -> None:
398398
"""
399399
Test CPAL chain against the first example in the PAL chain notebook doc:
400400
401-
https://github.com/hwchase17/langchain/blob/master/docs/extras/modules/chains/additional/pal.ipynb
401+
https://github.com/langchain-ai/langchain/blob/master/docs/extras/modules/chains/additional/pal.ipynb
402402
"""
403403

404404
narrative_input = (

0 commit comments

Comments
 (0)