Skip to content
项目

关于

Plug and play embeddable AI chatbot widget and backend deployment framework

人工智能与机器学习

这些数字如何统计

可以做什么

  • React (frontend)
  • Express.js (backend)
  • Redis (Production cache & pub/sub)
  • Langchain (AI agent framework integration)

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

ConvoStack 💬⭐

Screenshot 2023-06-02 at 2 47 17 AM

Key Features

ConvoStack is a plug-and-play embeddable AI chatbot widget and backend deployment framework for your website. It is completely free and open source and currently running on our docs website!

The core technologies are:

  • React (frontend)
  • Express.js (backend)
  • Redis (Production cache & pub/sub)
  • Langchain (AI agent framework integration)

To learn more about the project, compatible technologies, and how to get started, check out the docs.

Try it out

To see a live demo of ConvoStack, check out our free playground!

Getting Started

Get your AI chatbot up and running in minutes with our Quickstart repo and guide:

In the following example, we are connecting a Langchain OpenAI LLM to the chatbot playground.

import * as dotenv from "dotenv";
// Configures the OpenAI API key
dotenv.config();

import { playground } from "convostack/playground";
import { IAgentContext, IAgentResponse } from "convostack/agent";
import { OpenAI } from "langchain/llms/openai";

playground({
  async reply(context: IAgentContext): Promise<IAgentResponse> {
    // `humanMessage` is the content of each message the user sends via the chatbot playground.
    let humanMessage = context.getHumanMessage().content;
    // `agent` is the OpenAI agent we want to use to respond to each `humanMessage`
    const agent = new OpenAI({ modelName: "gpt-3.5-turbo" });
    // `call` is a simple string-in, string-out method for interacting with the OpenAI agent.
    const resp = await model.call(humanMessage);
    // `resp` is the generated agent's response to the user's `humanMessage`
    return {
      content: resp,
      contentType: "markdown",
    };
  },
});

See the code above in action: ConvoStack Quickstart Example 1

Follow our quickstart guide for more Langchain + ConvoStack examples.

Installation

To add the ConvoStack framework to an existing project, run the following command:

npm install --save convostack

Architecture

Documentation

To see the full documentation check out our docs site at docs.convostack.ai.

探索相关项目

加载中…