-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc1d1d1
commit 7523f7a
Showing
2 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Integration doc CLI | ||
|
||
Generate integration documentation using the CLI. | ||
|
||
## Supported integration types | ||
|
||
- Chat models | ||
- LLMs | ||
- Text embeddings | ||
- Retrievers | ||
- Document loaders | ||
|
||
## Usage | ||
|
||
1. Build the CLI: | ||
|
||
```bash | ||
yarn build --filter=@langchain/scripts | ||
``` | ||
|
||
2. Run the CLI: | ||
|
||
```bash | ||
yarn create:integration:doc --classname <Class Name> --type <Type> | ||
``` | ||
|
||
The `--classname` field should be passed the full class name of the integration, e.g `ChatOpenAI` or `RecursiveUrlLoader`. | ||
|
||
The `--type` field should be passed the type of the integration. It must be one of the following: | ||
|
||
- `chat` | ||
- `llm` | ||
- `embeddings` | ||
- `retriever` | ||
- `doc_loader` | ||
|
||
After invoking the script, you'll be prompted to fill out more integration-specific information. | ||
|
||
Finally, the script will log the path of the newly created integration documentation. You should open this notebook, run all the cells, handle and remove any TODOs, and verify all links work as expected. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters