Coder Social home page Coder Social logo

gumpso / local-mind Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nigulasikk/local-mind

0.0 0.0 0.0 13.75 MB

Local Mind 是一个本地文件问答应用,它基于 LangChain、 HNSWLib 和 NEXT.JS 纯 JavaScript 技术栈构建, 是大语言模型”套壳“应用的一种工程化实践。

JavaScript 5.26% TypeScript 89.98% CSS 4.76%

local-mind's Introduction

local mind banner

欢迎来到 Local Mind 项目

Local Mind 是一个本地文件问答应用,它基于 LangChain、HNSWLib 和 NEXT.JS 由纯 JavaScript 技术栈构建, 是套壳 GPT API 垂类应用的一种工程化实践。

在看了 LangChain,还有一些 Prompt Engineering 应用场景后,有一个灵感:对于我们这些前端 API 工程师来说,基于 LangChain 这类封装优秀的库,配合上 Prompt Engineering 调戏 LLM,用 Next.JS 做一层轻量级后端路由, 最后结合上前端本职工作(设计一个交互良好的界面),就能非常容易地做出一个“套壳”大语言模型的工程应用。

不过得提醒下,这个应用目前只是周末写着玩玩的 Side Project,更多是用来工程上的探索,并没有达到生产可用的水平哦!

开始

准备工作

  1. 自备 API KEY: 在.env 文件中,替换 OPENAI_API_KEY 的值
  2. 命令行环境具备科学的上网环境 (可使用 proxychains)
  3. 把需要上传的本地文件放在项目根目录 files 文件夹下
  4. 执行 npm run init初始化本地内存向量数据库

本地运行

npm run dev
# or
yarn dev
# or
pnpm dev

构建

npm run build
# or
yarn build
# or
pnpm build

ChangeLog

版本: 0.0.1

2023-05-14

  • 初版

local-mind's People

Contributors

nigulasikk avatar

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.