![]() Get an API key from and set it using promptlayer.api_key= Install requirements with pip install promptlayer (be sure to be on version 0.1.62 or higher) Get a Cerebrium api key and either set it as an environment variable ( CEREBRIUMAI_API_KEY) or pass it to the LLM constructor as cerebriumai_api_key. Install requirements with pip install cerebrium Get an GooseAI api key and either set it as an environment variable ( HUGGINGFACE_API_KEY) or pass it to the LLM constructor as huggingface_api_key. Install requirements with pip install petals Get a Hugging Face Hub api token and either set it as an environment variable ( HUGGINGFACEHUB_API_TOKEN) or pass it to the LLM constructor as huggingfacehub_api_token. Install requirements with pip install huggingface_hub Get an GooseAI api key and either set it as an environment variable ( GOOSEAI_API_KEY) or pass it to the LLM constructor as gooseai_api_key. Get a Cohere api key and either set it as an environment variable ( COHERE_API_KEY) or pass it to the LLM constructor as cohere_api_key. Install requirements with pip install cohere Get an OpenAI api key and either set it as an environment variable ( OPENAI_API_KEY) or pass it to the LLM constructor as openai_api_key. Install requirements with pip install openai The following use cases require specific installs and api keys: Note: the reason these packages are not included in the dependencies by default is that as we imagine scaling this package, we do not want to force dependencies that are not needed. SQL Question Answering Benchmarking: Chinookīesides the installation of this python package, you will also need to install packages and set environment variables depending on which chains you want to use.Question Answering Benchmarking: State of the Union Address.Question Answering Benchmarking: Paul Graham Essay.Agent VectorDB Question Answering Benchmarking.Agent Benchmarking: Search + Calculator.How to add SharedMemory to an Agent and its Tools.How to cap the max number of iterations.Self-Critique Chain with Constitutional AI. ![]() Retrieval Question Answering with Sources.How to use multiple memory classes in the same chain.Adding Message Memory backed by a database to an Agent.How to add memory to a Multi-Input Chain.Maximal Marginal Relevance ExampleSelector. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |