-
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.
langchain[major],community[major],core[minor]: LangChain 0.2 (#5204)
* core[patch],langchain[major]: Move indexing API and document loader base class to core (#5191) * Move indexing API and document loader APIs to core * Fix * Update warning * Flip community and LangChain dep (#5207) * Flip community and LangChain dep * Build fix * Fix lint * Fixes * Format * langchain[patch],scripts[patch]: Adds dynamic import map for serialization (#5222) * Adds dynamic import map for serialization * Format * Add ignore * Move translators to new endpoints * Publish as rc * moved structured query to proper location * fix load for deps * fix anthropic/community deps on each other * chore: lint files * cr * update rcs * cr * add back schema/query_constructor * yarn * cr * drop dynamic_import_map.ts * fix tests:) * fixes' * update build * format * fix cohere dep * drop bad * try building lc after * mayb? * cr * add cohere key as secret * yarn why * copy cohere pkg into export tests * build cohere in lc * add cohere in dcope * hehe mayb * revert dep range tests changes * cr * build community too * fix build * add back tools * actually add back tools * deprecated docs * add back non deprecated entrypoint * added rest of tools * add missing entrypoint * improvements * fixes * update examples * lint n fix * cr * fix docs support * chore: lint files * chore: lint files * did I fix it * yer * bump all pkgs to 0.2 * what * update int pkgs to be any core v less than 0.3 * pin oai & textsplitters to 0.2 rc * cr * all on 0.2 rc --------- Co-authored-by: bracesproul <braceasproul@gmail.com>
- Loading branch information
1 parent
825c1f4
commit 44ede93
Showing
718 changed files
with
16,613 additions
and
11,274 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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,14 +1,29 @@ | ||
--- | ||
sidebar_label: NIBittensorChatModel | ||
sidebar_class_name: hidden | ||
--- | ||
|
||
# NIBittensorChatModel | ||
|
||
:::warning | ||
This module has been deprecated and is no longer supported. The documentation below will not work in versions 0.2.0 or later. | ||
::: | ||
|
||
LangChain.js offers experimental support for Neural Internet's Bittensor chat models. | ||
|
||
Here's an example: | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
import NIBittensorChatModelExample from "@examples/models/chat/integration_bittensor.ts"; | ||
```typescript | ||
import { NIBittensorChatModel } from "langchain/experimental/chat_models/bittensor"; | ||
import { HumanMessage } from "@langchain/core/messages"; | ||
|
||
<CodeBlock language="typescript">{NIBittensorChatModelExample}</CodeBlock> | ||
const chat = new NIBittensorChatModel(); | ||
const message = new HumanMessage("What is bittensor?"); | ||
const res = await chat.invoke([message]); | ||
console.log({ res }); | ||
/* | ||
{ | ||
res: "\nBittensor is opensource protocol..." | ||
} | ||
*/ | ||
``` |
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,10 +1,29 @@ | ||
--- | ||
sidebar_class_name: hidden | ||
--- | ||
|
||
# NIBittensor | ||
|
||
:::warning | ||
This module has been deprecated and is no longer supported. The documentation below will not work in versions 0.2.0 or later. | ||
::: | ||
|
||
LangChain.js offers experimental support for Neural Internet's Bittensor LLM models. | ||
|
||
Here's an example: | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
import NIBittensorExample from "@examples/models/llm/ni_bittensor.ts"; | ||
```typescript | ||
import { NIBittensorLLM } from "langchain/experimental/llms/bittensor"; | ||
|
||
const model = new NIBittensorLLM(); | ||
|
||
const res = await model.invoke(`What is Bittensor?`); | ||
|
||
console.log({ res }); | ||
|
||
<CodeBlock language="typescript">{NIBittensorExample}</CodeBlock> | ||
/* | ||
{ | ||
res: "\nBittensor is opensource protocol..." | ||
} | ||
*/ | ||
``` |
8 changes: 8 additions & 0 deletions
8
docs/core_docs/docs/integrations/llms/prompt_layer_openai.mdx
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
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
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
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
Oops, something went wrong.