Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

三个关于搜索功能的小问题 #41

Open
wuxianliang opened this issue Sep 11, 2024 · 0 comments
Open

三个关于搜索功能的小问题 #41

wuxianliang opened this issue Sep 11, 2024 · 0 comments

Comments

@wuxianliang
Copy link

wuxianliang commented Sep 11, 2024

  1. goolge搜索方法需要cx参数,但是self.cx不存在。我在最初做这一步的时候报错,我理解这步是为了设定auto-coder的参数
auto-coder index --file ./actions/base/base.yml 
  1. 于是我使用serper。我发现pyproject suffixproject tsproject三个模块的__init__里都有同样的逻辑,只要不是bing,都选google。这就使配置search_engine参数没有用了。于是我直接修改了源码,生硬的把google换成serper,暂时解决了问题。
   def get_search_source_codes(self):
        temp = self.get_rag_source_codes()
        if self.args.search_engine and self.args.search_engine_token:
            if self.args.search_engine == "bing":
                search_engine = SearchEngine.BING
            else:
                search_engine = SearchEngine.GOOGLE

3.我建议增加一个国内的search api,查了一下,不知道这个行不行。https://open.bochaai.com/overview。
我有代理服务器,不增加也没事。

@wuxianliang wuxianliang changed the title 三个关于搜索功能的小问题和一个给autocoder设定初始参数新命令 三个关于搜索功能的小问题 Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant