Fix NoneType object has no attribute 'query' error by updating app attribute

This commit is contained in:
Slava Kurilyak (slavakurilyak.eth)
2024-02-27 22:33:04 -03:00
parent 79eec51c9a
commit 467b05532f

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)