GooseAI is a fully managed NLP-as-a-Service, delivered via API. GooseAI provides access to these models.
This notebook goes over how to use LangChain with GooseAI.
Install openai
Theopenai package is required to use the GooseAI API. Install openai using pip install openai.
Imports
Set the Environment API Key
Make sure to get your API key from GooseAI. You are given $10 in free credits to test different models.Create the GooseAI instance
You can specify different parameters such as the model name, max tokens generated, temperature, etc.Create a Prompt Template
We will create a prompt template for Question and Answer.Initiate the LLMChain
Run the LLMChain
Provide a question and run the LLMChain.Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.