Code Monkey home page Code Monkey logo

knowledge_with_chatglm's Introduction

KnowledgeWithChatGLM

介绍

KnowledgeWithChatGLM是一个基于向量索引库MilvusChatGLM-6B实现的知识库问答应用

运行环境

  • 该项目默认基于GPU启动运行,需要安装nvidia驱动和cuda驱动
  • python 3.8+
  • milvus

检查pytorch是否支持GPU

import torch

print(torch.cuda.is_available())

使用方式

  1. pip install -r requirements.txt
  2. 部署milvus服务: docker-compose up -d
  3. 初始化向量索引库,将文档预处理并转为向量建立索引: python document_preprocess.py
  4. 启动服务: python web_demo.py

如果对本项目源码有更多的好奇,可以参考以下文章chatglm实现基于知识库问答的应用

knowledge_with_chatglm's People

Stargazers

Mr Miaow avatar zhangshenfu avatar  avatar Hart avatar  avatar  avatar Tomas Brunken avatar Cheng Guan avatar  avatar  avatar jessica avatar chiyu avatar gexuan avatar panda avatar  avatar 灵牛 avatar  avatar  avatar  avatar  avatar  avatar YummyLau avatar chaolu avatar franky avatar  avatar  avatar  avatar Gavin Wong avatar

Watchers

Mickls avatar

knowledge_with_chatglm's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.