IntelliNode v1.7.2
New Changes 🌟
- Add Mistral AI's embedding and text generation models.
- Expand the chatbot versatility by adding Mistral AI model as provider.
- Resolve an issue integrating semantic search with Next.js applications.
Using the New Features 💻
-
Obtain your Mistral API key from mistral.ai.
-
Import the chatbot functions:
const { Chatbot, MistralInput, SupportedChatModels } = require("intellinode");
- Initiate the Chatbot with MISTRAL provider.
// Initialize the Mistral chatbot
const mistralBot = new Chatbot(mistralApiKey, SupportedChatModels.MISTRAL);
// Create your art assistant input
const input = new MistralInput("You are a helpful art assistant.");
input.addUserMessage("Who is the most renowned Italian painter?");
// Retrieve and log chatbot responses
const responses = await mistralBot.chat(input);
Available chatbot providers
- SupportedChatModels.OPENAI
- SupportedChatModels.REPLICATE
- SupportedChatModels.SAGEMAKER
- SupportedChatModels.COHERE
- SupportedChatModels.MISTRAL
Contributors