Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
48e51c6
Create documentation for Alchemyst AI Retriever
anuran-roy Oct 3, 2025
d4a3903
[ADD] Added code snippets for Alchemyst Retriever
anuran-roy Oct 3, 2025
ab69f3f
Merge pull request #1 from anuran-roy/main
anuran-roy Oct 3, 2025
2e9cae5
[MINOR] Minor fixes to Langchain retriever documentation
anuran-roy Oct 3, 2025
4ea4665
Merge branch 'langchain-ai:main' into main
anuran-roy Oct 3, 2025
d8e1c3e
[MINOR] Minor fixes to Langchain retriever documentation
anuran-roy Oct 3, 2025
3d43325
Merge branch 'main' of https://github.com/Alchemyst-ai/langchain-docs
anuran-roy Oct 3, 2025
b20a3d9
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 3, 2025
439dd96
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 3, 2025
6f8d124
Merge branch 'main' into main
anuran-roy Oct 3, 2025
ca71fa1
[MINOR] Minor fixes to Langchain retriever documentation
anuran-roy Oct 3, 2025
7668721
[MINOR] Minor fixes to Langchain retriever documentation
anuran-roy Oct 3, 2025
43e494c
Merge branch 'main' into main
anuran-roy Oct 3, 2025
148abc6
Update src/snippets/javascript-integrations/examples/retrievers/alche…
anuran-roy Oct 3, 2025
29adbf2
Merge branch 'main' into main
anuran-roy Oct 3, 2025
ae4fc12
Update src/snippets/javascript-integrations/examples/retrievers/alche…
anuran-roy Oct 4, 2025
180c5fd
[ADD] Added frontmatter for article
anuran-roy Oct 4, 2025
ad19ccd
[MODIFY] Shifted the example from Docusaurus CodeBlock to Mintlify
anuran-roy Oct 4, 2025
67645b8
Update src/snippets/javascript-integrations/examples/retrievers/alche…
anuran-roy Oct 4, 2025
814b384
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
142a074
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
cfa68af
[MODIFY] Enhanced the support section
anuran-roy Oct 4, 2025
9ef88f5
Merge branch 'main' of https://github.com/Alchemyst-ai/langchain-docs
anuran-roy Oct 4, 2025
d4b7414
[MINOR] Minor fixes
anuran-roy Oct 4, 2025
890ff3e
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
c23800c
[MODIFY] Fix retriever example reuse
anuran-roy Oct 4, 2025
8c746e2
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
839739c
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
ef5999a
Update src/oss/javascript/integrations/retrievers/alchemystai-retriev…
anuran-roy Oct 4, 2025
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
title: Alchemyst AI Retriever
description: "Integrate the Alchemyst AI Retriever into your Generative AI Application"
---

# Alchemyst AI Retriever

The [**Alchemyst AI Retriever**](https://getalchemystai.com) enables your generative AI applications to retrieve relevant context and knowledge. It sources this information from the Alchemyst platform. It provides a unified interface for accessing, searching, and retrieving data to enhance LLM and agent responses.
## Setup

1. If you don't have an account, [sign up for a new account](https://platform.getalchemystai.com/signup) on the Alchemyst Platform.
2. After logging in, go to [**Alchemyst Platform Settings**](https://platform.getalchemystai.com/settings) to get your API keys.

import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx';

<IntegrationInstallTooltip></IntegrationInstallTooltip>

<CodeGroup>
```sh npm
npm i @alchemystai/langchain-js
```

```sh yarn
yarn add @alchemystai/langchain-js
```

```sh pnpm
pnpm add @alchemystai/langchain-js
```

```sh bun
bun add @alchemystai/langchain-js
```
</CodeGroup>

## Usage

import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx";

<AlchemystAiRetrieverExample />

## Support and Feedback
For support, feedback, or to report issues, please visit the [Alchemyst AI Documentation](https://docs.getalchemystai.com), where you'll find the latest contact and community information.
7 changes: 7 additions & 0 deletions src/oss/javascript/integrations/retrievers/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ If you'd like to contribute an integration, see [Contributing integrations](/oss
## All retrievers

<Columns cols={3}>
<Card
title="Alchemyst AI Retriever"
icon="link"
href="/oss/integrations/retrievers/alchemystai-retriever"
arrow="true"
cta="View guide"
/>
<Card
title="ArxivRetriever"
icon="link"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
```typescript
import { AlchemystRetriever } from "@alchemystai/langchain-js";
import { RunnableSequence } from "@langchain/core/runnables";
import dotenv from "dotenv";

dotenv.config();

// Instantiate the retriever with your API key and optional config
const retriever = new AlchemystRetriever({
apiKey: process.env.ALCHEMYST_AI_API_KEY!,
similarityThreshold: 0.8,
minimumSimilarityThreshold: 0.5,
scope: "internal"
});

// Example: Use the retriever in a LangChain pipeline
async function main() {
// Create a simple pipeline that retrieves documents and outputs their content
const pipeline = RunnableSequence.from([
async (input: string) => {
const docs = await retriever.getRelevantDocuments(input);
return docs.map(doc => doc.pageContent).join("\n---\n");
}
]);

const query = "Show me the latest HR policies"; // Put your business/practical query here
const result = await pipeline.invoke(query);

console.log("Retrieved Documents:\n", result);
}

main().catch(console.error);
```