Giter Club home page Giter Club logo

search_rag's Introduction

Search RAG

基于 search_with_lepton 修改的自部署版 RAG 应用

使用 docker 快速部署

  1. 准备 bing search v7 的 API ,可自行 google,一般步骤为注册 Azure,搜索 bing search v7 开启 API,生成密钥复制过来即可
  2. 准备 openai API,也可以使用 Gemini
  3. 运行 docker,执行
    docker run -d -e BACKEND=bing -e BING_SEARCH_V7_SUBSCRIPTION_KEY=你的 bing 密钥 -e LLM_MODEL=gpt-3.5-turbo -e RELATED_QUESTIONS=0 -e OPENAI_API_KEY=你的 openai 密钥 -e OPENAI_BASE_URL=https://api.openai.com/v1/ ccoder64/search_rag:latest
  4. 访问 http://localhost:8080

使用 Gemini 步骤:

  • https://ai.google.dev/ 获取 API KEY
  • 可自行搭建 gemini-openai-proxy,也可使用 https://gemini-pro-openai-proxy.deno.dev/v1/
  • 覆盖环境变量 OPENAI_API_KEY=你的Gemini 密钥,OPENAI_BASE_URL=搭建好的 proxy 地址

search_rag's People

Contributors

ccoder64 avatar rogerserper avatar sebastjanprachovskij avatar vthinkxie avatar yangqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

search_rag'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.