Skip to content

Commit

Permalink
Update README_en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoisonooo authored Jan 4, 2024
1 parent c189bdc commit 9468ef5
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,43 @@ In order to further improve the assistant's answering experience, the more of th
```
We also support GPT API. Please note that this feature will increase response time and operating costs.

3. Repo search enhancement
3. Repo Search Enhancement

This feature is suitable for handling difficult issues that require basic development skills to adjust the prompt.

* Click [sourcegraph-settings-access](https://sourcegraph.com/users/tpoisonooo/settings/tokens) to get a token

```bash
# Open https://github.com/sourcegraph/src-cli#installation
curl -L https://sourcegraph.com/.api/src-cli/src_linux_amd64 -o /usr/local/bin/src && chmod +x /usr/local/bin/src
# Fill in the token in config.ini
[sg_search]
..
src_access_token = "${YOUR_ACCESS_TOKEN}"
```

* Edit the repository's name and description, taking opencompass as an example
```bash
# config.ini
# Add your repository here, we just take opencompass and lmdeploy as examples
[sg_search.opencompass]
github_repo_id = "open-compass/opencompass"
introduction = "Used for evaluating Large Language Models (LLM).."
```
* Use `python3 service/sg_search.py` for a single test, and the returned content should include opencompass source code and documentation
```bash
python3 service/sg_search.py
..
"filepath": "opencompass/datasets/longbench/longbench_trivia_qa.py",
"content": "from datasets import Dataset..
```
Run `main.py`, and when the time is right, HuixiangDou will enable search enhancement.
This feature is suitable for handling difficult questions, it requires basic development ability to adjust the prompt.
# 🛠️ FAQ
Expand Down

0 comments on commit 9468ef5

Please sign in to comment.