Merge pull request #5 from slavakurilyak/fix-none-type-query-error

Fix NoneType object has no attribute 'query' error by updating app attribute
This commit is contained in:
João Moura
2024-02-27 23:38:51 -03:00
committed by GitHub

View File

@@ -41,4 +41,5 @@ class GithubSearchTool(RagTool):
loader = GithubLoader(config={"token": self.gh_token})
app = App()
app.add(f"repo:{github_repo} type:{','.join(self.content_types)}", data_type="github", loader=loader)
self.app = app
return super()._run(query=search_query)