Skip to content

MedVoice-RMIT-CapStone-2024/langchain-replicate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LangChain x Replicate API

This script uses the Replicate class from the langchain_community.llms module to generate responses to a given prompt. The responses adhere to a specified JSON schema.

Build instructions

To run the script

  • Initialize the virtual environment
python -m venv venv
source venv/bin/activate
  • Install the necessary dependencies
pip install -r requirements
  • Run the script
python replicate_chain.py

In Jupyter Notebook

  • After running REPLICATE_API_TOKEN = getpass() Put in the API token to the top bar in VSCode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages