Skip to content

Commit

Permalink
provide the document
Browse files Browse the repository at this point in the history
  • Loading branch information
lizhe2004 committed Apr 9, 2024
1 parent 44fc96c commit 223e1d7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -92,16 +95,16 @@ 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`
| `GOOGLE_SEARCH_CX` | No | If you choose GOOGLE. | `xxxx`
| `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/`



Expand Down
2 changes: 1 addition & 1 deletion search4all.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
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:
Expand Down

0 comments on commit 223e1d7

Please sign in to comment.