mirror of
https://github.com/wahyd4/SAI2.git
synced 2026-08-09 05:06:05 +10:00
provide the document
This commit is contained in:
@@ -31,6 +31,9 @@ To use the Bing Web Search API, please visit [this link](https://www.microsoft.c
|
||||
### Google Search
|
||||
You have three options for Google Search: you can use the [SearchApi Google Search API](https://www.searchapi.io/) from SearchApi, [Serper Google Search API](https://www.serper.dev) from Serper, or opt for the [Programmable Search Engine](https://developers.google.com/custom-search) provided by Google.
|
||||
|
||||
### SearXNG Search
|
||||
you can host your personal [SearXNG server](https://github.com/searxng/searxng), then you do not need pay for the search api. You just need provide the server address in `SEARXNG_BASE_URL`, with [aurora](https://github.com/aurora-develop/aurora),you can have a free private ai search engine. Be sure you enable the json format for the SearXNG server.
|
||||
|
||||
## Deployment
|
||||
### Zeabur
|
||||
Just click on it
|
||||
@@ -92,7 +95,7 @@ This project provides some additional configuration items set with environment v
|
||||
| `LLM_MODEL` | Yes | The model you want to use,support all chat models of openai, groq and claude. | `gpt-3.5-turbo-0125,mixtral-8x7b-32768,claude-3-haiku-20240307...`
|
||||
| `RELATED_QUESTIONS` | No | Show the related questions. | `1`
|
||||
| `NODE_ENV` | No | The environment required for deployment is necessary only during manual deployment. | `production`
|
||||
| `BACKEND` | Yes | The search service you want. | `SEARCH1API,BING,GOOGLE,SERPER,SEARCHAPI`
|
||||
| `BACKEND` | Yes | The search service you want. | `SEARCH1API,BING,GOOGLE,SERPER,SEARCHAPI,SEARXNG`
|
||||
| `CHAT_HISTORY` | No | Continue to ask about the results | `1`
|
||||
| `SEARCH1API_KEY` | Yes | If you choose SEARCH1API. | `xxx`
|
||||
| `BING_SEARCH_V7_SUBSCRIPTION_KEY` | No | If you choose BING. | `xxx`
|
||||
@@ -100,8 +103,8 @@ This project provides some additional configuration items set with environment v
|
||||
| `GOOGLE_SEARCH_API_KEY` | No | If you choose GOOGLE. | `xxx`
|
||||
| `SEARCHAPI_API_KEY` | No | If you choose SEARCHAPI. | `xxx`
|
||||
| `SERPER_SEARCH_API_KEY` | No | If you choose SERPER. | `xxx`
|
||||
| `NEXT_PUBLIC_GOOGLE_ANALYTICS` | No | You can use Google Analytics to know how many users you have on your website. | MEASUREMENT ID,you can find on your google analytics account,like `G-XXXXXX`
|
||||
|
||||
| `NEXT_PUBLIC_GOOGLE_ANALYTICS` | No | You can use Google Analytics to know how many users you have on your website. | MEASUREMENT ID,you can find on your google analytics account,like `G-XXXXXX`
|
||||
| `SEARXNG_BASE_URL` | No | the hosted serxng server address. it is required when the BACKEND is `SEARXNG` | `https://serxng.xxx.com/`
|
||||
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -68,7 +68,7 @@ You are a large language AI assistant built by AI. You are given a user question
|
||||
|
||||
Your answer must be correct, accurate and written by an expert using an unbiased and professional tone. Please limit to 1024 tokens. Do not give any information that is not related to the question, and do not repeat. Say "information is missing on" followed by the related topic, if the given context do not provide sufficient information.
|
||||
|
||||
Please cite the contexts with the reference numbers, in the format [citation:x]. If a sentence comes from multiple contexts, please list all applicable citations, like [citation:3][citation:5]. Other than code and specific names and citations, your answer must be written in Chinese(中文).
|
||||
Please cite the contexts with the reference numbers, in the format [citation:x]. If a sentence comes from multiple contexts, please list all applicable citations, like [citation:3][citation:5]. Other than code and specific names and citations, your answer must be written in the same language as the question.
|
||||
|
||||
Here are the set of contexts:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user