diff --git "a/src/content/Docs/guides/machine-learning/langflow/index.md\n" "b/src/content/Docs/guides/machine-learning/langflow/index.md\n" deleted file mode 100644 index bc4b70a4..00000000 --- "a/src/content/Docs/guides/machine-learning/langflow/index.md\n" +++ /dev/null @@ -1,133 +0,0 @@ ---- -categories: ["Guides"] -tags: ["Machine Learning","NLP"] -weight: 1 -title: "Guide to Deploying LangFlow on Akash" -linkTitle: "LangFlow" ---- - - - -LangFlow is a powerful, user-friendly platform designed to streamline the creation and deployment of natural language processing (NLP) models. It simplifies interactions with large language models, enabling developers to experiment with and deploy cutting-edge AI solutions without extensive coding. LangFlow supports integrations with multiple language models, providing an interactive interface for building and managing workflows in NLP applications. - -Key features: -- **Interactive UI:** Build, edit, and deploy NLP workflows visually. -- **Flexible Deployment:** Easily host and manage applications in the cloud. -- **Open Source:** Powered by the community and open for customization. -- **Scalability:** Deploy LangFlow on platforms like Akash for cost-effective, scalable solutions. - -By leveraging the decentralized cloud hosting capabilities of Akash, LangFlow can be deployed in a highly available, cost-efficient environment. - ---- - -## Step-by-Step Guide to Deploy LangFlow on Akash - -### Prerequisites - -1. **Akash CLI:** Ensure you have the Akash CLI installed and configured on your local machine. -2. **Akash Wallet:** Create a wallet and fund it with sufficient AKT tokens. -3. **Deployment Configuration File (SDL):** Use the provided sample SDL for deploying LangFlow. -4. **Docker Image:** The LangFlow Docker image to be used is `langflowai/langflow`. - ---- - -### Deployment Steps - -#### Step 1: Write the SDL File - -Below is the sample SDL file for deploying LangFlow: - -``` -version: "2.0" - -services: - langflow: - image: langflowai/langflow - expose: - - port: 7860 - as: 80 - to: - - global: true - env: - LANGFLOW_HOST: "0.0.0.0" - LANGFLOW_PORT: "7860" - resources: - cpu: - units: 500m - memory: - size: 512Mi - storage: - size: 1Gi - -profiles: - compute: - langflow: - resources: - cpu: - units: 500m - memory: - size: 512Mi - storage: - size: 1Gi - placement: - westcoast: - attributes: - region: us-west - signedBy: - anyOf: - - "akash.network" - pricing: - langflow: - denom: uakt - amount: 1000 - -deployment: - langflow: - westcoast: - profile: langflow - count: 1 -``` - -#### Step 2: Validate and Deploy the SDL - -1. **Validate the SDL file:** - ```bash - akash tx deployment create deploy.yaml --from --node - ``` - Replace `` with your wallet name and `` with the node you are connected to. - -2. **Query deployment status:** - Once submitted, query the deployment status to ensure it is successfully created: - ```bash - akash query deployment list --owner - ``` - -3. **Accept the Lease:** - Once the deployment is matched with a provider, accept the lease: - ```bash - akash tx market lease create --dseq --from - ``` - -#### Step 3: Access LangFlow - -1. **Get the Deployment URL:** - After accepting the lease, Akash will provide a public IP or hostname. Use it to access the LangFlow interface. - -2. **Access LangFlow:** - Open a browser and navigate to `http://`. You should see the LangFlow interface running. - ---- - -## Customizing LangFlow Configuration - -If needed, you can modify the environment variables in the SDL to customize the deployment, such as: -- `LANGFLOW_HOST`: Host address to bind the application. -- `LANGFLOW_PORT`: Port to expose the application. - -Adjust resource allocations in the `resources` section based on your workload requirements. - ---- - -## Conclusion - -By deploying LangFlow on Akash, you leverage a decentralized, scalable, and cost-efficient cloud platform for hosting NLP workflows. With the sample SDL provided, the deployment process is straightforward, enabling developers to focus on building and experimenting with AI applications without worrying about infrastructure complexity. \ No newline at end of file