From 48e51c6fcbad9861b023b4cc2865aa7b931d0889 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Fri, 3 Oct 2025 05:54:52 +0530 Subject: [PATCH 01/22] Create documentation for Alchemyst AI Retriever Added documentation for Alchemyst AI Retriever integration, including setup and usage instructions. --- .../retrievers/alchemyst-retriever.mdx | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx diff --git a/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx new file mode 100644 index 000000000..6ae426d9b --- /dev/null +++ b/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx @@ -0,0 +1,34 @@ +--- +title: Alchemyst Retriever +--- + +# Alchemyst AI Retriever + +[**Alchemyst AI**](https://getalchemystai.com) is the context cloud for LLMs and AI Agents, purpose-built to serve as the connective tissue of your entire AI stack. It provides a unified memory layer that bridges data ingestion, context management, orchestration, inference, and deployment. By acting as a central hub for context and knowledge, Alchemyst enables your AI systems to access, share, and persist information across tools, sessions, and workflows. + +With seamless integrations at every layer, Alchemyst empowers you to: + +- Aggregate and enrich data from diverse sources, making it accessible to LLMs and agents in real time. +- Maintain persistent, context-aware memory that enhances reasoning, retrieval, and generation. +- Orchestrate complex workflows by connecting specialized frameworks, libraries, and platforms. +- Deploy AI solutions that are modular, scalable, and easy to maintain. + +## Setup + +Goto [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. + +import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx"; + + + +```bash npm2yarn +npm install @alchemystai/sdk @langchain/core @langchain/community +``` + +## Usage + +import AlchemystAiRetrieverExample from "@examples/retrievers/alchemystai.ts"; +import CodeBlock from "@theme/CodeBlock"; + +{AlchemystAiRetrieverExample} + From d4a3903a36740ed2159913e6f3d02ce5a4b6c1cf Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Fri, 3 Oct 2025 01:37:29 +0000 Subject: [PATCH 02/22] [ADD] Added code snippets for Alchemyst Retriever --- .../retrievers/alchemystai-retriever.mdx | 33 +++++++++++++++++ .../integrations/retrievers/index.mdx | 7 ++++ .../examples/retrievers/alchemystai.mdx | 36 +++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx create mode 100644 src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx new file mode 100644 index 000000000..bf784c840 --- /dev/null +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -0,0 +1,33 @@ +--- +title: Alchemyst AI Retriever +--- + +# Alchemyst AI Retriever + +[**Alchemyst AI**](https://getalchemystai.com) is the context cloud for LLMs and AI Agents, purpose-built to serve as the connective tissue of your entire AI stack. It provides a unified memory layer that bridges data ingestion, context management, orchestration, inference, and deployment. By acting as a central hub for context and knowledge, Alchemyst enables your AI systems to access, share, and persist information across tools, sessions, and workflows. + +With seamless integrations at every layer, Alchemyst empowers you to: + +- Aggregate and enrich data from diverse sources, making it accessible to LLMs and agents in real time. +- Maintain persistent, context-aware memory that enhances reasoning, retrieval, and generation. +- Orchestrate complex workflows by connecting specialized frameworks, libraries, and platforms. +- Deploy AI solutions that are modular, scalable, and easy to maintain. + +## Setup + +Goto [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. + +import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx'; + + + +```bash npm2yarn +npm install @langchain/openai @langchain/core @langchain/community +``` + +## Usage + +import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; +import CodeBlock from "@theme/CodeBlock"; + +{AlchemystAiRetrieverExample} diff --git a/src/oss/javascript/integrations/retrievers/index.mdx b/src/oss/javascript/integrations/retrievers/index.mdx index db8f539db..47b85f7dc 100644 --- a/src/oss/javascript/integrations/retrievers/index.mdx +++ b/src/oss/javascript/integrations/retrievers/index.mdx @@ -20,6 +20,13 @@ If you'd like to contribute an integration, see [Contributing integrations](/oss ## All retrievers + { + const docs = await retriever.getRelevantDocuments(input); + return docs.map(doc => doc.pageContent).join("\n---\n"); + }, + new StringOutputParser() + ]); + + const query = "Tell me about Quantum Entanglement"; // Put your query here + const result = await pipeline.invoke(query); + + console.log("Retrieved Documents:\n", result); +} + +main().catch(console.error); +``` From 2e9cae5e8d1ed2562e22b220d61873daf6f0c489 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Fri, 3 Oct 2025 15:47:28 +0530 Subject: [PATCH 03/22] [MINOR] Minor fixes to Langchain retriever documentation --- .../retrievers/alchemyst-retriever.mdx | 34 ------------------- .../retrievers/alchemystai-retriever.mdx | 20 +++++++++-- .../examples/retrievers/alchemystai.mdx | 1 - 3 files changed, 17 insertions(+), 38 deletions(-) delete mode 100644 src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx diff --git a/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx deleted file mode 100644 index 6ae426d9b..000000000 --- a/src/oss/javascript/integrations/retrievers/alchemyst-retriever.mdx +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: Alchemyst Retriever ---- - -# Alchemyst AI Retriever - -[**Alchemyst AI**](https://getalchemystai.com) is the context cloud for LLMs and AI Agents, purpose-built to serve as the connective tissue of your entire AI stack. It provides a unified memory layer that bridges data ingestion, context management, orchestration, inference, and deployment. By acting as a central hub for context and knowledge, Alchemyst enables your AI systems to access, share, and persist information across tools, sessions, and workflows. - -With seamless integrations at every layer, Alchemyst empowers you to: - -- Aggregate and enrich data from diverse sources, making it accessible to LLMs and agents in real time. -- Maintain persistent, context-aware memory that enhances reasoning, retrieval, and generation. -- Orchestrate complex workflows by connecting specialized frameworks, libraries, and platforms. -- Deploy AI solutions that are modular, scalable, and easy to maintain. - -## Setup - -Goto [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. - -import IntegrationInstallTooltip from "@mdx_components/integration_install_tooltip.mdx"; - - - -```bash npm2yarn -npm install @alchemystai/sdk @langchain/core @langchain/community -``` - -## Usage - -import AlchemystAiRetrieverExample from "@examples/retrievers/alchemystai.ts"; -import CodeBlock from "@theme/CodeBlock"; - -{AlchemystAiRetrieverExample} - diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index bf784c840..5954c7217 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -21,13 +21,27 @@ import IntegrationInstallTooltip from '/snippets/javascript-integrations/integra -```bash npm2yarn -npm install @langchain/openai @langchain/core @langchain/community + +```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 +``` + + ## Usage -import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; import CodeBlock from "@theme/CodeBlock"; +import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; {AlchemystAiRetrieverExample} diff --git a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx index 074848706..e224119bc 100644 --- a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx +++ b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx @@ -3,7 +3,6 @@ import { AlchemystRetriever } from "@alchemystai/langchain-js"; import { StringOutputParser } from "@langchain/core/output_parsers"; import { RunnableSequence } from "@langchain/core/runnables"; import dotenv from "dotenv"; -// filepath: /Users/anuran/Alchemyst/integrations/playground/example.ts dotenv.config(); From d8e1c3e29fc072bbce0a2e23194f62c8e11ccf38 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Fri, 3 Oct 2025 16:08:56 +0530 Subject: [PATCH 04/22] [MINOR] Minor fixes to Langchain retriever documentation --- .../integrations/retrievers/alchemystai-retriever.mdx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 5954c7217..247957829 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -45,3 +45,6 @@ import CodeBlock from "@theme/CodeBlock"; import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; {AlchemystAiRetrieverExample} + +## Support and Feedback +For more detailed docs, refer the [**Alchemyst AI Docs**](https://docs.getalchemystai.com) From b20a3d99823ac17f6f37f5d9a0a1f5ee5f86d095 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:41:21 +0530 Subject: [PATCH 05/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 247957829..e36b6f1ef 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -47,4 +47,4 @@ import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examp {AlchemystAiRetrieverExample} ## Support and Feedback -For more detailed docs, refer the [**Alchemyst AI Docs**](https://docs.getalchemystai.com) +For more detailed docs, refer to the [**Alchemyst AI Docs**](https://docs.getalchemystai.com) From 439dd9623f12c1fb45fa192e4d1318c56386a0f7 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Fri, 3 Oct 2025 20:41:30 +0530 Subject: [PATCH 06/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index e36b6f1ef..37f179583 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -15,7 +15,7 @@ With seamless integrations at every layer, Alchemyst empowers you to: ## Setup -Goto [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. +Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx'; From ca71fa1b5f717b2845d32e9d7355ae9987a8b40f Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Fri, 3 Oct 2025 20:45:28 +0530 Subject: [PATCH 07/22] [MINOR] Minor fixes to Langchain retriever documentation --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 37f179583..c46f8bfcc 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -42,7 +42,7 @@ bun add @alchemystai/langchain-js ## Usage import CodeBlock from "@theme/CodeBlock"; -import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; +import AlchemystAiRetrieverExample from "/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; {AlchemystAiRetrieverExample} From 7668721d35217952877709eb745223543d2b8790 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Fri, 3 Oct 2025 20:59:22 +0530 Subject: [PATCH 08/22] [MINOR] Minor fixes to Langchain retriever documentation --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index c46f8bfcc..37f179583 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -42,7 +42,7 @@ bun add @alchemystai/langchain-js ## Usage import CodeBlock from "@theme/CodeBlock"; -import AlchemystAiRetrieverExample from "/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; +import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; {AlchemystAiRetrieverExample} From 148abc670203a036f819479318b885af357da0f9 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 02:22:59 +0530 Subject: [PATCH 09/22] Update src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../examples/retrievers/alchemystai.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx index e224119bc..891c780fc 100644 --- a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx +++ b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx @@ -21,8 +21,7 @@ async function main() { async (input: string) => { const docs = await retriever.getRelevantDocuments(input); return docs.map(doc => doc.pageContent).join("\n---\n"); - }, - new StringOutputParser() + } ]); const query = "Tell me about Quantum Entanglement"; // Put your query here From ae4fc12286487a273e3f86a5dadffd07e0f270a2 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 16:02:30 +0530 Subject: [PATCH 10/22] Update src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../javascript-integrations/examples/retrievers/alchemystai.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx index 891c780fc..d4753c7f3 100644 --- a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx +++ b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx @@ -24,7 +24,7 @@ async function main() { } ]); - const query = "Tell me about Quantum Entanglement"; // Put your query here + 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); From 180c5fd3bb77cd72f7c0f01bb4be9a40d34a0e74 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Sat, 4 Oct 2025 19:51:22 +0530 Subject: [PATCH 11/22] [ADD] Added frontmatter for article --- .../javascript/integrations/retrievers/alchemystai-retriever.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 37f179583..3b9406828 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -1,5 +1,6 @@ --- title: Alchemyst AI Retriever +description: "Integrate the Alchemyst AI Retriever into your Generative AI Application" --- # Alchemyst AI Retriever From ad19ccd29f15c56625d5b4c7aa6c7f6e4af8a504 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Sat, 4 Oct 2025 20:07:23 +0530 Subject: [PATCH 12/22] [MODIFY] Shifted the example from Docusaurus CodeBlock to Mintlify --- .../retrievers/alchemystai-retriever.mdx | 38 +++++++++++++++++-- 1 file changed, 34 insertions(+), 4 deletions(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 3b9406828..cb14a1b27 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -42,10 +42,40 @@ bun add @alchemystai/langchain-js ## Usage -import CodeBlock from "@theme/CodeBlock"; -import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; - -{AlchemystAiRetrieverExample} +```typescript +import { AlchemystRetriever } from "@alchemystai/langchain-js"; +import { StringOutputParser } from "@langchain/core/output_parsers"; +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); +``` ## Support and Feedback For more detailed docs, refer to the [**Alchemyst AI Docs**](https://docs.getalchemystai.com) From 67645b877986d9c8edae2c765bc8504a500b7f8a Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:09:05 +0530 Subject: [PATCH 13/22] Update src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../javascript-integrations/examples/retrievers/alchemystai.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx index d4753c7f3..874bca807 100644 --- a/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx +++ b/src/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx @@ -1,6 +1,5 @@ ```typescript import { AlchemystRetriever } from "@alchemystai/langchain-js"; -import { StringOutputParser } from "@langchain/core/output_parsers"; import { RunnableSequence } from "@langchain/core/runnables"; import dotenv from "dotenv"; From 814b3840f6187e4c4f6c6854a12e6b458adccba3 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:09:25 +0530 Subject: [PATCH 14/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../javascript/integrations/retrievers/alchemystai-retriever.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index cb14a1b27..7a0e001f5 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -44,7 +44,6 @@ bun add @alchemystai/langchain-js ```typescript import { AlchemystRetriever } from "@alchemystai/langchain-js"; -import { StringOutputParser } from "@langchain/core/output_parsers"; import { RunnableSequence } from "@langchain/core/runnables"; import dotenv from "dotenv"; From 142a07485984a7ef9e4df0394784bbb1eedc9101 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 20:12:04 +0530 Subject: [PATCH 15/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 7a0e001f5..ccbcd3310 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -16,7 +16,7 @@ With seamless integrations at every layer, Alchemyst empowers you to: ## Setup -Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign in with Google to sign up with a new account. +Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign up for a new account if you don't have one. import IntegrationInstallTooltip from '/snippets/javascript-integrations/integration-install-tooltip.mdx'; From cfa68af6e3536f844dd1fb467a395e7e0d94ebc7 Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Sat, 4 Oct 2025 20:14:33 +0530 Subject: [PATCH 16/22] [MODIFY] Enhanced the support section --- .../integrations/retrievers/alchemystai-retriever.mdx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index cb14a1b27..76e6516de 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -78,4 +78,9 @@ main().catch(console.error); ``` ## Support and Feedback -For more detailed docs, refer to the [**Alchemyst AI Docs**](https://docs.getalchemystai.com) +If you need help or have feedback, we're here to assist you: +- 📚 **Documentation:** [Alchemyst AI Docs](https://docs.getalchemystai.com) +- 📨 **Email Support:** [support@getalchemystai.com](mailto:anuran@getalchemystai.com) +- 💬 **Community:** [Alchemyst AI Discord](https://discord.gg/H2StAaSeJ8) +- 🐞 **Report Issues:** [GitHub Issues](https://github.com/alchemyst-ai/langchain-js/issues) +We welcome your questions, bug reports, and suggestions! From d4b7414b9fe58184a3006ed64dc0585e5e7e6dfd Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Sat, 4 Oct 2025 20:17:00 +0530 Subject: [PATCH 17/22] [MINOR] Minor fixes --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index b21565ae3..ea2ecbf80 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -79,7 +79,7 @@ main().catch(console.error); ## Support and Feedback If you need help or have feedback, we're here to assist you: - 📚 **Documentation:** [Alchemyst AI Docs](https://docs.getalchemystai.com) -- 📨 **Email Support:** [support@getalchemystai.com](mailto:anuran@getalchemystai.com) +- 📨 **Email Support:** [anuran@getalchemystai.com](mailto:anuran@getalchemystai.com) - 💬 **Community:** [Alchemyst AI Discord](https://discord.gg/H2StAaSeJ8) - 🐞 **Report Issues:** [GitHub Issues](https://github.com/alchemyst-ai/langchain-js/issues) We welcome your questions, bug reports, and suggestions! From 890ff3e9f8b247f596b54313929c01ab5ec59f9c Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 23:25:05 +0530 Subject: [PATCH 18/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index ea2ecbf80..e579ab75c 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -77,9 +77,4 @@ main().catch(console.error); ``` ## Support and Feedback -If you need help or have feedback, we're here to assist you: -- 📚 **Documentation:** [Alchemyst AI Docs](https://docs.getalchemystai.com) -- 📨 **Email Support:** [anuran@getalchemystai.com](mailto:anuran@getalchemystai.com) -- 💬 **Community:** [Alchemyst AI Discord](https://discord.gg/H2StAaSeJ8) -- 🐞 **Report Issues:** [GitHub Issues](https://github.com/alchemyst-ai/langchain-js/issues) -We welcome your questions, bug reports, and suggestions! +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. From c23800c86f17c498caccd6af3d96a0fd3964539f Mon Sep 17 00:00:00 2001 From: Anuran Roy Date: Sat, 4 Oct 2025 23:29:50 +0530 Subject: [PATCH 19/22] [MODIFY] Fix retriever example reuse --- .../retrievers/alchemystai-retriever.mdx | 36 ++----------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index e579ab75c..9b6d647bb 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -42,39 +42,9 @@ bun add @alchemystai/langchain-js ## Usage -```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); -``` +import AlchemystAiRetrieverExample from "/snippets/javascript-integrations/examples/retrievers/alchemystai.mdx"; + + ## 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. From 8c746e2f7bf43f427dc637a0b71c1b3dd188465d Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 23:33:09 +0530 Subject: [PATCH 20/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 9b6d647bb..32936899b 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -5,15 +5,7 @@ description: "Integrate the Alchemyst AI Retriever into your Generative AI Appli # Alchemyst AI Retriever -[**Alchemyst AI**](https://getalchemystai.com) is the context cloud for LLMs and AI Agents, purpose-built to serve as the connective tissue of your entire AI stack. It provides a unified memory layer that bridges data ingestion, context management, orchestration, inference, and deployment. By acting as a central hub for context and knowledge, Alchemyst enables your AI systems to access, share, and persist information across tools, sessions, and workflows. - -With seamless integrations at every layer, Alchemyst empowers you to: - -- Aggregate and enrich data from diverse sources, making it accessible to LLMs and agents in real time. -- Maintain persistent, context-aware memory that enhances reasoning, retrieval, and generation. -- Orchestrate complex workflows by connecting specialized frameworks, libraries, and platforms. -- Deploy AI solutions that are modular, scalable, and easy to maintain. - +The [**Alchemyst AI Retriever**](https://getalchemystai.com) enables your generative AI applications to retrieve relevant context and knowledge from the Alchemyst platform. It provides a unified interface for accessing, searching, and retrieving data to enhance LLM and agent responses. ## Setup Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign up for a new account if you don't have one. From 839739cefc9a5a8823bc8d6ab6eb5f1871217017 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 23:34:47 +0530 Subject: [PATCH 21/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 32936899b..96bdc5555 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -5,7 +5,7 @@ description: "Integrate the Alchemyst AI Retriever into your Generative AI Appli # Alchemyst AI Retriever -The [**Alchemyst AI Retriever**](https://getalchemystai.com) enables your generative AI applications to retrieve relevant context and knowledge from the Alchemyst platform. It provides a unified interface for accessing, searching, and retrieving data to enhance LLM and agent responses. +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 Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign up for a new account if you don't have one. From ef5999a3e5d780524526de3946016fa54ceca582 Mon Sep 17 00:00:00 2001 From: Anuran Roy <76481787+anuran-roy@users.noreply.github.com> Date: Sat, 4 Oct 2025 23:35:04 +0530 Subject: [PATCH 22/22] Update src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../integrations/retrievers/alchemystai-retriever.mdx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx index 96bdc5555..3f0d15ecd 100644 --- a/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -8,7 +8,8 @@ description: "Integrate the Alchemyst AI Retriever into your Generative AI Appli 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 -Go to [**Alchemyst Platform**](https://platform.getalchemystai.com/settings) to get API keys. Sign up for a new account if you don't have one. +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';