Coder Social home page Coder Social logo

gpt-open / rag-gpt-h5 Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 88 KB

An HTML5 interface for Smart QA Service designed for easy integration into websites via iframe, providing users direct access to a tailored knowledge base without leaving the site, enhancing functionality and immediate query resolution.

JavaScript 18.48% HTML 1.73% CSS 5.31% TypeScript 71.77% SCSS 2.71%

rag-gpt-h5's Introduction

Smart QA Service: An Intelligent Knowledge Base

The Smart QA Service harnesses the power of advanced technologies like Large Language Models (LLM) and Retrieval-Augmented Generation (RAG) to learn from user-customized knowledge bases. It is designed to deliver contextually relevant answers across a broad spectrum of inquiries, ensuring rapid and precise information retrieval. This capability not only enhances user experience but also supports a more efficient knowledge management process.

This project introduces an HTML5 (h5) interface for the Smart QA Service, crafted for seamless integration into your website. By embedding the service as an iframe, you can offer your users direct access to this intelligent knowledge base without navigating away from your site. This integration enriches your website's functionality, providing immediate answers to user questions based on the tailored knowledge base.


Quick Start Guide

  1. clone project
git clone https://github.com/open-kf/smart-qa-h5.git
  1. install dependencies
cd smart-qa-h5
npm install
  1. update environment variables

To ensure seamless communication between your client application and the backend service, especially when the server isn't running in the default environment or is configured to use a custom port, you need to specify the base URL of the Smart QA Service API server. This is done by setting the VITE_BASE_URL variable within the .env file to the URL where the server's API is accessible.

# Example: Setting the Smart QA Service API base URL
VITE_BASE_URL=https://smart-qa-service.com

This step is crucial for directing your application to the correct server location, ensuring that all API requests are routed to the appropriate endpoint.

  1. start the project
npm run dev

open the browser and visit http://localhost:5177

  1. build the project
npm run build
  1. deploy

You can deploy the built application to any hosting service that supports static file hosting, such as Vercel, Netlify, or GitHub Pages. Simply upload the contents of the dist directory to your chosen hosting provider, and your application will be live and accessible to users.

rag-gpt-h5's People

Contributors

bloomingg avatar

Stargazers

 avatar Jim avatar blmdxiao avatar  avatar 秦延金 avatar OpenIM-Gordon avatar  avatar  avatar

Watchers

blmdxiao avatar

rag-gpt-h5'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.