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..3f0d15ecd --- /dev/null +++ b/src/oss/javascript/integrations/retrievers/alchemystai-retriever.mdx @@ -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'; + + + + +```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"; + + + +## 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. 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"); + } + ]); + + 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); +```