-
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.
Merge remote-tracking branch 'origin/main' into couchbase-store-optim…
…ization
- Loading branch information
Showing
36 changed files
with
1,548 additions
and
157 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
sidebar_label: PremAI | ||
--- | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
|
||
# ChatPrem | ||
|
||
## Setup | ||
|
||
1. Create a Prem AI account and get your API key [here](https://app.premai.io/accounts/signup/). | ||
2. Export or set your API key inline. The ChatPrem class defaults to `process.env.PREM_API_KEY`. | ||
|
||
```bash | ||
export PREM_API_KEY=your-api-key | ||
``` | ||
|
||
You can use models provided by Prem AI as follows: | ||
|
||
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx"; | ||
|
||
<IntegrationInstallTooltip></IntegrationInstallTooltip> | ||
|
||
```bash npm2yarn | ||
npm install @langchain/community | ||
``` | ||
|
||
import PremAI from "@examples/models/chat/integration_premai.ts"; | ||
|
||
<CodeBlock language="typescript">{PremAI}</CodeBlock> |
28 changes: 28 additions & 0 deletions
28
docs/core_docs/docs/integrations/text_embedding/premai.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
sidebar_label: Prem AI | ||
--- | ||
|
||
# Prem AI | ||
|
||
The `PremEmbeddings` class uses the Prem AI API to generate embeddings for a given text. | ||
|
||
## Setup | ||
|
||
In order to use the Prem API you'll need an API key. You can sign up for a Prem account and create an API key [here](https://app.premai.io/accounts/signup/). | ||
|
||
You'll first need to install the [`@langchain/community`](https://www.npmjs.com/package/@langchain/community) package: | ||
|
||
import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx"; | ||
|
||
<IntegrationInstallTooltip></IntegrationInstallTooltip> | ||
|
||
```bash npm2yarn | ||
npm install @langchain/community | ||
``` | ||
|
||
## Usage | ||
|
||
import CodeBlock from "@theme/CodeBlock"; | ||
import PremExample from "@examples/embeddings/premai.ts"; | ||
|
||
<CodeBlock language="typescript">{PremExample}</CodeBlock> |
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.