Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.langchain.com/llms.txt

Use this file to discover all available pages before exploring further.

Note: This is a community-built integration and is not officially supported by Raycast.
You can utilize the LangChain’s RaycastAI class within the Raycast Environment to enhance your Raycast extension with LangChain’s capabilities.
  • The RaycastAI class is only available in the Raycast environment and only to Raycast Pro users as of August 2023. For more information, see how to create a Raycast extension.
  • There is a rate limit of approx 10 requests per minute for each Raycast Pro user. If you exceed this limit, you will receive an error. You can set your desired rpm limit by passing rateLimitPerMinute to the RaycastAI constructor as shown in the example, as this rate limit may change in the future.
npm
npm install @langchain/community @langchain/core
import { RaycastAI } from "@langchain/community/llms/raycast";

import { Tool } from "@langchain/core/tools";

const model = new RaycastAI({
  rateLimitPerMinute: 10, // It is 10 by default so you can omit this line
  model: "<model_name>",
  creativity: 0, // `creativity` is a term used by Raycast which is equivalent to `temperature` in some other LLMs
});