Code Monkey home page Code Monkey logo

mixtral_ollama's Introduction

Mixtral 8x7b and LlamaIndex

这是如何使用 Mixtral 8x7b 和 LlamaIndex 启动并运行完全本地化模型的快速演示;更多详情请查看随附的 文章

安装依赖

第 1 步:创建虚拟环境

注:本资源库中的脚本使用 python 3.10.9 运行

conda create -n mixtral_ollama python=3.10.9
conda activate mixtral_ollama
cd mixtral_ollama

第 2 步:安装依赖项

pip install -r requirements.txt


## 代码讲解
## 1_smoketest.py

下载 [Ollama](https://ollama.ai/)并运行 `ollama run mixtral` 后,运行此程序以确保一切连接正常。

## 2_index_data.py

这将索引 `data` 文件夹中的数据。运行次数不限,只会索引新数据。

## 3_verify_index.py

这展示了无需重新加载文件的工作索引。

## app.py

一个非常简单的 Flask 应用程序,演示如何在网络应用程序中使用索引。请注意,"flask run "不起作用;您必须运行 "python app.py"。

mixtral_ollama's People

Contributors

qianniucity avatar

Watchers

 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.